https://bugs.dpdk.org/show_bug.cgi?id=862

            Bug ID: 862
           Summary: Uninitialized value of devargs.bus_str  for
                    RTE_DEVARGS_KEY_CLASS case
           Product: DPDK
           Version: 21.11
          Hardware: All
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: other
          Assignee: dev@dpdk.org
          Reporter: vsriv...@xilinx.com
  Target Milestone: ---

In the 21.11_rc2 code base there are some changes in the function
rte_devargs_layers_parse (in the lib/eal/common/eal_common_devargs.c) due to
these changes an issue got introduced which is resulting junk value for
'devargs.bus_str' in the function rte_dev_iterator_init for
RTE_DEVARGS_KEY_CLASS case.

- Earlier devargs->bus_str was getting populated for all the cases of
RTE_DEVARGS_KEY_*(_CLASS/_BUS/_DRIVER) in the rte_devargs_layers_parse.

- In the latest code it is getting populated only for RTE_DEVARGS_KEY_BUS so
for all other cases it has junk value for 'devargs.bus_str' if devargs fields
are NOT set to 0 by caller function.

- rte_dev_iterator_init is calling rte_devargs_layers_parse() and it does not
set devargs fields to 0 before passing it to rte_devargs_layers_parse so for
RTE_DEVARGS_KEY_CLASS case devargs->bus_str is having junk value which is
causing issue. 
- When running dpdk-vdpa app then it is unable to find vDPA device Due to this
issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to