Expectations of an RX mbuf when using virtio PMD

Stephen Hemminger stephen at networkplumber.org
Tue Dec 10 17:57:58 CET 2024


On Sat, 7 Dec 2024 21:10:39 -0800
Patrick Mahan <mahan at mahan.org> wrote:

> On 12/7/24 3:58 PM, Oleksandr Nahnybida wrote:
> > Hello Patrick,
> > 
> > You can use rte_net_get_ptype function directly if packet_type is RTE_PTYPE_UNKNOWN.
> > Whether the packet_type value is set is PMD/NIC dependent.
> > i40e does this at the hardware level, virtio does this in software with 
> > rte_net_get_ptype and only in the specific case.
> >   
> 
> Thanks for the suggestion, I guess I was spoiled by the PMD setting it for me 
> that I expected it was a basic function of the PMD.

Most code doesn't use ptype, and reading the packet data to determine the
type would slow down tests like basic forwarding


More information about the users mailing list