aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@linux.dev>2024-08-22 11:40:58 -0400
committerJakub Kicinski <kuba@kernel.org>2024-08-26 09:52:02 -0700
commit7a826fb3e4c68f42ffdec8361e1fb49cdfbbc991 (patch)
tree34873ef32efcc7e60794e74baf6a261a9dba5ccd
parentnet: xilinx: axienet: Don't print if we go into promiscuous mode (diff)
downloadwireguard-linux-7a826fb3e4c68f42ffdec8361e1fb49cdfbbc991.tar.xz
wireguard-linux-7a826fb3e4c68f42ffdec8361e1fb49cdfbbc991.zip
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 <sean.anderson@linux.dev> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20240822154059.1066595-5-sean.anderson@linux.dev Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--drivers/net/ethernet/xilinx/xilinx_axienet_main.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
index f612adb07a25..5c4a5949a021 100644
--- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
+++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
@@ -439,11 +439,6 @@ static void axienet_set_multicast_list(struct net_device *ndev)
if (ndev->flags & (IFF_ALLMULTI | IFF_PROMISC) ||
netdev_mc_count(ndev) > XAE_MULTICAST_CAM_TABLE_NUM) {
- /* We must make the kernel realize we had to move into
- * promiscuous mode. If it was a promiscuous mode request
- * the flag is already set. If not we set it.
- */
- ndev->flags |= IFF_PROMISC;
reg = axienet_ior(lp, XAE_FMI_OFFSET);
reg |= XAE_FMI_PM_MASK;
axienet_iow(lp, XAE_FMI_OFFSET, reg);