[PATCH v3 2/3] test: allow larger packet sizes
Stephen Hemminger
stephen at networkplumber.org
Sat Jan 10 18:21:32 CET 2026
On Fri, 9 Jan 2026 16:00:00 +0100
Morten Brørup <mb at smartsharesystems.com> wrote:
> > generate_packet_burst(struct rte_mempool *mp, struct rte_mbuf
> > **pkts_burst,
> > struct rte_ether_hdr *eth_hdr, uint8_t vlan_enabled,
> > void *ip_hdr, uint8_t ipv4, struct rte_udp_hdr *udp_hdr,
> > - int nb_pkt_per_burst, uint8_t pkt_len, uint8_t
> > nb_pkt_segs);
> > + int nb_pkt_per_burst, uint16_t pkt_len, uint8_t
> > nb_pkt_segs);
>
> The pkt_len field in rte_mbuf is uint32_t.
> You could upgrade the packet length here to uint32_t too, instead of upgrading to only uint16_t.
This code is generating UDP packets, and the maximum size allowed with UDP is UINT16_MAX.
IP packet length is also limited to 16 bits.
But you comment did motivate fixing to allow more packet segments.
More information about the dev
mailing list