From: Long Li <lon...@microsoft.com> Report supported protocol types.
Signed-off-by: Long Li <lon...@microsoft.com> --- Change log. v7: change link_speed to RTE_ETH_SPEED_NUM_100G drivers/net/mana/mana.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/net/mana/mana.c b/drivers/net/mana/mana.c index f5084b4a3b..16fcfe0e99 100644 --- a/drivers/net/mana/mana.c +++ b/drivers/net/mana/mana.c @@ -118,9 +118,26 @@ mana_dev_close(struct rte_eth_dev *dev) return 0; } +static const uint32_t * +mana_supported_ptypes(struct rte_eth_dev *dev __rte_unused) +{ + static const uint32_t ptypes[] = { + RTE_PTYPE_L2_ETHER, + RTE_PTYPE_L3_IPV4_EXT_UNKNOWN, + RTE_PTYPE_L3_IPV6_EXT_UNKNOWN, + RTE_PTYPE_L4_FRAG, + RTE_PTYPE_L4_TCP, + RTE_PTYPE_L4_UDP, + RTE_PTYPE_UNKNOWN + }; + + return ptypes; +} + static const struct eth_dev_ops mana_dev_ops = { .dev_configure = mana_dev_configure, .dev_close = mana_dev_close, + .dev_supported_ptypes_get = mana_supported_ptypes, }; static const struct eth_dev_ops mana_dev_secondary_ops = { -- 2.17.1