3e3f736e50
Previously, TX functions call rte_pktmbuf_is_contiguous to determine whether an mbuf is chained. However, rte_pktmbuf_is_contiguous is designed to work on the first mbuf of a packet only. In case a packet contains three or more segment mbufs in a chain, it may cause truncated packets or rte_mbuf_sanity_check panics. This patch updates TX functions to determine chained mbufs using mbuf_head->nb_segs field, which works in all cases. Moreover, it maintains that the second cacheline is only accessed when chained mbuf is actually present. Fixes: |
||
---|---|---|
.. | ||
memif_socket.c | ||
memif_socket.h | ||
memif.h | ||
meson.build | ||
rte_eth_memif.c | ||
rte_eth_memif.h | ||
version.map |