The flag for enabling context descriptors in the vector paths should not
be limited to just the iavf driver, as other drivers may use context
paths in future also. Therefore move the flag out of the iavf-specific
part of the Tx queue structure, to put with other standard queue flags.

Signed-off-by: Bruce Richardson <[email protected]>
---
 drivers/net/intel/common/tx.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/intel/common/tx.h b/drivers/net/intel/common/tx.h
index 2d4a8b5d3c..fb5268c972 100644
--- a/drivers/net/intel/common/tx.h
+++ b/drivers/net/intel/common/tx.h
@@ -173,6 +173,7 @@ struct ci_tx_queue {
        bool tx_deferred_start; /* don't start this queue in dev start */
        bool q_set;             /* indicate if tx queue has been configured */
        bool use_vec_entry;     /* use sw_ring_vec (true for vector and simple 
paths) */
+       bool use_ctx;           /* with ctx info, each pkt needs two desc in 
vec paths */
        union {                  /* the VSI this queue belongs to */
                struct i40e_vsi *i40e_vsi;
                struct iavf_vsi *iavf_vsi;
@@ -194,7 +195,6 @@ struct ci_tx_queue {
 #define IAVF_TX_FLAGS_VLAN_TAG_LOC_L2TAG2 BIT(1)
                        uint8_t vlan_flag;
                        uint8_t tc;
-                       bool use_ctx;  /* with ctx info, each pkt needs two 
descriptors */
                        bool lldp_enabled;
                };
                struct { /* ixgbe specific values */
-- 
2.53.0

Reply via email to