hinic: fix a bug of setting hw_ioctxt
authorLuo bin <luobin9@huawei.com>
Thu, 27 Feb 2020 06:34:43 +0000 (06:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 19:08:01 +0000 (11:08 -0800)
commitd2ed69ce9ed3477e2a9527e6b89fe4689d99510e
tree28cd11fbc579908299298e05b3e9fae13dd09b54
parent0bff777bd0cba73ad4cd0145696ad284d7e6a99f
hinic: fix a bug of setting hw_ioctxt

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>
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