kernel_samsung_a53x/drivers/net/ethernet/freescale/enetc
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
..
enetc.c Revert "net: enetc: Use IRQF_NO_AUTOEN flag in request_irq()" 2024-11-24 00:23:29 +01:00
enetc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
enetc_cbdr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
enetc_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
enetc_hw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
enetc_mdio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
enetc_msg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
enetc_pci_mdio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
enetc_pf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
enetc_pf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
enetc_ptp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
enetc_qos.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
enetc_vf.c net: enetc: set MAC address to the VF net_device 2024-11-30 02:33:22 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00