summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.c
diff options
context:
space:
mode:
authorJijie Shao <shaojijie@huawei.com>2025-04-10 05:13:26 +0300
committerJakub Kicinski <kuba@kernel.org>2025-04-12 06:17:36 +0300
commitae6c1dce3244e31011ee65f89fc2484f3cf6cf85 (patch)
tree8ba89d5b98e7efd32d72cdc4540e55c8bbae1ed9 /lib/mpi/mpi-inline.c
parent1d6c3e06232e5f53458842915bbff28e8fc29244 (diff)
downloadlinux-ae6c1dce3244e31011ee65f89fc2484f3cf6cf85.tar.xz
net: hibmcge: fix not restore rx pause mac addr after reset issue
The MAC hardware supports receiving two types of pause frames from link partner. One is a pause frame with a destination address of 01:80:C2:00:00:01. The other is a pause frame whose destination address is the address of the hibmcge driver. 01:80:C2:00:00:01 is supported by default. In .ndo_set_mac_address(), the hibmcge driver calls .hbg_hw_set_rx_pause_mac_addr() to set its mac address as the destination address of the rx puase frame. Therefore, pause frames with two types of MAC addresses can be received. Currently, the rx pause addr does not restored after reset. As a result, pause frames whose destination address is the hibmcge driver address cannot be correctly received. This patch restores the configuration by calling .hbg_hw_set_rx_pause_mac_addr() after reset is complete. Fixes: 3f5a61f6d504 ("net: hibmcge: Add reset supported in this module") Signed-off-by: Jijie Shao <shaojijie@huawei.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20250410021327.590362-7-shaojijie@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions