]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Change the dst mac addr of loopback packet
authorYunsheng Lin <linyunsheng@huawei.com>
Mon, 3 Sep 2018 10:21:54 +0000 (11:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2018 05:04:45 +0000 (22:04 -0700)
commit5e6915a4e4c271d681443d84f264248c3fe2a44f
treee7b37095a5ca9c9e43351be33e7e6d7a3252686d
parent7a8a55bfe243e9d861324d8c15fd4c0b1d118191
net: hns3: Change the dst mac addr of loopback packet

Currently, the dst mac addr of loopback packet is the same as
the host' mac addr, the SSU component may loop back the packet
to host before the packet reaches mac or serdes, which will defect
the purpose of mac or serdes selftest.

This patch changes it by adding 0x1f to the last byte of dst mac
addr.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c