[dpdk-dev] [PATCH 02/13] net/sfc: emphasis that RSS hash flag is an Rx queue flag

Andrew Rybchenko arybchenko at solarflare.com
Thu Mar 2 08:07:08 CET 2017


Style fix to establish namespace for Rx queue flag defines.

Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>
---
 drivers/net/sfc/sfc_rx.c | 4 ++--
 drivers/net/sfc/sfc_rx.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/sfc/sfc_rx.c b/drivers/net/sfc/sfc_rx.c
index 906536e..e72cc3b 100644
--- a/drivers/net/sfc/sfc_rx.c
+++ b/drivers/net/sfc/sfc_rx.c
@@ -192,7 +192,7 @@
 	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 *);
@@ -715,7 +715,7 @@
 
 #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;
diff --git a/drivers/net/sfc/sfc_rx.h b/drivers/net/sfc/sfc_rx.h
index 45b1d77..622d66a 100644
--- a/drivers/net/sfc/sfc_rx.h
+++ b/drivers/net/sfc/sfc_rx.h
@@ -85,7 +85,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 */
-- 
1.8.2.3



More information about the dev mailing list