[dpdk-dev] [RFC] function to parse packet headers
Morten Brørup
mb at smartsharesystems.com
Fri Jan 11 09:16:50 CET 2019
> From: dev [mailto:dev-bounces at 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
More information about the dev
mailing list