]> asedeno.scripts.mit.edu Git - linux.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)
commit7f7d9e501f4123e64b130576621d24f9379adc8f
treee7b37095a5ca9c9e43351be33e7e6d7a3252686d
parent2d03eacc0b7e7aeedce6032f79872f3fd3d1a94f
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