[dpdk-dev] [RFC 0/3] ethdev: add ptype as Rx offload

Hemant Agrawal hemant.agrawal at nxp.com
Tue Aug 6 10:19:21 CEST 2019

> Add PTYPE to DEV_RX_OFFLOAD_* flags.
> Currently, most of the NICs already support PTYPE parsing and update the
> mbuf->packet_type through an internal lookup table, but there is no way to
> disable the lookup if the application is not intrested in ptypes returned by
> `rte_eth_dev_get_supported_ptypes`.
[Hemant]  it will also mean introducing another check in datapath, if the application has asked for PTYPE offload - copy the results to mbuf->packet_type otherwise don't do it. 

Your second patch is incomplete in the sense that it only adds the capability. But it does not disable the lookups? 

More information about the dev mailing list