]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bnx2x: Don't post statistics to malicious VFs
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Fri, 9 Jun 2017 14:17:02 +0000 (17:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Jun 2017 20:02:55 +0000 (16:02 -0400)
commit3523882229b903e967de05665b871dab87c5df0f
tree8cbd26e7fd48ca3e2b60de0120ae15a1fec0c2a8
parent92f85f05caa51d844af6ea14ffbc7a786446a644
bnx2x: Don't post statistics to malicious VFs

Once firmware indicates that a given VF is malicious and until
that VF passes an FLR all bets are off - PF can't know anything
is happening to the VF [since VF can't communicate anything to its PF].
But PF is currently still periodically asking device to collect
statistics for the VF which might in turn fill logs by IOMMU blocking
memory access done by the VF's PCI function [in the case VF has unmapped
its buffers].

Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h