Skip to content

Commit 7a826fb

Browse files
Sean Andersonkuba-moo
authored andcommitted
net: xilinx: axienet: Don't set IFF_PROMISC in ndev->flags
Contrary to the comment, we don't have to inform the net subsystem. Signed-off-by: Sean Anderson <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent cd039e6 commit 7a826fb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/net/ethernet/xilinx/xilinx_axienet_main.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -439,11 +439,6 @@ static void axienet_set_multicast_list(struct net_device *ndev)
439439

440440
if (ndev->flags & (IFF_ALLMULTI | IFF_PROMISC) ||
441441
netdev_mc_count(ndev) > XAE_MULTICAST_CAM_TABLE_NUM) {
442-
/* We must make the kernel realize we had to move into
443-
* promiscuous mode. If it was a promiscuous mode request
444-
* the flag is already set. If not we set it.
445-
*/
446-
ndev->flags |= IFF_PROMISC;
447442
reg = axienet_ior(lp, XAE_FMI_OFFSET);
448443
reg |= XAE_FMI_PM_MASK;
449444
axienet_iow(lp, XAE_FMI_OFFSET, reg);

0 commit comments

Comments
 (0)