Wei Fang
a704919ef0
net: enetc: set MAC address to the VF net_device
...
[ Upstream commit badccd49b93bb945bf4e5cc8707db67cdc5e27e5 ]
The MAC address of VF can be configured through the mailbox mechanism of
ENETC, but the previous implementation forgot to set the MAC address in
net_device, resulting in the SMAC of the sent frames still being the old
MAC address. Since the MAC address in the hardware has been changed, Rx
cannot receive frames with the DMAC address as the new MAC address. The
most obvious phenomenon is that after changing the MAC address, we can
see that the MAC address of eno0vf0 has not changed through the "ifconfig
eno0vf0" command and the IP address cannot be obtained .
root@ls1028ardb:~# ifconfig eno0vf0 down
root@ls1028ardb:~# ifconfig eno0vf0 hw ether 00:04:9f:3a:4d:56 up
root@ls1028ardb:~# ifconfig eno0vf0
eno0vf0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 66:36:2c:3b:87:76 txqueuelen 1000 (Ethernet)
RX packets 794 bytes 69239 (69.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 11 bytes 2226 (2.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Fixes: beb74ac878c8 ("enetc: Add vf to pf messaging support")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Link: https://patch.msgid.link/20241029090406.841836-1-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-30 02:33:22 +01:00
Ksawlii
a5b7b870fc
Revert "net: fec: Refactor: #define magic constants"
...
This reverts commit 64636f4e88
.
2024-11-24 00:23:56 +01:00
Ksawlii
e7b1ec68bc
Revert "net: fec: Fix FEC_ECR_EN1588 being cleared on link-down"
...
This reverts commit 132969266d
.
2024-11-24 00:23:56 +01:00
Ksawlii
bfbdef95a1
Revert "wifi: virt_wifi: avoid reporting connection success with wrong SSID"
...
This reverts commit 1c786f1067
.
2024-11-24 00:23:56 +01:00
Ksawlii
4f9bfbe9f1
Revert "wifi: virt_wifi: don't use strlen() in const context"
...
This reverts commit 8df54fa66a
.
2024-11-24 00:23:56 +01:00
Ksawlii
683ecba589
Revert "net: dsa: mv88e6xxx: Limit chip-wide frame size config to CPU ports"
...
This reverts commit 4324f66a7a
.
2024-11-24 00:23:56 +01:00
Ksawlii
2e56e9f4fd
Revert "net: dsa: b53: Limit chip-wide jumbo frame config to CPU ports"
...
This reverts commit 23d58869be
.
2024-11-24 00:23:56 +01:00
Ksawlii
d3f5815f54
Revert "wifi: mwifiex: Fix interface type change"
...
This reverts commit 64663028ab
.
2024-11-24 00:23:56 +01:00
Ksawlii
fa72cb31d6
Revert "net: bonding: correctly annotate RCU in bond_should_notify_peers()"
...
This reverts commit 7dc1b04912
.
2024-11-24 00:23:56 +01:00
Ksawlii
32d9b82df9
Revert "net: stmmac: Correct byte order of perfect_match"
...
This reverts commit 4e35d4a08d
.
2024-11-24 00:23:55 +01:00
Ksawlii
eb36756b64
Revert "net/mlx5e: Add a check for the return value from mlx5_port_set_eth_ptys"
...
This reverts commit babb23917f
.
2024-11-24 00:23:55 +01:00
Ksawlii
9b5b6a7525
Revert "net: usb: qmi_wwan: fix memory leak for not ip packets"
...
This reverts commit 3789fee8a8
.
2024-11-24 00:23:55 +01:00
Ksawlii
97133e2e2e
Revert "net: dsa: bcm_sf2: Fix a possible memory leak in bcm_sf2_mdio_register()"
...
This reverts commit be9d7e8db2
.
2024-11-24 00:23:55 +01:00
Ksawlii
5c2a1132c9
Revert "net: fec: Stop PPS on driver remove"
...
This reverts commit e328279c90
.
2024-11-24 00:23:55 +01:00
Ksawlii
0b80835234
Revert "net/mlx5e: Correctly report errors for ethtool rx flows"
...
This reverts commit a1624526b7
.
2024-11-24 00:23:54 +01:00
Ksawlii
11596bfd09
Revert "net: axienet: Fix register defines comment description"
...
This reverts commit fd86cc6597
.
2024-11-24 00:23:54 +01:00
Ksawlii
7dd6e87cff
Revert "net: dsa: vsc73xx: pass value in phy_write operation"
...
This reverts commit 3c0fd5c577
.
2024-11-24 00:23:53 +01:00
Ksawlii
f4d0eedded
Revert "net: dsa: vsc73xx: use read_poll_timeout instead delay loop"
...
This reverts commit 98c55bf660
.
2024-11-24 00:23:53 +01:00
Ksawlii
36bbae2b95
Revert "net: dsa: vsc73xx: check busy flag in MDIO operations"
...
This reverts commit 509fc0dcd1
.
2024-11-24 00:23:53 +01:00
Ksawlii
29c857027d
Revert "net: hns3: fix wrong use of semaphore up"
...
This reverts commit deb6d455f4
.
2024-11-24 00:23:53 +01:00
Ksawlii
39f88f5bf8
Revert "net: hns3: fix a deadlock problem when config TC during resetting"
...
This reverts commit 26a0b43c4b
.
2024-11-24 00:23:53 +01:00
Ksawlii
038863cd84
Revert "wifi: cw1200: Avoid processing an invalid TIM IE"
...
This reverts commit 045e1a3f2e
.
2024-11-24 00:23:53 +01:00
Ksawlii
911ea2912e
Revert "wifi: iwlwifi: abort scan when rfkill on but device enabled"
...
This reverts commit a2e13a5078
.
2024-11-24 00:23:53 +01:00
Ksawlii
52f4f64489
Revert "net/sun3_82586: Avoid reading past buffer in debug output"
...
This reverts commit 70d98df8ea
.
2024-11-24 00:23:52 +01:00
Ksawlii
0eeaf7577a
Revert "net: hns3: add checking for vf id of mailbox"
...
This reverts commit 7e18329b75
.
2024-11-24 00:23:52 +01:00
Ksawlii
68834d1c47
Revert "bonding: fix bond_ipsec_offload_ok return type"
...
This reverts commit 38a3a70b3e
.
2024-11-24 00:23:51 +01:00
Ksawlii
6de0889cec
Revert "bonding: fix null pointer deref in bond_ipsec_offload_ok"
...
This reverts commit 4552f9f0ae
.
2024-11-24 00:23:51 +01:00
Ksawlii
0f85dd45e4
Revert "bonding: fix xfrm real_dev null pointer dereference"
...
This reverts commit 9fa8811d1a
.
2024-11-24 00:23:51 +01:00
Ksawlii
b4e9e5b37a
Revert "bonding: fix xfrm state handling when clearing active slave"
...
This reverts commit 08a3b787ac
.
2024-11-24 00:23:51 +01:00
Ksawlii
5036a90d21
Revert "ice: fix ICE_LAST_OFFSET formula"
...
This reverts commit 9a98cb967c
.
2024-11-24 00:23:51 +01:00
Ksawlii
091e8249c6
Revert "net: dsa: mv88e6xxx: read FID when handling ATU violations"
...
This reverts commit 6fad67a4c7
.
2024-11-24 00:23:51 +01:00
Ksawlii
c346f9c457
Revert "net: dsa: mv88e6xxx: replace ATU violation prints with trace points"
...
This reverts commit f634cf4b40
.
2024-11-24 00:23:51 +01:00
Ksawlii
6c2054cc66
Revert "net: dsa: mv88e6xxx: Fix out-of-bound access"
...
This reverts commit 2230f96d6c
.
2024-11-24 00:23:51 +01:00
Ksawlii
6fe606a02b
Revert "net: xilinx: axienet: Always disable promiscuous mode"
...
This reverts commit a7875446c0
.
2024-11-24 00:23:51 +01:00
Ksawlii
09bc706e3c
Revert "net: xilinx: axienet: Fix dangling multicast addresses"
...
This reverts commit ae9628b4fa
.
2024-11-24 00:23:50 +01:00
Ksawlii
8b24cf4850
Revert "wifi: mwifiex: duplicate static structs used in driver instances"
...
This reverts commit b610ebf3a2
.
2024-11-24 00:23:50 +01:00
Ksawlii
eac4761f23
Revert "gtp: fix a potential NULL pointer dereference"
...
This reverts commit fa13bd9705
.
2024-11-24 00:23:49 +01:00
Ksawlii
4b0722c93f
Revert "net: usb: qmi_wwan: add MeiG Smart SRM825L"
...
This reverts commit 00c231ae05
.
2024-11-24 00:23:48 +01:00
Ksawlii
dd0cd80967
Revert "wifi: iwlwifi: remove fw_running op"
...
This reverts commit 16883bf3ae
.
2024-11-24 00:23:48 +01:00
Ksawlii
179a92ca0d
Revert "virtio_net: Fix napi_skb_cache_put warning"
...
This reverts commit a5315ef480
.
2024-11-24 00:23:46 +01:00
Ksawlii
1e55dc00f6
Revert "can: mcp251x: fix deadlock if an interrupt occurs during mcp251x_open"
...
This reverts commit bd0d86f91e
.
2024-11-24 00:23:45 +01:00
Ksawlii
9c8504d56e
Revert "wifi: brcmsmac: advertise MFP_CAPABLE to enable WPA3"
...
This reverts commit 8ec1b558ee
.
2024-11-24 00:23:42 +01:00
Ksawlii
35b8c8834d
Revert "igb: Fix not clearing TimeSync interrupts for 82580"
...
This reverts commit 11b7218c81
.
2024-11-24 00:23:42 +01:00
Ksawlii
a4bc5ebe94
Revert "igc: Unlock on error in igc_io_resume()"
...
This reverts commit d0a818c297
.
2024-11-24 00:23:42 +01:00
Ksawlii
27364c06ed
Revert "net: usb: don't write directly to netdev->dev_addr"
...
This reverts commit d16fdd827d
.
2024-11-24 00:23:41 +01:00
Ksawlii
24a09ec9d4
Revert "usbnet: modern method to get random MAC"
...
This reverts commit dd010dbcce
.
2024-11-24 00:23:41 +01:00
Ksawlii
2990a48a81
Revert "bareudp: Fix device stats updates."
...
This reverts commit 831b755d5b
.
2024-11-24 00:23:41 +01:00
Ksawlii
e3f85dd1eb
Revert "gro: remove rcu_read_lock/rcu_read_unlock from gro_receive handlers"
...
This reverts commit c35b04ae63
.
2024-11-24 00:23:41 +01:00
Ksawlii
db38998ee6
Revert "gro: remove rcu_read_lock/rcu_read_unlock from gro_complete handlers"
...
This reverts commit db2af80170
.
2024-11-24 00:23:41 +01:00
Ksawlii
ddc4bffd5d
Revert "net: dsa: vsc73xx: fix possible subblocks range of CAPT block"
...
This reverts commit d94a0fcfb4
.
2024-11-24 00:23:41 +01:00