need support with struct rte_eth_fdir_conf fdir_conf

Ajay Thakur ajaykt665 at gmail.com
Sun Mar 12 11:40:08 CET 2023


Hi,
I am trying to upgrade vpp20.09 with dpdk 22.11 from vpp20.09 with dpdk
21.11. So it is just DPDK i am trying to upgrade to 22.11.
I am encountering an issue with one of the structures. The structure *struct
rte_eth_fdir_conf fdir_conf*; /**< FDIR configuration. DEPRECATED */ is
deprecated in dpdk 22.11.
while dealing with the vpp
code: VPP/vpp-20.09/srcPatched/src/plugins/dpdk/device/common.c, there is a
piece of code which has dependency to above structure.

if (xd->pmd == VNET_DPDK_PMD_I40E)
    {
      if ((xd->flags & DPDK_DEVICE_FLAG_RX_FLOW_OFFLOAD) != 0)
        xd->port_conf.*fdir_conf*.mode = RTE_FDIR_MODE_PERFECT;
      else
        xd->port_conf.*fdir_conf*.mode = RTE_FDIR_MODE_NONE;
    }

while checking the vpp source of 23.02, i see above code from common.c
(function dpdk_device_setup line 82) being removed.
After seeing the dpdk 22.11 release notes, the structure *struct
rte_eth_fdir_conf fdir_conf *has moved to ethdev_driver.h which is internal
and  not supposed to be used by the user.
so what is the alternative to this. Do i need to retain the above piece of
code in my upgrade activity?




-- 


*Regards,*
*Ajay *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20230312/a64d2d2d/attachment-0001.htm>


More information about the dev mailing list