net/cxgbe: support flow API for matching all packets on VF
[dpdk.git] / drivers / net / cxgbe / base / adapter.h
index fcc84e4..c6b8036 100644 (file)
@@ -55,6 +55,12 @@ struct port_info {
        u8     rss_mode;                /* rss mode */
        u16    rss_size;                /* size of VI's RSS table slice */
        u64    rss_hf;                  /* RSS Hash Function */
+
+       /* viid fields either returned by fw
+        * or decoded by parsing viid by driver.
+        */
+       u8 vin;
+       u8 vivld;
 };
 
 /* Enable or disable autonegotiation.  If this is set to enable,
@@ -302,6 +308,7 @@ TAILQ_HEAD(mbox_list, mbox_entry);
 struct adapter_devargs {
        bool keep_ovlan;
        bool force_link_up;
+       bool tx_mode_latency;
 };
 
 struct adapter {
@@ -327,6 +334,8 @@ struct adapter {
        int use_unpacked_mode; /* unpacked rx mode state */
        rte_spinlock_t win0_lock;
 
+       rte_spinlock_t flow_lock; /* Serialize access for rte_flow ops */
+
        unsigned int clipt_start; /* CLIP table start */
        unsigned int clipt_end;   /* CLIP table end */
        unsigned int l2t_start;   /* Layer 2 table start */