Skip to content

Commit 1610c79

Browse files
Padmanabh Ratnakardavem330
authored andcommitted
be2net: Fix disabling multicast promiscous mode
If user tries to disable multicast promiscous mode, the adapter remains in this mode as resetting the multicast promiscous mode was missing in RX filter command. Fixed this. Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 016f97b commit 1610c79

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎drivers/net/ethernet/emulex/benet/be_cmds.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,6 +1540,13 @@ int be_cmd_rx_filter(struct be_adapter *adapter, u32 flags, u32 value)
15401540

15411541
req->if_flags_mask = req->if_flags =
15421542
cpu_to_le32(BE_IF_FLAGS_MULTICAST);
1543+
1544+
/* Reset mcast promisc mode if already set by setting mask
1545+
* and not setting flags field
1546+
*/
1547+
req->if_flags_mask |=
1548+
cpu_to_le32(BE_IF_FLAGS_MCAST_PROMISCUOUS);
1549+
15431550
req->mcast_num = cpu_to_le32(netdev_mc_count(adapter->netdev));
15441551
netdev_for_each_mc_addr(ha, adapter->netdev)
15451552
memcpy(req->mcast_mac[i++].byte, ha->addr, ETH_ALEN);

0 commit comments

Comments
 (0)