#
66fd2cc2 |
| 18-Jul-2024 |
Malcolm Bumgardner <mbumgard@cisco.com> |
dev: fix callback lookup when unregistering device
In the device event unregister code, it unconditionally removes all callbacks which are registered with device_name set to NULL. This results in ma
dev: fix callback lookup when unregistering device
In the device event unregister code, it unconditionally removes all callbacks which are registered with device_name set to NULL. This results in many callbacks incorrectly removed.
Fix this by only removing callbacks with matching cb_fn and cb_arg.
Fixes: a753e53d517b ("eal: add device event monitor framework") Cc: stable@dpdk.org
Signed-off-by: Malcolm Bumgardner <mbumgard@cisco.com> Signed-off-by: Long Li <longli@microsoft.com> Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
#
ae67895b |
| 08-Dec-2023 |
David Marchand <david.marchand@redhat.com> |
lib: add more logging helpers
Add helpers for logging messages in libraries instead of calling RTE_LOG() directly. Those helpers take care of adding a \n: this will make the transition to RTE_LOG_LI
lib: add more logging helpers
Add helpers for logging messages in libraries instead of calling RTE_LOG() directly. Those helpers take care of adding a \n: this will make the transition to RTE_LOG_LINE trivial.
Note: - for acl and sched libraries that still has some debug multilines messages, a direct call to RTE_LOG is used: this will make it easier to notice such special cases,
Signed-off-by: David Marchand <david.marchand@redhat.com>
show more ...
|
#
5b569f2e |
| 28-Jul-2022 |
David Marchand <david.marchand@redhat.com> |
dev: provide bus specific information
For diagnostic, it may be useful to provide a description of the device with bus specific information.
Signed-off-by: David Marchand <david.marchand@redhat.com
dev: provide bus specific information
For diagnostic, it may be useful to provide a description of the device with bus specific information.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
ec5ecd7e |
| 28-Jul-2022 |
David Marchand <david.marchand@redhat.com> |
dev: introduce device accessors
Prepare for making the device object opaque by adding accessors. Update existing "external" users.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by
dev: introduce device accessors
Prepare for making the device object opaque by adding accessors. Update existing "external" users.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
1acb7f54 |
| 28-Jul-2022 |
David Marchand <david.marchand@redhat.com> |
dev: hide driver object
Make rte_driver opaque for non internal users. This will make extending this object possible without breaking the ABI.
Introduce a new driver header and move rte_driver defi
dev: hide driver object
Make rte_driver opaque for non internal users. This will make extending this object possible without breaking the ABI.
Introduce a new driver header and move rte_driver definition. Update drivers and library to use the internal header.
Some applications may have been dereferencing rte_driver objects, mark this object's accessors as stable.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Jay Jayatheerthan <jay.jayatheerthan@intel.com> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Acked-by: Akhil Goyal <gakhil@marvell.com> Acked-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
show more ...
|
#
97bbdba3 |
| 28-Jul-2022 |
David Marchand <david.marchand@redhat.com> |
dev: introduce driver accessors
Prepare for making the driver object opaque by adding accessors. Update existing "external" users. Internal users may still dereference a rte_driver object.
Signed-o
dev: introduce driver accessors
Prepare for making the driver object opaque by adding accessors. Update existing "external" users. Internal users may still dereference a rte_driver object.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
a04322f6 |
| 28-Jul-2022 |
David Marchand <david.marchand@redhat.com> |
bus: hide bus object
Make rte_bus opaque for non internal users. This will make extending this object possible without breaking the ABI.
Introduce a new driver header and move rte_bus definition an
bus: hide bus object
Make rte_bus opaque for non internal users. This will make extending this object possible without breaking the ABI.
Introduce a new driver header and move rte_bus definition and helpers. Update drivers and library to use the internal header.
Some applications may have been dereferencing rte_bus objects, mark this object's accessors as stable.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
99948194 |
| 28-Jul-2022 |
David Marchand <david.marchand@redhat.com> |
dev: hide debug messages in device iterator
For any bus that does not support device iteration, rte_dev_iterator_init both returned an error code and logged an error message. An application (like te
dev: hide debug messages in device iterator
For any bus that does not support device iteration, rte_dev_iterator_init both returned an error code and logged an error message. An application (like testpmd) that only wants to list devices, would have no choice but to inspect a bus object to avoid spewing error logs.
Make those log messages debug level, and remove the check in testpmd.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
72b452c5 |
| 27-Aug-2022 |
Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> |
eal: remove unneeded includes from a public header
Do not include <ctype.h>, <errno.h>, and <stdlib.h> from <rte_common.h>, because they are not used by this file. Include the needed headers directl
eal: remove unneeded includes from a public header
Do not include <ctype.h>, <errno.h>, and <stdlib.h> from <rte_common.h>, because they are not used by this file. Include the needed headers directly from the files that need them.
Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
26d734b5 |
| 14-Apr-2022 |
David Marchand <david.marchand@redhat.com> |
devargs: fix leak on hotplug failure
Caught by ASan, if a secondary process tried to attach a device with an incorrect driver name, devargs was leaked.
Fixes: 64051bb1f144 ("devargs: unify scratch
devargs: fix leak on hotplug failure
Caught by ASan, if a secondary process tried to attach a device with an incorrect driver name, devargs was leaked.
Fixes: 64051bb1f144 ("devargs: unify scratch buffer storage") Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
show more ...
|
#
30a1de10 |
| 15-Feb-2022 |
Sean Morrissey <sean.morrissey@intel.com> |
lib: remove unneeded header includes
These header includes have been flagged by the iwyu_tool and removed.
Signed-off-by: Sean Morrissey <sean.morrissey@intel.com>
|
#
fc382022 |
| 27-Oct-2021 |
Xueming Li <xuemingl@nvidia.com> |
eal: fix device iterator when no bus is selected
Devargs used in device iterator initialization wasn't set to zero, random data like bus string lead to invalid address access.
This patch initialize
eal: fix device iterator when no bus is selected
Devargs used in device iterator initialization wasn't set to zero, random data like bus string lead to invalid address access.
This patch initializes devargs.
Bugzilla ID: 862 Fixes: c99a2d4c6b7f ("eal: implement device iteration initialization") Cc: stable@dpdk.org
Signed-off-by: Xueming Li <xuemingl@nvidia.com>
show more ...
|
#
99a2dd95 |
| 20-Apr-2021 |
Bruce Richardson <bruce.richardson@intel.com> |
lib: remove librte_ prefix from directory names
There is no reason for the DPDK libraries to all have 'librte_' prefix on the directory names. This prefix makes the directory names longer and also m
lib: remove librte_ prefix from directory names
There is no reason for the DPDK libraries to all have 'librte_' prefix on the directory names. This prefix makes the directory names longer and also makes it awkward to add features referring to individual libraries in the build - should the lib names be specified with or without the prefix. Therefore, we can just remove the library prefix and use the library's unique name as the directory name, i.e. 'eal' rather than 'librte_eal'
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|