diff options
author | Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> | 2016-02-03 07:19:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-07 21:55:22 +0300 |
commit | ee9ad2802449c0a6811a74af2ce30500895d137b (patch) | |
tree | 2ac3be76aa43512955ad27ed0fe78bd61d7df2c2 /drivers/net/ethernet/emulex/benet/be.h | |
parent | 41dcdfbd0944a3ef08224a8c9ba3b2fdeae0dd86 (diff) | |
download | linux-ee9ad2802449c0a6811a74af2ce30500895d137b.tar.xz |
be2net: SRIOV Queue distribution should factor in EQ-count of VFs
The SRIOV resource distribution logic for RX/TX queue counts is not optimal
when a small number of VFs are enabled. It does not take into account the
VF's EQ count while computing the queue counts. Because of this, the VF
gets a large number of queues, though it doesn't have sufficient EQs,
resulting in wasted queue resources. And the PF gets a smaller share of
queues though it has more EQs. Fix this by capping the VF queue count at
its EQ count.
Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be.h')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h index cf837831304b..de88c30bc029 100644 --- a/drivers/net/ethernet/emulex/benet/be.h +++ b/drivers/net/ethernet/emulex/benet/be.h @@ -89,6 +89,10 @@ #define BE3_MAX_TX_QS 16 #define BE3_MAX_EVT_QS 16 #define BE3_SRIOV_MAX_EVT_QS 8 +#define SH_VF_MAX_NIC_EQS 3 /* Skyhawk VFs can have a max of 4 EQs + * and at least 1 is granted to either + * SURF/DPDK + */ #define MAX_RSS_IFACES 15 #define MAX_RX_QS 32 |