* [DPDK/ethdev Bug 1448] cannot disable RTE_ETHDEV_RXTX_CALLBACKS from rte_config.h
@ 2024-05-30 8:44 bugzilla
2024-05-30 10:54 ` bugzilla
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bugzilla @ 2024-05-30 8:44 UTC (permalink / raw)
To: dev
[-- Attachment #1: Type: text/plain, Size: 799 bytes --]
https://bugs.dpdk.org/show_bug.cgi?id=1448
Bug ID: 1448
Summary: cannot disable RTE_ETHDEV_RXTX_CALLBACKS from
rte_config.h
Product: DPDK
Version: 24.07
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: ethdev
Assignee: dev@dpdk.org
Reporter: gakhil@marvell.com
Target Milestone: ---
RTE_ETHDEV_RXTX_CALLBACKS is used with ifdefs in ethdev. But it is defined as
#define RTE_ETHDEV_RXTX_CALLBACKS 1
in rte_config.h
Hence we cannot actually disable it unless we undef/comment it.
Rather, we should use #if
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #2: Type: text/html, Size: 2664 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [DPDK/ethdev Bug 1448] cannot disable RTE_ETHDEV_RXTX_CALLBACKS from rte_config.h
2024-05-30 8:44 [DPDK/ethdev Bug 1448] cannot disable RTE_ETHDEV_RXTX_CALLBACKS from rte_config.h bugzilla
@ 2024-05-30 10:54 ` bugzilla
2024-05-30 14:05 ` bugzilla
2024-05-30 14:28 ` bugzilla
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla @ 2024-05-30 10:54 UTC (permalink / raw)
To: dev
[-- Attachment #1: Type: text/plain, Size: 822 bytes --]
https://bugs.dpdk.org/show_bug.cgi?id=1448
Morten Brørup (mb@smartsharesystems.com) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mb@smartsharesystems.com
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Morten Brørup (mb@smartsharesystems.com) ---
Using #ifdef is the convention in DPDK, like in the Linux Kernel.
The way to disable it is to outcomment it like this:
/* RTE_ETHDEV_RXTX_CALLBACKS is not set */
E.g.:
https://elixir.bootlin.com/dpdk/v24.03/source/config/rte_config.h#L60
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #2: Type: text/html, Size: 3083 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [DPDK/ethdev Bug 1448] cannot disable RTE_ETHDEV_RXTX_CALLBACKS from rte_config.h
2024-05-30 8:44 [DPDK/ethdev Bug 1448] cannot disable RTE_ETHDEV_RXTX_CALLBACKS from rte_config.h bugzilla
2024-05-30 10:54 ` bugzilla
@ 2024-05-30 14:05 ` bugzilla
2024-05-30 14:28 ` bugzilla
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla @ 2024-05-30 14:05 UTC (permalink / raw)
To: dev
[-- Attachment #1: Type: text/plain, Size: 825 bytes --]
https://bugs.dpdk.org/show_bug.cgi?id=1448
Thomas Monjalon (thomas@monjalon.net) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CONFIRMED
Resolution|INVALID |---
CC| |thomas@monjalon.net
Ever confirmed|0 |1
--- Comment #2 from Thomas Monjalon (thomas@monjalon.net) ---
We are not supposed to change anything in config/rte_config.h
because it is a source file.
The configuration should be changed only in the application or with Meson.
If think using #if is the good option here.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #2: Type: text/html, Size: 3084 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [DPDK/ethdev Bug 1448] cannot disable RTE_ETHDEV_RXTX_CALLBACKS from rte_config.h
2024-05-30 8:44 [DPDK/ethdev Bug 1448] cannot disable RTE_ETHDEV_RXTX_CALLBACKS from rte_config.h bugzilla
2024-05-30 10:54 ` bugzilla
2024-05-30 14:05 ` bugzilla
@ 2024-05-30 14:28 ` bugzilla
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla @ 2024-05-30 14:28 UTC (permalink / raw)
To: dev
[-- Attachment #1: Type: text/plain, Size: 1170 bytes --]
https://bugs.dpdk.org/show_bug.cgi?id=1448
Morten Brørup (mb@smartsharesystems.com) changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|CONFIRMED |RESOLVED
--- Comment #3 from Morten Brørup (mb@smartsharesystems.com) ---
The config/rte_config.h source code configuration is for exotic configuration
parameters that we don't want to expose to Meson.
The threshold between normal and exotic is not well defined. :-)
The bug report says that ethdev rx/tx callbacks cannot be disabled in
config/rte_config.h, where it is configurable. This is not correct. They can be
disabled in config/rte_config.h, so there is no bug; the bug reporter just
didn't know how to do it.
Although I personally prefer #if over #ifdef, it would be a huge patch series
to replace all occurrences of #ifdef XYZ with #if XYZ. (2800+ LOC containing
'#ifdef': grep -r '#ifdef' | grep -v '__cplusplus' | wc)
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #2: Type: text/html, Size: 3216 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-05-30 14:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-30 8:44 [DPDK/ethdev Bug 1448] cannot disable RTE_ETHDEV_RXTX_CALLBACKS from rte_config.h bugzilla
2024-05-30 10:54 ` bugzilla
2024-05-30 14:05 ` bugzilla
2024-05-30 14:28 ` 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).