net/octeontx2: fix packet type parsing disabled by default
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Sat, 23 Nov 2019 08:58:31 +0000 (14:28 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 26 Nov 2019 17:05:15 +0000 (18:05 +0100)
commite75eb0c8a2c4877465cf4a2f38c700990e3495f6
tree800fc0e3a3e7f5f422101320be87479d13c9600b
parent771e5af07320f2ba94afa59b763fad098e6e537a
net/octeontx2: fix packet type parsing disabled by default

Enable packet type parsing by default, only disable when
`rte_eth_dev_set_ptypes()` is called with ptype_mask as 0.
This would enable applications that are dependent on packet type parsing
like l3fwd.

Also this patch preserves configuration set by `rte_eth_dev_set_ptypes`
across multiple calls of `rte_eth_dev_configure()`

Fixes: d2706e15e6fb ("net/octeontx2: support reduced set of packet types")

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/octeontx2/otx2_ethdev.c
drivers/net/octeontx2/otx2_ethdev.h
drivers/net/octeontx2/otx2_lookup.c