hinic: add generating mailbox random index support
authorLuo bin <luobin9@huawei.com>
Tue, 4 Aug 2020 02:19:11 +0000 (10:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Aug 2020 19:17:06 +0000 (12:17 -0700)
commit088c5f0d1a7c7f01e668d9d2d75e7d93b43b7690
tree6c848c916070a066c87b041bfb0a1c8960ad4a0e
parentda7955405fb25c11a541234b32d06d9c09f81be6
hinic: add generating mailbox random index support

add support to generate mailbox random id of VF to ensure that
mailbox messages PF received are from the correct VF.

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.h
drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c
drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.h
drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.h
drivers/net/ethernet/huawei/hinic/hinic_sriov.c