From: Andrew Rybchenko Date: Mon, 20 Mar 2017 10:15:08 +0000 (+0000) Subject: net/sfc: emphasis that RSS hash flag is an Rx queue flag X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ad2a75c1bb7f221fa69636478d388161721d6a49;p=dpdk.git net/sfc: emphasis that RSS hash flag is an Rx queue flag Style fix to establish namespace for Rx queue flag defines. Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/sfc_rx.c b/drivers/net/sfc/sfc_rx.c index 214e6400bd..d6ba4e9af7 100644 --- a/drivers/net/sfc/sfc_rx.c +++ b/drivers/net/sfc/sfc_rx.c @@ -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; diff --git a/drivers/net/sfc/sfc_rx.h b/drivers/net/sfc/sfc_rx.h index de4ac128be..4e1b4c632d 100644 --- a/drivers/net/sfc/sfc_rx.h +++ b/drivers/net/sfc/sfc_rx.h @@ -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 */