[dpdk-dev] [PATCH 3/3] net/cxgbe: remove unused variable
Ferruh Yigit
ferruh.yigit at intel.com
Wed Jan 25 13:15:14 CET 2017
On 1/24/2017 8:48 PM, Emmanuel Roullit wrote:
> Fixes: c167acb61278 ("net/cxgbe: use I/O device memory read/write API")
>
> Signed-off-by: Emmanuel Roullit <emmanuel.roullit at gmail.com>
> ---
> drivers/net/cxgbe/sge.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/cxgbe/sge.c b/drivers/net/cxgbe/sge.c
> index 42051ca01..37b609040 100644
> --- a/drivers/net/cxgbe/sge.c
> +++ b/drivers/net/cxgbe/sge.c
> @@ -890,7 +890,7 @@ static inline int should_tx_packet_coalesce(struct sge_eth_txq *txq,
> struct sge_txq *q = &txq->q;
> unsigned int flits, ndesc;
> unsigned char type = 0;
> - int credits, hw_cidx = ntohs(q->stat->cidx);
> + int credits;
This depends on patch 2/3, so this patch will wait it to be clarified.
>
> /* use coal WR type 1 when no frags are present */
> type = (mbuf->nb_segs == 1) ? 1 : 0;
>
More information about the dev
mailing list