diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/route.txt | 43 |
1 files changed, 38 insertions, 5 deletions
diff --git a/doc/route.txt b/doc/route.txt index 33f58d0..a01f6d9 100644 --- a/doc/route.txt +++ b/doc/route.txt @@ -570,18 +570,51 @@ link objects to be used for comparison. For more information on how to modify the qdisc of a link, see section <<route_tc>>. -[[link_attr_weight]] -==== Weight -This attribute is unused and obsoleted in all recent kernels. +[source,c] +----- +#include <netlink/route/link.h> + +void rtnl_link_set_qdisc(struct rtnl_link *link, const char *name); +char *rtnl_link_get_qdisc(struct rtnl_link *link); +----- + +[[link_attr_promiscuity]] +==== Promiscuity +The number of subsystem currently depending on the link being promiscuous mode. +A value of 0 indicates that the link is not in promiscuous mode. It is a +read-only attribute provided by the kernel and cannot be modified. The set +function is provided solely for the purpose of creating link objects to be +used for comparison. + +[source,c] +----- +#include <netlink/route/link.h> + +void rtnl_link_set_promiscuity(struct rtnl_link *link, uint32_t count); +uint32_t rtnl_link_get_promiscuity(struct rtnl_link *link); +----- + +[[link_num_rxtx_queues]] +==== RX/TX Queues +The number of RX/TX queues the link provides. The attribute is writable but +will only be considered when creating a new network device via netlink. [source,c] ----- #include <netlink/route/link.h> -extern void rtnl_link_set_qdisc(struct rtnl_link *link, const char *name); -extern char *rtnl_link_get_qdisc(struct rtnl_link *link); +void rtnl_link_set_num_tx_queues(struct rtnl_link *link, uint32_t nqueues); +uint32_t rtnl_link_get_num_tx_queues(struct rtnl_link *link); + +void rtnl_link_set_num_rx_queues(struct rtnl_link *link, uint32_t nqueues); +uint32_t rtnl_link_get_num_rx_queues(struct rtnl_link *link); ----- +[[link_attr_weight]] +==== Weight +This attribute is unused and obsoleted in all recent kernels. + + [[link_modules]] === Modules |