]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2net: SRIOV Queue distribution should factor in EQ-count of VFs
authorSriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Wed, 3 Feb 2016 04:19:19 +0000 (09:49 +0530)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 15:15:38 +0000 (07:15 -0800)
commit8da3ab0cc147b3a7e4f6e8942120fc0c18ac13af
tree1cc66cd15a8d277a0717285c76b4a8bf0fca0b1c
parent3c5c63732313afc2b1e24b988b5ca2504f7a4a95
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>
Signed-off-by: Suresh Reddy <suresh.reddy@broadcom.com>
Orabug: 22725582
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_main.c