DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] max_rx_pkt_len
@ 2021-06-19 15:18 Balázs Lugossy
  0 siblings, 0 replies; only message in thread
From: Balázs Lugossy @ 2021-06-19 15:18 UTC (permalink / raw)
  To: dev

Hi DPDK developers,

We have an external DPDK KNI interface in our product, and we experienced that ethernet payload of size 1500 cannot be received, only 1496. It is important that the traffic is VLAN tagged. We have encountered this report: https://dev.dpdk.narkive.com/xGGOQC8R/dpdk-dev-issue-with-mtu-max-rx-pkt-len-handling-by-different-nics-pmd-drivers, which pretty much similar to our case. We started to experiment with max_rx_pkt_len, but no matter what we set it to it won't work with 1500 payload only 1496. Then we checked rte_eth_dev_configure and realized that max_rx_pkt_len is defaulted to ETHER_MAX_LEN in case max_rx_pkt_len is set to > ETHER_MAX_LEN. ETHER_MAX_LEN is 1518 and thus doesn't contain enough bytes for possible vlan header. As a workaround we have enabled JUMBO frames and set max_rx_pkt_len to 2048. This way traffic is fine. But I want to know what should be the official way to support 1500 payload in VLAN tagged frames with standard frame size?

Regards,
Balazs

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-21  7:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-19 15:18 [dpdk-dev] max_rx_pkt_len Balázs Lugossy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).