Commit 42893f63 authored by duanqiangwen's avatar duanqiangwen Committed by Duanqiang Wen
Browse files

net: wangxun: fix changing mac failed when running

mainline inclusion
from mainline-v6.8-rc1
commit 87e839c82cc36346a2cd183ca941316902110716
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I93QRU
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=87e839c82cc36346a2cd183ca941316902110716



---------------------------------------------------------

in some bonding mode, service need to change mac when
netif is running. Wangxun netdev add IFF_LIVE_ADDR_CHANGE
priv_flag to support it.

Signed-off-by: default avatarduanqiangwen <duanqiangwen@net-swift.com>
Link: https://lore.kernel.org/r/20231206095044.17844-1-duanqiangwen@net-swift.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 0e6ac87d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -580,6 +580,7 @@ static int ngbe_probe(struct pci_dev *pdev,

	netdev->priv_flags |= IFF_UNICAST_FLT;
	netdev->priv_flags |= IFF_SUPP_NOFCS;
	netdev->priv_flags |= IFF_LIVE_ADDR_CHANGE;

	netdev->min_mtu = ETH_MIN_MTU;
	netdev->max_mtu = WX_MAX_JUMBO_FRAME_SIZE -
+1 −0
Original line number Diff line number Diff line
@@ -637,6 +637,7 @@ static int txgbe_probe(struct pci_dev *pdev,

	netdev->priv_flags |= IFF_UNICAST_FLT;
	netdev->priv_flags |= IFF_SUPP_NOFCS;
	netdev->priv_flags |= IFF_LIVE_ADDR_CHANGE;

	netdev->min_mtu = ETH_MIN_MTU;
	netdev->max_mtu = WX_MAX_JUMBO_FRAME_SIZE -