> > 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?