From 102be0a6cb956648489836a945217081a088dfeb Mon Sep 17 00:00:00 2001 From: "Charles (Chas) Williams" Date: Thu, 16 Jun 2016 18:50:06 -0400 Subject: [PATCH] net/bnx2x: fix incorrect buffer length on Rx The Rx function should not be setting the mbuf buffer length, so remove the assignment. Fixes: 540a211084a7 ("bnx2x: driver core") Signed-off-by: Charles (Chas) Williams Acked-by: Harish Patil --- drivers/net/bnx2x/bnx2x_rxtx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/bnx2x/bnx2x_rxtx.c b/drivers/net/bnx2x/bnx2x_rxtx.c index d0c42f8dbc..0ec4f899a9 100644 --- a/drivers/net/bnx2x/bnx2x_rxtx.c +++ b/drivers/net/bnx2x/bnx2x_rxtx.c @@ -418,7 +418,6 @@ bnx2x_recv_pkts(void *p_rxq, struct rte_mbuf **rx_pkts, uint16_t nb_pkts) rx_mb->next = NULL; rx_mb->pkt_len = rx_mb->data_len = len; rx_mb->port = rxq->port_id; - rx_mb->buf_len = len + pad; rte_prefetch1(rte_pktmbuf_mtod(rx_mb, void *)); /* -- 2.20.1