diff options
author | Jiri Pirko <jiri@resnulli.us> | 2012-07-20 02:28:51 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-20 11:07:00 -0700 |
commit | 6c85f2bdda2086d804e198a3f31b685bc2f86b04 (patch) | |
tree | 49abe1f74a0a3290cf611878a704914a9f5e6577 /include/linux/if_team.h | |
parent | 8a540ff9e1d685b5feb0a9df5d2b74db1e0b4d39 (diff) | |
download | linux-6c85f2bdda2086d804e198a3f31b685bc2f86b04.tar.gz linux-6c85f2bdda2086d804e198a3f31b685bc2f86b04.tar.bz2 linux-6c85f2bdda2086d804e198a3f31b685bc2f86b04.zip |
team: add multiqueue support
Largely copied from bonding code.
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_team.h')
-rw-r--r-- | include/linux/if_team.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/if_team.h b/include/linux/if_team.h index 7fd0cdeb9444..6960fc1841a7 100644 --- a/include/linux/if_team.h +++ b/include/linux/if_team.h @@ -14,6 +14,7 @@ #ifdef __KERNEL__ #include <linux/netpoll.h> +#include <net/sch_generic.h> struct team_pcpu_stats { u64 rx_packets; @@ -98,6 +99,10 @@ static inline void team_netpoll_send_skb(struct team_port *port, static inline int team_dev_queue_xmit(struct team *team, struct team_port *port, struct sk_buff *skb) { + BUILD_BUG_ON(sizeof(skb->queue_mapping) != + sizeof(qdisc_skb_cb(skb)->slave_dev_queue_mapping)); + skb_set_queue_mapping(skb, qdisc_skb_cb(skb)->slave_dev_queue_mapping); + skb->dev = port->dev; if (unlikely(netpoll_tx_running(port->dev))) { team_netpoll_send_skb(port, skb); @@ -236,6 +241,9 @@ extern void team_options_unregister(struct team *team, extern int team_mode_register(const struct team_mode *mode); extern void team_mode_unregister(const struct team_mode *mode); +#define TEAM_DEFAULT_NUM_TX_QUEUES 16 +#define TEAM_DEFAULT_NUM_RX_QUEUES 16 + #endif /* __KERNEL__ */ #define TEAM_STRING_MAX_LEN 32 |