Re: [PATCH net-next v1 1/2] hinic: add generating mailbox random index support

2020-07-30 Thread luobin (L)
On 2020/7/31 0:25, Jakub Kicinski wrote: > On Thu, 30 Jul 2020 16:37:15 +0800 Luo bin wrote: >> +bool check_vf_mbox_random_id(struct hinic_mbox_func_to_func *func_to_func, >> + u8 *header) > > This set seems to add new W=1 C=1 warnings: > > drivers/net/ethernet/huawei/hini

Re: [PATCH net-next v1 1/2] hinic: add generating mailbox random index support

2020-07-30 Thread Jakub Kicinski
On Thu, 30 Jul 2020 16:37:15 +0800 Luo bin wrote: > +bool check_vf_mbox_random_id(struct hinic_mbox_func_to_func *func_to_func, > + u8 *header) This set seems to add new W=1 C=1 warnings: drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c:572:6: warning: no previous proto

[PATCH net-next v1 1/2] hinic: add generating mailbox random index support

2020-07-30 Thread Luo bin
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 --- .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 13 ++ .../net/ethernet/huawei/hinic/hinic_hw_mbox.c | 136 ++ .../net/ethernet/huawei/