On Thu, Aug 22, 2019 at 2:18 AM <pbhagavat...@marvell.com> wrote: > > From: Pavan Nikhilesh <pbhagavat...@marvell.com> > > Add `rte_eth_dev_set_supported_ptypes` function that will allow the > application to inform the PMD the packet types it is interested in. > Based on the ptypes set PMDs can optimize their Rx path. > > -If application doesn’t want any ptype information it can call > `rte_eth_dev_set_supported_ptypes(ethdev_id, RTE_PTYPE_UNKNOWN)` and PMD > will set rte_mbuf::packet_type to 0. > > -If application doesn’t call `rte_eth_dev_set_supported_ptypes` PMD can > return `rte_mbuf::packet_type` with `rte_eth_dev_get_supported_ptypes`. > > -If application is interested only in L2/L3 layer, it can inform the PMD > to update `rte_mbuf::packet_type` with L2/L3 ptype by calling > `rte_eth_dev_set_supported_ptypes(ethdev_id, > RTE_PTYPE_L2_MASK | RTE_PTYPE_L3_MASK)`. > > Suggested-by: Konstantin Ananyev <konstantin.anan...@intel.com> > Signed-off-by: Pavan Nikhilesh <pbhagavat...@marvell.com> > --- > doc/guides/nics/features.rst | 12 ++++++--- > doc/guides/rel_notes/release_19_11.rst | 7 ++++++ > lib/librte_ethdev/rte_ethdev.c | 32 ++++++++++++++++++++++++ > lib/librte_ethdev/rte_ethdev.h | 16 ++++++++++++ > lib/librte_ethdev/rte_ethdev_core.h | 6 +++++ > lib/librte_ethdev/rte_ethdev_version.map | 3 +++
For octeontx2, This feature was enabled through devargs as "ptype_disable" argument. Now that, We have public API, Could you remove the "ptype_disable" devargs from octeontx2 driver as a separate patch with devargs update in doc/guides/nics/octeontx2.rst.