net/iavf: fix supported RSS type
[dpdk.git] / drivers / net / hns3 / hns3_ethdev.h
index 22c6a15..dcae154 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <sys/time.h>
 #include <rte_alarm.h>
+#include <rte_ethdev_driver.h>
 
 #include "hns3_cmd.h"
 #include "hns3_mbx.h"
@@ -647,16 +648,17 @@ struct hns3_mp_param {
 #define HNS3_L2TBL_NUM 4
 #define HNS3_L3TBL_NUM 16
 #define HNS3_L4TBL_NUM 16
+#define HNS3_OL2TBL_NUM        4
 #define HNS3_OL3TBL_NUM        16
 #define HNS3_OL4TBL_NUM        16
 
 struct hns3_ptype_table {
-       uint32_t l2table[HNS3_L2TBL_NUM];
-       uint32_t l3table[HNS3_L3TBL_NUM];
+       uint32_t l2l3table[HNS3_L2TBL_NUM][HNS3_L3TBL_NUM];
        uint32_t l4table[HNS3_L4TBL_NUM];
        uint32_t inner_l2table[HNS3_L2TBL_NUM];
        uint32_t inner_l3table[HNS3_L3TBL_NUM];
        uint32_t inner_l4table[HNS3_L4TBL_NUM];
+       uint32_t ol2table[HNS3_OL2TBL_NUM];
        uint32_t ol3table[HNS3_OL3TBL_NUM];
        uint32_t ol4table[HNS3_OL4TBL_NUM];
 };
@@ -712,6 +714,7 @@ struct hns3_pf {
        struct hns3_err_msix_intr_stats abn_int_stats;
 
        bool support_sfp_query;
+       uint32_t fec_mode; /* current FEC mode for ethdev */
 
        struct hns3_vtag_cfg vtag_config;
        LIST_HEAD(vlan_tbl, hns3_user_vlan_table) vlan_list;