]> granicus.if.org Git - libnl/commitdiff
link: Include IFLA_NUM_TX_QUEUES and IFLA_NUM_RX_QUEUES when building messages
authorThomas Graf <tgraf@redhat.com>
Tue, 9 Oct 2012 19:24:35 +0000 (21:24 +0200)
committerThomas Graf <tgraf@redhat.com>
Tue, 9 Oct 2012 19:24:35 +0000 (21:24 +0200)
Signed-off-by: Thomas Graf <tgraf@redhat.com>
lib/route/link.c

index 1b434014fd7776c86ba17adf03c280e0f198fd9e..ff2b000f2dc501d153e2cee94e13571238f2d117 100644 (file)
@@ -1164,6 +1164,12 @@ static int build_link_msg(int cmd, struct ifinfomsg *hdr,
        if (link->ce_mask & LINK_ATTR_MASTER)
                NLA_PUT_U32(msg, IFLA_MASTER, link->l_master);
 
+       if (link->ce_mask & LINK_ATTR_NUM_TX_QUEUES)
+               NLA_PUT_U32(msg, IFLA_NUM_TX_QUEUES, link->l_num_tx_queues);
+
+       if (link->ce_mask & LINK_ATTR_NUM_RX_QUEUES)
+               NLA_PUT_U32(msg, IFLA_NUM_RX_QUEUES, link->l_num_rx_queues);
+
        if (link->ce_mask & LINK_ATTR_LINKINFO) {
                struct nlattr *info;