Multiqueue support for bonding devices
Subsystems (3)
PATCH 1/1 Multiqueue support for bonding devices
Make bonding driver multiqueue aware.
Signed-off-by Oleg A. Arkhangelsky <[email protected]>
---
drivers/net/bonding/bond_main.c +3 -2
@@ -4928,8 +4928,9 @@ int bond_create(struct net *net, const char *name)rtnl_lock (); - bond_dev =alloc_netdev (sizeof (struct bonding ), name ? name :"" , - bond_setup); + bond_dev =alloc_netdev_mq (sizeof (struct bonding ), name ? name :"" , + bond_setup, +min_t (u32,BOND_MAX_TX_QUEUES ,num_online_cpus ()));if (!bond_dev) {pr_err ("%s: eek! can't alloc netdev!\n" , name); res = -ENOMEM ;
drivers/net/bonding/bonding.h +1 -0
@@ -29,6 +29,7 @@#define DRV_DESCRIPTION "Ethernet Channel Bonding Driver"#define BOND_MAX_ARP_TARGETS 16 +#define BOND_MAX_TX_QUEUES 8#define IS_UP (dev) \ ((((dev)->flags & IFF_UP) == IFF_UP) && \
---
Signature · 1 line
wbr, Oleg.