]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: Fix provisioning of RSS for VFs in multi-partition configurations
authorSomnath Kotur <somnath.kotur@emulex.com>
Mon, 6 Jun 2016 11:22:10 +0000 (07:22 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jun 2016 23:18:20 +0000 (16:18 -0700)
commitcb45a187d0bfe68b4a6bb8836a8386267de3c6b6
treee27cb31207e00c8d5e76d57b69a047132db1d73d
parentdf1a80f2d8b12e1cfc343798d947571395c33a9b
be2net: Fix provisioning of RSS for VFs in multi-partition configurations

Currently, we do not distribute queue resources to enable RSS for VFs
in multi-channel/partition configurations.
Fix this by having each PF(SRIOV capable) calculate it's share of the
15 RSS Policy Tables available per port before provisioning resources for
all the VFs.
This  proportional share calculation is done based on division of the
PF's MAX VFs with the Total MAX VFs on that port. It also needs to
learn about the no: of NIC PFs on the port and subtract that from
the 15 RSS Policy Tables on the port.

Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h
drivers/net/ethernet/emulex/benet/be_main.c