From: Andrew Rybchenko Date: Thu, 7 Feb 2019 12:17:40 +0000 (+0000) Subject: net/sfc: remove unnecessary functions to get RxQ index X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9f25da76b9f7b664965e1afaebbc8b3257a21dfa;p=dpdk.git net/sfc: remove unnecessary functions to get RxQ index RxQ index is stored in generic datapath queue structure. Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/sfc_ethdev.c b/drivers/net/sfc/sfc_ethdev.c index 47450f6b24..f3316e1435 100644 --- a/drivers/net/sfc/sfc_ethdev.c +++ b/drivers/net/sfc/sfc_ethdev.c @@ -442,7 +442,7 @@ sfc_rx_queue_release(void *queue) sa = rxq->evq->sa; sfc_adapter_lock(sa); - sw_index = sfc_rxq_sw_index(rxq); + sw_index = dp_rxq->dpq.queue_id; sfc_log_init(sa, "RxQ=%u", sw_index); diff --git a/drivers/net/sfc/sfc_rx.h b/drivers/net/sfc/sfc_rx.h index 9c946d7cb4..963d487c0e 100644 --- a/drivers/net/sfc/sfc_rx.h +++ b/drivers/net/sfc/sfc_rx.h @@ -61,18 +61,6 @@ struct sfc_rxq { uint16_t buf_size; }; -static inline unsigned int -sfc_rxq_sw_index_by_hw_index(unsigned int hw_index) -{ - return hw_index; -} - -static inline unsigned int -sfc_rxq_sw_index(const struct sfc_rxq *rxq) -{ - return sfc_rxq_sw_index_by_hw_index(rxq->hw_index); -} - struct sfc_rxq *sfc_rxq_by_dp_rxq(const struct sfc_dp_rxq *dp_rxq); /**