From: Chiqijun chiqijun@huawei.com
driver inclusion category: feature bugzilla: 4472
-----------------------------------------------------------------------
Add support for hinic PMD on VF
Signed-off-by: Chiqijun chiqijun@huawei.com Reviewed-by: Wangxiaoyun cloud.wangxiaoyun@huawei.com Signed-off-by: Yang Yingliang yangyingliang@huawei.com --- drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c | 7 +++++++ drivers/net/ethernet/huawei/hinic/hinic_port_cmd.h | 7 +++++++ 2 files changed, 14 insertions(+)
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c b/drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c index 921c8baef2048..463b119c42e42 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c +++ b/drivers/net/ethernet/huawei/hinic/hinic_nic_cfg.c @@ -166,6 +166,13 @@ struct vf_cmd_check_handle nic_cmd_support_vf[] = {
{HINIC_PORT_CMD_SET_VLAN_FILTER, hinic_mbox_check_func_id_8B}, {HINIC_PORT_CMD_FORCE_PKT_DROP, check_force_pkt_drop}, + {HINIC_PORT_CMD_Q_FILTER, hinic_mbox_check_func_id_8B}, + {HINIC_PORT_CMD_TCAM_FILTER, NULL}, + {HINIC_PORT_CMD_UP_TC_ADD_FLOW, NULL}, + {HINIC_PORT_CMD_UP_TC_DEL_FLOW, NULL}, + {HINIC_PORT_CMD_UP_TC_FLUSH_TCAM, hinic_mbox_check_func_id_8B}, + {HINIC_PORT_CMD_UP_TC_CTRL_TCAM_BLOCK, hinic_mbox_check_func_id_8B}, + {HINIC_PORT_CMD_UP_TC_ENABLE, hinic_mbox_check_func_id_8B}, };
int hinic_init_function_table(void *hwdev, u16 rx_buf_sz) diff --git a/drivers/net/ethernet/huawei/hinic/hinic_port_cmd.h b/drivers/net/ethernet/huawei/hinic/hinic_port_cmd.h index 518c815e0e779..d720974926a7d 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_port_cmd.h +++ b/drivers/net/ethernet/huawei/hinic/hinic_port_cmd.h @@ -160,6 +160,13 @@ enum hinic_port_cmd { /* not defined in base line */
HINIC_PORT_CMD_GET_SFP_INFO = 0xad, + HINIC_PORT_CMD_UP_TC_ADD_FLOW = 0xAF, + HINIC_PORT_CMD_UP_TC_DEL_FLOW = 0xB0, + HINIC_PORT_CMD_UP_TC_GET_FLOW = 0xB1, + HINIC_PORT_CMD_UP_TC_FLUSH_TCAM = 0xB2, + HINIC_PORT_CMD_UP_TC_CTRL_TCAM_BLOCK = 0xB3, + HINIC_PORT_CMD_UP_TC_ENABLE = 0xB4, + HINIC_PORT_CMD_UP_TC_GET_TCAM_BLOCK = 0xB5,
HINIC_PORT_CMD_SET_NETQ = 0xc1, HINIC_PORT_CMD_ADD_RQ_FILTER = 0xc2,