net/sfc: emphasis that RSS hash flag is an Rx queue flag
authorAndrew Rybchenko <arybchenko@solarflare.com>
Mon, 20 Mar 2017 10:15:08 +0000 (10:15 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 16:59:42 +0000 (18:59 +0200)
Style fix to establish namespace for Rx queue flag defines.

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc_rx.c
drivers/net/sfc/sfc_rx.h

index 214e640..d6ba4e9 100644 (file)
@@ -194,7 +194,7 @@ sfc_rx_set_rss_hash(struct sfc_rxq *rxq, unsigned int flags, struct rte_mbuf *m)
        uint8_t *mbuf_data;
 
 
-       if ((rxq->flags & SFC_RXQ_RSS_HASH) == 0)
+       if ((rxq->flags & SFC_RXQ_FLAG_RSS_HASH) == 0)
                return;
 
        mbuf_data = rte_pktmbuf_mtod(m, uint8_t *);
@@ -765,7 +765,7 @@ sfc_rx_qinit(struct sfc_adapter *sa, unsigned int sw_index,
 
 #if EFSYS_OPT_RX_SCALE
        if (sa->hash_support == EFX_RX_HASH_AVAILABLE)
-               rxq->flags |= SFC_RXQ_RSS_HASH;
+               rxq->flags |= SFC_RXQ_FLAG_RSS_HASH;
 #endif
 
        rxq->state = SFC_RXQ_INITIALIZED;
index de4ac12..4e1b4c6 100644 (file)
@@ -87,7 +87,7 @@ struct sfc_rxq {
        uint16_t                prefix_size;
 #if EFSYS_OPT_RX_SCALE
        unsigned int            flags;
-#define SFC_RXQ_RSS_HASH       0x1
+#define SFC_RXQ_FLAG_RSS_HASH  0x1
 #endif
 
        /* Used on refill */