net/virtio: improve queue init error path
[dpdk.git] / drivers / net / hinic / hinic_pmd_ethdev.h
index 1cb389d..70b4d32 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <rte_ethdev.h>
 #include <rte_ethdev_core.h>
+#include <ethdev_driver.h>
 
 #include "base/hinic_compat.h"
 #include "base/hinic_pmd_cfg.h"
@@ -53,11 +54,13 @@ struct hinic_5tuple_filter_info {
         * used when more than one filter matches.
         */
        uint8_t priority;
-       uint8_t dst_ip_mask:1, /* if mask is 1b, do not compare dst ip. */
-               src_ip_mask:1, /* if mask is 1b, do not compare src ip. */
-               dst_port_mask:1, /* if mask is 1b, do not compare dst port. */
-               src_port_mask:1, /* if mask is 1b, do not compare src port. */
-               proto_mask:1; /* if mask is 1b, do not compare protocol. */
+
+       /* if mask is 1b, do not compare the response bit domain */
+       uint8_t dst_ip_mask:1,
+               src_ip_mask:1,
+               dst_port_mask:1,
+               src_port_mask:1,
+               proto_mask:1;
 };
 
 /* 5tuple filter structure */
@@ -327,7 +330,8 @@ struct hinic_nic_dev {
        unsigned int flags;
        struct nic_service_cap nic_cap;
        u32 rx_mode_status;     /* promisc or allmulticast */
-       unsigned long dev_status;
+       pthread_mutex_t rx_mode_mutex;
+       u32 dev_status;
 
        char proc_dev_name[HINIC_DEV_NAME_LEN];
        /* PF0->COS4, PF1->COS5, PF2->COS6, PF3->COS7,