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>
Sat, 21 Mar 2020 07:11:54 +0000 (08:11 +0100)
commite6f52d5ce1722bd5600cc617f7a2e5048813ed14
tree8c6259b62c97c1ab4b5236695ac9ae2d798d395c
parent65340b196811e9287b107d5a0b55c57b24609b28
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