> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Andrew Rybchenko > On 1/11/19 3:11 AM, Stephen Hemminger wrote: > > > > All drivers that don't have hardware support for getting l2/l3 and > > ptype information should be calling rte_net_get_ptype() already. > > Is it documented somewhere? > The drivers need to parse the packet headers to set MBUF->packet_type, and without hardware support for it, the alternative to calling rte_net_get_ptype() is implementing duplicate code in the driver.
In other words, you can interpret Stephen's "should be" as "would be silly if not". :-) Med venlig hilsen / kind regards - Morten Brørup