]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Jan 2019 09:28:55 +0000 (09:28 +0000)
commitdd28e935e74163bd3233a5e0e0c8bb07a867a4f7
treeb7111cccf1562c8799236cfddc4c43aa30c2e8fe
parent1c78006602c6fed71e0f131211a0e77989c266ce
net: hns3: Change the dst mac addr of loopback packet

BugLink: https://bugs.launchpad.net/bugs/1810457
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>
(cherry picked from commit 7f7d9e501f4123e64b130576621d24f9379adc8f)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c