Skip to content

Commit

Permalink
net/qede: fix maximum Rx packet length
Browse files Browse the repository at this point in the history
[ upstream commit d8ded50 ]

Size of CRC is not added to max_rx_pktlen, due to this bigger sized
packets(size 1480, 1490 1500) are being dropped.
This fix adds RTE_ETHER_CRC_LEN to max_rx_pktlen.

Fixes: 1bb4a52 ("ethdev: fix max Rx packet length")

Signed-off-by: Devendra Singh Rawat <dsinghrawat@marvell.com>
Signed-off-by: Rasesh Mody <rmody@marvell.com>
  • Loading branch information
dsinghrawat-mvl authored and kevintraynor committed Mar 15, 2022
1 parent bc19f2b commit e91021c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/qede/qede_rxtx.c
Expand Up @@ -235,7 +235,7 @@ qede_rx_queue_setup(struct rte_eth_dev *dev, uint16_t qid,
dev->data->rx_queues[qid] = NULL;
}

max_rx_pktlen = dev->data->mtu + RTE_ETHER_HDR_LEN;
max_rx_pktlen = dev->data->mtu + RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN;

/* Fix up RX buffer size */
bufsz = (uint16_t)rte_pktmbuf_data_room_size(mp) - RTE_PKTMBUF_HEADROOM;
Expand Down

0 comments on commit e91021c

Please sign in to comment.