]> git.baikalelectronics.ru Git - kernel.git/commit
hinic: fix wrong return value of mac-set cmd
authorLuo bin <luobin9@huawei.com>
Thu, 24 Sep 2020 01:31:51 +0000 (09:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2020 03:00:40 +0000 (20:00 -0700)
commit1c1fe4214af65e349f65bfe7b9ec9a6d7b28d2fd
treef32b6758866def48f1bf1927532d4bbcb7796fe8
parent4dc0d496f4695a9f6b54b8211087e2cfe0449796
hinic: fix wrong return value of mac-set cmd

It should also be regarded as an error when hw return status=4 for PF's
setting mac cmd. Only if PF return status=4 to VF should this cmd be
taken special treatment.

Fixes: 4c5b2b71b830 ("hinic: add sriov feature support")
Signed-off-by: Luo bin <luobin9@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_port.c
drivers/net/ethernet/huawei/hinic/hinic_sriov.c