net/bnx2x: fix incorrect buffer length on Rx
authorCharles (Chas) Williams <ciwillia@brocade.com>
Thu, 16 Jun 2016 22:50:06 +0000 (18:50 -0400)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 24 Jun 2016 16:28:09 +0000 (18:28 +0200)
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 <ciwillia@brocade.com>
Acked-by: Harish Patil <harish.patil@qlogic.com>
drivers/net/bnx2x/bnx2x_rxtx.c

index d0c42f8..0ec4f89 100644 (file)
@@ -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 *));
 
                /*