net/i40e: fix negative VEB index
[dpdk.git] / drivers / net / hns3 / hns3_ethdev.h
index 2ee2951..d27c725 100644 (file)
@@ -5,6 +5,7 @@
 #ifndef _HNS3_ETHDEV_H_
 #define _HNS3_ETHDEV_H_
 
+#include <pthread.h>
 #include <sys/time.h>
 #include <ethdev_driver.h>
 #include <rte_byteorder.h>
@@ -624,6 +625,9 @@ struct hns3_hw {
        uint8_t udp_cksum_mode;
 
        struct hns3_port_base_vlan_config port_base_vlan_cfg;
+
+       pthread_mutex_t flows_lock; /* rte_flow ops lock */
+
        /*
         * PMD setup and configuration is not thread safe. Since it is not
         * performance sensitive, it is better to guarantee thread-safety
@@ -833,6 +837,8 @@ struct hns3_adapter {
        uint32_t rx_func_hint;
        uint32_t tx_func_hint;
 
+       uint64_t dev_caps_mask;
+
        struct hns3_ptype_table ptype_tbl __rte_cache_min_aligned;
 };
 
@@ -847,6 +853,8 @@ enum {
 #define HNS3_DEVARG_RX_FUNC_HINT       "rx_func_hint"
 #define HNS3_DEVARG_TX_FUNC_HINT       "tx_func_hint"
 
+#define HNS3_DEVARG_DEV_CAPS_MASK      "dev_caps_mask"
+
 #define HNS3_DEV_SUPPORT_DCB_B                 0x0
 #define HNS3_DEV_SUPPORT_COPPER_B              0x1
 #define HNS3_DEV_SUPPORT_UDP_GSO_B             0x2