diff options
author | Ajit Khaparde <ajit.khaparde@emulex.com> | 2011-04-06 18:07:43 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-07 15:04:44 -0700 |
commit | 4b97291429bf59c09a969184a7d2ebde7287e7eb (patch) | |
tree | 21314d74a38638dde44cacce29dba2c84e445b92 /drivers/net/benet/be.h | |
parent | c1e48efc701b79ee4367c9a1a4e8bbc7c3586e02 (diff) | |
download | lwn-4b97291429bf59c09a969184a7d2ebde7287e7eb.tar.gz lwn-4b97291429bf59c09a969184a7d2ebde7287e7eb.zip |
be2net: add rxhash support
Add rxhash support,
Based on initial work by Eric Dumazet.
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be.h')
-rw-r--r-- | drivers/net/benet/be.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h index ea1ea824d7c7..ab5be0545e38 100644 --- a/drivers/net/benet/be.h +++ b/drivers/net/benet/be.h @@ -485,6 +485,11 @@ static inline void be_vf_eth_addr_generate(struct be_adapter *adapter, u8 *mac) memcpy(mac, adapter->netdev->dev_addr, 3); } +static inline bool be_multi_rxq(const struct be_adapter *adapter) +{ + return adapter->num_rx_qs > 1; +} + extern void be_cq_notify(struct be_adapter *adapter, u16 qid, bool arm, u16 num_popped); extern void be_link_status_update(struct be_adapter *adapter, bool link_up); |