summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuval Mintz <yuvalmin@broadcom.com>2013-08-19 09:11:59 +0300
committerDavid S. Miller <davem@davemloft.net>2013-08-20 00:21:47 -0700
commitaeeddb8b9e76d1f250d58b40e8dba8614d61368b (patch)
tree970c54397e427b871bbb7e4b7af245a7bb8eb920
parent79b17a9493a79923cc1af4da64e1c4931273f0f5 (diff)
downloadop-kernel-dev-aeeddb8b9e76d1f250d58b40e8dba8614d61368b.zip
op-kernel-dev-aeeddb8b9e76d1f250d58b40e8dba8614d61368b.tar.gz
bnx2x: prevent VF benign attentions
During probe, VFs might erroneously try to access the shared memory (which only PFs are capabale of accessing), causing benign attentions to appear. Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Ariel Elior <ariele@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
index b8d7c3b..8bdc8b9 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
@@ -11163,6 +11163,9 @@ static bool bnx2x_get_dropless_info(struct bnx2x *bp)
int tmp;
u32 cfg;
+ if (IS_VF(bp))
+ return 0;
+
if (IS_MF(bp) && !CHIP_IS_E1x(bp)) {
/* Take function: tmp = func */
tmp = BP_ABS_FUNC(bp);
OpenPOWER on IntegriCloud