hinic: fix a bug of setting hw_ioctxt
authorLuo bin <luobin9@huawei.com>
Thu, 27 Feb 2020 06:34:43 +0000 (06:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Mar 2020 10:55:54 +0000 (11:55 +0100)
commit6bd688f39430f8b1a3a7ba1951db4bdc16634242
tree55ade8fafc937d5ad1e4094b35151228f246c717
parente78ae0038ee8dd366fc9e306596a9cfa1266878c
hinic: fix a bug of setting hw_ioctxt

[ Upstream commit d2ed69ce9ed3477e2a9527e6b89fe4689d99510e ]

a reserved field is used to signify prime physical function index
in the latest firmware version, so we must assign a value to it
correctly

Signed-off-by: Luo bin <luobin9@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c
drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h
drivers/net/ethernet/huawei/hinic/hinic_hw_if.h