net: hinic: Add control command support for VF PMD driver in DPDK
authorCai Huoqing <cai.huoqing@linux.dev>
Thu, 3 Nov 2022 08:05:10 +0000 (16:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Nov 2022 08:50:20 +0000 (08:50 +0000)
commit13265568a8633ab0d22e9def8cd9b8b0edb3ca85
treee9ba61b9db6f9e67d4d2df21d08be2bf0e5746e3
parentac33d7ae8f7117df63267207f889cd535402381b
net: hinic: Add control command support for VF PMD driver in DPDK

HINIC has a mailbox for PF-VF communication and the VF driver
could send port control command to PF driver via mailbox.

The control command only can be set to register in PF,
so add support in PF driver for VF PMD driver control
command when VF PMD driver work with linux PF driver.

Then, no need to add handlers to nic_vf_cmd_msg_handler[],
because the host driver just forwards it to the firmware.
Actually the firmware works on a coprocessor MGMT_CPU(inside the NIC)
which will recv and deal with these commands.

Signed-off-by: Cai Huoqing <cai.huoqing@linux.dev>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h
drivers/net/ethernet/huawei/hinic/hinic_sriov.c