net/bnx2x: fix Rx mode configuration
authorRasesh Mody <rasesh.mody@cavium.com>
Tue, 24 Jan 2017 05:38:33 +0000 (21:38 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 30 Jan 2017 21:18:26 +0000 (22:18 +0100)
commit25ffc78946d2101ded5220d6496610e9b3babb48
tree9ae32a9a3cf220e2f29a4dd54c5bb8ff1d77cfd5
parente20bd8a93c0f50699b5244c85a56ac745aedf10f
net/bnx2x: fix Rx mode configuration

Check if promisc mode was set when setting allmulti mode and vice-versa.
Introduced BNX2X_RX_MODE_ALLMULTI_PROMISC for the same. If check is
absent the filter configuration gets over written.

Fixes: 540a211084a7 ("bnx2x: driver core")
Fixes: 5dbc53d7e5a2 ("net/bnx2x: restrict Rx mask flags sent to the PF")
Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/bnx2x/bnx2x.c
drivers/net/bnx2x/bnx2x.h
drivers/net/bnx2x/bnx2x_ethdev.c
drivers/net/bnx2x/bnx2x_vfpf.c