summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
diff options
context:
space:
mode:
authorMichal Kalderon2014-01-05 17:33:52 +0100
committerDavid S. Miller2014-01-06 02:22:24 +0100
commit5b622918cd6f4ff5b5200ea6b2e48ae2fa6ad09e (patch)
treea9146d385342f61ca383c7db75c5f58648c04850 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
parentbnx2x: Correct number of MSI-X vectors for VFs (diff)
downloadkernel-qcow2-linux-5b622918cd6f4ff5b5200ea6b2e48ae2fa6ad09e.tar.gz
kernel-qcow2-linux-5b622918cd6f4ff5b5200ea6b2e48ae2fa6ad09e.tar.xz
kernel-qcow2-linux-5b622918cd6f4ff5b5200ea6b2e48ae2fa6ad09e.zip
bnx2x: Clean before update RSS arrives
When a PF receives a VF message indicating a change in RSS properties it should clean the flags' bit-fields; Otherwise, it's possible that some random values will be considered as flags by the lower layers configuring the RSS in FW. Signed-off-by: Michal Kalderon <michals@broadcom.com> Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Ariel Elior <ariele@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c')
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
index 32c92abf5094..95feada2549a 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
@@ -4382,8 +4382,11 @@ int bnx2x_config_rss(struct bnx2x *bp,
struct bnx2x_raw_obj *r = &o->raw;
/* Do nothing if only driver cleanup was requested */
- if (test_bit(RAMROD_DRV_CLR_ONLY, &p->ramrod_flags))
+ if (test_bit(RAMROD_DRV_CLR_ONLY, &p->ramrod_flags)) {
+ DP(BNX2X_MSG_SP, "Not configuring RSS ramrod_flags=%lx\n",
+ p->ramrod_flags);
return 0;
+ }
r->set_pending(r);