DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 862] Uninitialized value of devargs.bus_str for RTE_DEVARGS_KEY_CLASS case
@ 2021-10-28 17:55 bugzilla
  2021-11-04 10:50 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2021-10-28 17:55 UTC (permalink / raw)
  To: dev

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: vsrivast@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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dpdk-dev] [Bug 862] Uninitialized value of devargs.bus_str for RTE_DEVARGS_KEY_CLASS case
  2021-10-28 17:55 [dpdk-dev] [Bug 862] Uninitialized value of devargs.bus_str for RTE_DEVARGS_KEY_CLASS case bugzilla
@ 2021-11-04 10:50 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2021-11-04 10:50 UTC (permalink / raw)
  To: dev

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

David Marchand (david.marchand@redhat.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|IN_PROGRESS                 |RESOLVED
                 CC|                            |david.marchand@redhat.com
         Resolution|---                         |FIXED

--- Comment #4 from David Marchand (david.marchand@redhat.com) ---
There was a fix already posted by Xueming, see:
https://patchwork.dpdk.org/project/dpdk/patch/20211027082221.693957-1-xuemingl@nvidia.com/

Fixed with: https://git.dpdk.org/dpdk/commit/?id=fc382022c6ad

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-04 10:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-28 17:55 [dpdk-dev] [Bug 862] Uninitialized value of devargs.bus_str for RTE_DEVARGS_KEY_CLASS case bugzilla
2021-11-04 10:50 ` bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).