From: Charles (Chas) Williams Date: Thu, 16 Jun 2016 22:50:06 +0000 (-0400) Subject: net/bnx2x: fix incorrect buffer length on Rx X-Git-Tag: spdx-start~6415 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=102be0a6cb956648489836a945217081a088dfeb;p=dpdk.git 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 --- 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 *)); /*