]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
commitde2b1e0366c8c332fa403e8bd8b6e2b22f557d2e
treee27cb31207e00c8d5e76d57b69a047132db1d73d
parent45f13df75f9044568af4789af1c52d0ffdc68155
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