Use function attributes to catch cases where hash table is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
Acked-by: Konstantin Ananyev
---
lib/hash/rte_fbk_hash.h | 25 ++---
lib/hash/rte_hash.h | 22 --
2 files changed, 26 insert
Use function attributes to catch cases where compressdev is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/compressdev/rte_comp.h | 29 -
1 file changed, 16 insertions(+), 13 deletions(-)
diff --git a/lib/compressdev/rte_comp.h b/lib/comp
Use function attributes to catch cases where sched port config
is allocated but not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/sched/rte_sched.h | 24 ++--
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/lib/sched/rte_sched.h b/lib/sched/rte_sch
Use function attributes to catch cases where reorder table is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
Acked-by: Volodymyr Fialko
---
lib/reorder/rte_reorder.h | 24 +---
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/lib/reorder/r
Since many functions now have allocation attribute, add a release
note to inform users.
Signed-off-by: Stephen Hemminger
---
doc/guides/rel_notes/release_25_03.rst | 30 ++
1 file changed, 30 insertions(+)
diff --git a/doc/guides/rel_notes/release_25_03.rst
b/doc/guides
Use function attributes to catch cases where ring is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
Acked-by: Konstantin Ananyev
---
lib/ring/rte_ring.h | 23 +--
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/lib/ring/rte_ring.h b/lib/r
Use function attributes to catch cases where telemetry data
is allocated but not freed correctly.
Signed-off-by: Stephen Hemminger
Acked-by: Bruce Richardson
---
lib/telemetry/rte_telemetry.h | 21 +++--
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/lib/telemet
Use function attributes to catch cases where eventdev is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/eventdev/rte_event_ring.h | 27 ++-
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/lib/eventdev/rte_event_ring.h b/lib/eve
Use function attributes to catch cases where mempool is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
Reviewed-by: Morten Brørup
Acked-by: Konstantin Ananyev
---
lib/mempool/rte_mempool.h | 37 -
1 file changed, 20 insertions(+), 17 del
Use function attributes to catch cases where member table is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/member/rte_member.h | 24
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/lib/member/rte_member.h b/lib/member/rte_mem
Use function attributes to catch cases where bitratestats is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/bitratestats/rte_bitrate.h | 22 --
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/lib/bitratestats/rte_bitrate.h b/lib/bi
Use function attributes to catch cases where lpm table is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/lpm/rte_lpm.h | 23 ---
lib/lpm/rte_lpm6.h | 23 ---
2 files changed, 24 insertions(+), 22 deletions(-)
diff --git a/lib
Use function attributes to catch cases where pipeline is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/pipeline/rte_port_in_action.h | 56 ---
lib/pipeline/rte_table_action.h | 53 +++--
2 files changed, 57 inser
Use function attributes to catch cases where acl table is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
Acked-by: Konstantin Ananyev
---
lib/acl/rte_acl.h | 27 ---
1 file changed, 16 insertions(+), 11 deletions(-)
diff --git a/lib/acl/rte_acl.h b/
Add function attributes to catch cases where rib is allocated
and not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/rib/rte_rib.h | 26 +++---
lib/rib/rte_rib6.h | 24 +---
2 files changed, 28 insertions(+), 22 deletions(-)
diff --git a/lib/r
This patch series builds on the allocation function attributes
added in 24.11 release. These annotations will allow for compiler
to flag cases where a pointer is allocated with one function
but incorrectly passed to a different free function.
The current code base does this correctly now, but addi
Use function attributes to catch cases where fib table is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/fib/rte_fib.h | 26 +++---
lib/fib/rte_fib6.h | 24 +---
lib/fib/trie.h | 7 ---
3 files changed, 32 insertions(
Adds a method to os_session for bringing up port interface links,
an implementation for linux_session, and a call to this at node
init. This removes the current requirement that users bring
up the link on their TG interfaces before running DTS.
Tested-by: Patrick Robb
Signed-off-by: Patrick Robb
Hi Stephen,
> -Original Message-
> From: Stephen Hemminger
> Sent: Friday, January 24, 2025 10:01 AM
> To: Chautru, Nicolas
> Cc: dev@dpdk.org; maxime.coque...@redhat.com;
> hemant.agra...@nxp.com; Vargas, Hernan
> Subject: Re: [PATCH v2 3/3] baseband/acc: add internal logging
>
> On
Some testpmd runtime functions require that forwarding be stopped before
attempting to execute them, depending on the NIC and vendor. Adding a
decorator to these testpmdshell methods to stop, execute, and then start
forwarding again abstracts this concern away for test suite developers,
and makes f
v(2):
* packet sizes described in docstrings were incorrect in the previous
version. This new series fixes this.
For anyone who may need better context on the current situation of mtu
and how it is understood within dpdk as an application, you may find the
following inbox archives insightf
A functional test suite that assesses MTU updating and forwarding within
a DPDK application.
This suite consolidates the previous 'mtu_update' and 'jumbo_frames' test
suites from the old dts framework into a single, comprehensive test suite,
and it covers all of mtu the adjustment options within
Thank you for the feedback, see my comments below!
>> +current_mtu = testpmd_shell.show_port_info(0).mtu
>> +self.verify(current_mtu is not None, "Error grabbing testpmd MTU
>> value.")
>> +if current_mtu and (
>> +current_mtu >= STANDARD_MTU + VENDOR_AGNOSTIC
Hi Patrick,
Yes! Stop ports is a required decorator because some vendors require
that the ports themselves be stopped to change their MTU values during
runtime. This is not to be confused with forwarding, which is what my
decorator does on top of a given function. That said, I suppose this
could b
Add RSA-2k support in crypto-perf application.
Signed-off-by: Akhil Goyal
---
app/test-crypto-perf/cperf_ops.c | 68
app/test-crypto-perf/cperf_options.h | 4 +
app/test-crypto-perf/cperf_options_parsing.c | 39 -
app/test-crypto-perf/cperf_test_common.c
Thank you for picking and finishing this up, Luca! Much appreciated.
On Fri, Jan 24, 2025 at 6:39 AM Luca Vizzarro wrote:
>
> v4:
> - fixed bug where the CLI overrides where not being picked up
> when values were not set in the config and/or the defaults
> were available
> - added new comment
On Fri, 24 Jan 2025 09:38:20 +
Bruce Richardson wrote:
> >
>
> Does this flag give us additional guarantees of padding being
> zero-initialized that were there before? From my reading of the gcc doc[1],
> "..padding-bits=union" corresponds to the old behaviour, right?
>
> This also means
Use function attributes to catch cases where acl table is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
Acked-by: Konstantin Ananyev
---
lib/acl/rte_acl.h | 26 +++---
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/lib/acl/rte_acl.h b/l
Reviewed-by: Nicholas Pratte
On Fri, Jan 24, 2025 at 6:39 AM Luca Vizzarro wrote:
>
> From: Nicholas Pratte
>
> Rework 'lcores' and 'memory_channels' into a new 'dpdk_config'
> subsection in an effort to make these attributes SUT specific; the
> traffic generator, more often than not, does not
With GCC 15, the compiler has changed the default behavior when
initialization is used for aggregate variables. The new default
is to follow the standard (C23) and not initialize everything by
default. This breaks assumptions in some drivers and can be
lead to other bugs. Use the new zero initializ
Use function attributes to catch cases where eventdev is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/eventdev/rte_event_ring.h | 27 ++-
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/lib/eventdev/rte_event_ring.h b/lib/eve
Use function attributes to catch cases where lpm table is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/lpm/rte_lpm.h | 23 ---
lib/lpm/rte_lpm6.h | 23 ---
2 files changed, 24 insertions(+), 22 deletions(-)
diff --git a/lib
Add function attributes to catch cases where rib is allocated
and not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/rib/rte_rib.h | 24 +---
lib/rib/rte_rib6.h | 24 +---
2 files changed, 26 insertions(+), 22 deletions(-)
diff --git a/lib/rib
Use function attributes to catch cases where mempool is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
Reviewed-by: Morten Brørup
Acked-by: Konstantin Ananyev
---
lib/mempool/rte_mempool.h | 37 -
1 file changed, 20 insertions(+), 17 del
rte_ethdev_dev_configure need application to check the
device info if the offload flags are supported or not.
Added check to verify MACsec is supported before configuring
ethernet inline device.
Signed-off-by: Akhil Goyal
---
app/test/test_security_inline_macsec.c | 14 ++
1 file cha
Added ROC API to check if hardware has capability
to perform MACsec operations.
Skipped MACsec initialization if not supported by hardware
Signed-off-by: Akhil Goyal
---
drivers/common/cnxk/roc_mbox.h | 2 ++
drivers/common/cnxk/roc_mcs.c | 21 +
drivers/common/cnxk/roc_m
Nice touch!
Reviewed-by: Nicholas Pratte
On Fri, Jan 24, 2025 at 6:39 AM Luca Vizzarro wrote:
>
> The configuration requires the user to explicitly set the requested test
> suites in the files. Sometimes we want to run all the test suites and
> don't want to manually specify all of them. It is
This is great! Before Jeremy left, he suggested going a step further
and putting the config in a directory of its own, potentially offering
more flexibility. Something we could consider looking into in the
future, if there is time.
Reviewed-by: Nicholas Pratte
On Fri, Jan 24, 2025 at 6:39 AM Luc
Since many functions now have allocation attribute, add a release
note to inform users.
Signed-off-by: Stephen Hemminger
---
doc/guides/rel_notes/release_25_03.rst | 30 ++
1 file changed, 30 insertions(+)
diff --git a/doc/guides/rel_notes/release_25_03.rst
b/doc/guides
Use function attributes to catch cases where sched port config
is allocated but not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/sched/rte_sched.h | 23 +--
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/lib/sched/rte_sched.h b/lib/sched/rte_sche
Use function attributes to catch cases where telemetry data
is allocated but not freed correctly.
Signed-off-by: Stephen Hemminger
Acked-by: Bruce Richardson
---
lib/telemetry/rte_telemetry.h | 21 +++--
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/lib/telemet
Use function attributes to catch cases where compressdev is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/compressdev/rte_comp.h | 28 +++-
1 file changed, 15 insertions(+), 13 deletions(-)
diff --git a/lib/compressdev/rte_comp.h b/lib/compr
Use function attributes to catch cases where reorder table is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
Acked-by: Volodymyr Fialko
---
lib/reorder/rte_reorder.h | 23 ---
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/lib/reorder/rt
Use function attributes to catch cases where member table is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/member/rte_member.h | 24
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/lib/member/rte_member.h b/lib/member/rte_mem
Use function attributes to catch cases where ring is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
Acked-by: Konstantin Ananyev
---
lib/ring/rte_ring.h | 22 --
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/lib/ring/rte_ring.h b/lib/ri
Use function attributes to catch cases where pipeline is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/pipeline/rte_port_in_action.h | 55 ---
lib/pipeline/rte_table_action.h | 53 +++--
2 files changed, 56 inser
Use function attributes to catch cases where bitratestats is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/bitratestats/rte_bitrate.h | 22 --
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/lib/bitratestats/rte_bitrate.h b/lib/bi
This patch series builds on the allocation function attributes
added in 24.11 release. These annotations will allow for compiler
to flag cases where a pointer is allocated with one function
but incorrectly passed to a different free function.
The current code base does this correctly now, but addi
Use function attributes to catch cases where fib table is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
---
lib/fib/rte_fib.h | 26 +++---
lib/fib/rte_fib6.h | 24 +---
lib/fib/trie.h | 7 ---
3 files changed, 32 insertions(
Use function attributes to catch cases where hash table is allocated
but not freed correctly.
Signed-off-by: Stephen Hemminger
Acked-by: Konstantin Ananyev
---
lib/hash/rte_fbk_hash.h | 24 +---
lib/hash/rte_hash.h | 21 +++--
2 files changed, 24 insertio
Thank you for addressing this. Great work!
Reviewed-by: Nicholas Pratte
On Fri, Jan 24, 2025 at 6:39 AM Luca Vizzarro wrote:
>
> The current handling of the configuration loading is inconsistent. After
> the whole configuration is loaded, if there are any CLI or environment
> overrides set, the
I wonder if you could remove this particular patch entirely, since
this particular 'use_first_core' issue is addressed differently in the
proceeding patch. I left this patch in the original series so that we
might discuss what the best mode of action would be for tackling this
problem. In any case,
Reviewed-by: Nicholas Pratte
On Fri, Jan 24, 2025 at 6:39 AM Luca Vizzarro wrote:
>
> From: Nicholas Pratte
>
> The build options configuration contained redundant fields that were not
> in use, and there is no future scope for their use.
>
> Bugzilla ID: 1360
>
> Signed-off-by: Nicholas Pratte
Reviewed-by: Nicholas Pratte
On Fri, Jan 24, 2025 at 6:39 AM Luca Vizzarro wrote:
>
> From: Nicholas Pratte
>
> The 'arch' attribute in the conf.yaml is unnecessary, as this can be
> readily discovered directly from any given node.
>
> Bugzilla ID: 1360
>
> Signed-off-by: Nicholas Pratte
> Sig
On Fri, 24 Jan 2025 18:00:32 +0800
Dengdui Huang wrote:
> The number of xstats may be large, after the hide zero parameter to
> hide zero only non-zero values can be displayed.
>
> So display xstats with hide zero:
> dpdk-proc-info --proc-type=secondary -- --xstats
> and without hide zero:
>
On Fri, 24 Jan 2025 17:52:43 +
"Chautru, Nicolas" wrote:
> Hi Stephen,
>
> The commit message may be misleading, the logging interface doesn't change
> here. Note also that I reuse existing trace point framework for some of the
> error logging when relevant (see previous commit).
> Here
Hi Stephen,
The commit message may be misleading, the logging interface doesn't change
here. Note also that I reuse existing trace point framework for some of the
error logging when relevant (see previous commit).
Here the scope for that buffer is more limited, not a new logging method really
On Fri, 24 Jan 2025 17:59:57 +0800
Dengdui Huang wrote:
> diff --git a/lib/mbuf/rte_mbuf.c b/lib/mbuf/rte_mbuf.c
> index 559d5ad8a7..c828200ea1 100644
> --- a/lib/mbuf/rte_mbuf.c
> +++ b/lib/mbuf/rte_mbuf.c
> @@ -771,7 +771,7 @@ const char *rte_get_rx_ol_flag_name(uint64_t mask)
> case RTE_
When outputting an error for an invalid log prefix, don't just tell the
user that the prefix is wrong - also tell them what the expected prefix
should be.
Signed-off-by: Bruce Richardson
---
devtools/check-git-log.sh | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/devt
Support any expression as a blob length by using an intermediate
variable in the trace point emitter itself.
This also avoids any side effect on the passed variable.
Signed-off-by: David Marchand
---
lib/eal/include/rte_trace_point.h | 11 +
lib/eal/include/rte_trace_point_regi
The AVX-512 code path used a smaller SW ring structure only containing
the mbuf pointer, but no other fields. The other fields are only used in
the scalar code path, so update all vector driver code paths to use the
smaller, faster structure.
Signed-off-by: Bruce Richardson
---
drivers/net/intel
In preparation for merging the Tx structs for multiple drivers into a
single struct, rename the driver-specific pointers in each struct to
have a prefix on it, to avoid conflicts.
Signed-off-by: Bruce Richardson
---
drivers/net/intel/i40e/i40e_fdir.c| 6 +--
.../i40e/i40e_recycle_mb
On Fri, Jan 24, 2025 at 09:32:25AM +0100, David Marchand wrote:
> On Thu, Jan 23, 2025 at 5:02 PM Thomas Monjalon wrote:
> >
> > 23/01/2025 15:35, Bruce Richardson:
> > > On Thu, Jan 23, 2025 at 03:16:40PM +0100, David Marchand wrote:
> > > > On the check-git-log.sh update, we will have many warni
While some drivers have specific criteria for when a vector driver can
be enabled on the Rx path, there are a number of basic criteria which
apply across all drivers. Centralize those in the intel/common folder,
and then update drivers to use the common conditional checks. This adds
some additional
Across a number of drivers, the same code is used for initializing the
"mbuf_initializer" value inside the rx queue structure for use with the
vector drivers. Since the rx queue structures are (currently) different
across the drivers, we cannot just move a single copy of the function to
a common lo
Remove the custom vector Tx backlog entry function and use the standard
intel_common one, now that all vector drivers are using the same,
smaller ring structure.
Signed-off-by: Bruce Richardson
---
drivers/net/intel/ixgbe/ixgbe_rxtx_vec_common.h | 10 --
drivers/net/intel/ixgbe/ixgbe_rxt
With all drivers using the common Tx structure updated so that their
vector paths all use the simplified Tx mbuf ring format, it's no longer
necessary to have a separate flag for the ring format and for use of a
vector driver.
Remove the former flag and base all decisions off the vector flag. With
The AVX-512 code path used a smaller SW ring structure only containing
the mbuf pointer, but no other fields. The other fields are only used in
the scalar code path, so update all vector driver code paths (AVX2, SSE)
to use the smaller, faster structure.
Signed-off-by: Bruce Richardson
---
drive
The AVX-512 code path used a smaller SW ring structure only containing
the mbuf pointer, but no other fields. The other fields are only used in
the scalar code path, so update all vector driver code paths (AVX2, SSE,
Neon, Altivec) to use the smaller, faster structure.
Signed-off-by: Bruce Richard
Adjust iavf driver to also use the common mbuf freeing functions on Tx
queue release/cleanup. The implementation is complicated a little by the
need to integrate the additional "has_ctx" parameter for the iavf code,
but changes in other drivers are minimal - just a constant "false"
parameter.
Sign
Update driver to use the common cleanup function.
Signed-off-by: Bruce Richardson
---
drivers/net/intel/ixgbe/ixgbe_rxtx.c | 22 ++-
drivers/net/intel/ixgbe/ixgbe_rxtx.h | 1 -
.../net/intel/ixgbe/ixgbe_rxtx_vec_common.h | 28 ++-
drivers/net/inte
Update driver to be similar to the "ice" driver and use the common mbuf
ring cleanup code on shutdown of a Tx queue.
Signed-off-by: Bruce Richardson
---
drivers/net/intel/i40e/i40e_ethdev.h | 4 +-
drivers/net/intel/i40e/i40e_rxtx.c | 70 +++-
drivers/net/intel/i40e/i4
The functions to loop over the Tx queue and clean up all the mbufs on
it, e.g. for queue shutdown, is not device specific and so can move into
the common/intel headers. Only complication is ensuring that the
correct ring format, either minimal vector or full structure, is used.
Ice driver currently
Switch the iavf driver to use the common Tx free function. This requires
one additional parameter to that function, since iavf sometimes uses
context descriptors which means that we have double the descriptors per
SW ring slot.
Signed-off-by: Bruce Richardson
---
drivers/net/intel/common/tx.h
AVX-512 code paths for ice and i40e drivers are common, and differ from
the regular post-Tx free function in that the SW ring from which the
buffers are freed does not contain anything other than the mbuf pointer.
Merge these into a common function in intel/common to reduce
duplication.
Signed-off
Move some fields about to better pack the Tx queue structure and make
sure all data used by the vector codepaths is on the first cacheline of
the structure. Checking with "pahole" on 64-bit build, only one 6-byte
hole is left in the structure - on second cacheline - after this patch.
As part of th
The actions taken for post-Tx buffer free for the SSE and AVX drivers
for i40e, iavf and ice drivers are all common, so centralize those in
net/intel/common driver.
Signed-off-by: Bruce Richardson
---
drivers/net/intel/common/tx.h | 71 ++
drivers/net/intel/i40e/i
Merge in additional fields used by the ixgbe driver and then convert it
over to using the common Tx queue structure.
Signed-off-by: Bruce Richardson
---
drivers/net/intel/common/tx.h | 14 +++-
drivers/net/intel/ixgbe/ixgbe_ethdev.c| 4 +-
.../ixgbe/ixgbe_recycle_mbufs_v
Rather than having a two element array of context cache values inside
the Tx queue structure, convert it to a pointer to a cache at the end of
the structure. This makes future merging of the structure easier as we
don't need the "ixgbe_advctx_info" struct defined when defining a
combined queue stru
Merge in the few additional fields used by iavf driver and convert it to
using the common Tx queue structure also.
Signed-off-by: Bruce Richardson
---
drivers/net/intel/common/tx.h | 11 +
drivers/net/intel/iavf/iavf.h | 2 +-
drivers/net/intel/iavf/iavf_ethd
The queue structures of i40e and ice drivers are virtually identical, so
merge them into a common struct. This should allow easier function
merging in future using that common struct.
Signed-off-by: Bruce Richardson
---
drivers/net/intel/common/tx.h | 55 +
driver
Across the various Intel drivers sometimes different names are given to
fields in the Tx queue structure which have the same function. Do some
renaming in some drivers to align things better for future merging.
Signed-off-by: Bruce Richardson
---
drivers/net/intel/i40e/i40e_rxtx.c|
Move the short function used to place mbufs on the SW Tx ring to common
code to avoid duplication.
Signed-off-by: Bruce Richardson
---
drivers/net/intel/common/tx.h | 7 +++
drivers/net/intel/i40e/i40e_rxtx_vec_altivec.c | 4 ++--
drivers/net/intel/i40e/i40e_rxtx_vec_avx2.
Consolidate all Intel HW NIC drivers into a driver/net/intel This
matches the layout used for drivers in the kernel, and potentially
enabling easier sharing among drivers.
Signed-off-by: Bruce Richardson
---
MAINTAINERS | 20 +--
devtools/check-
The Tx entry structures, both vector and scalar, are common across Intel
drivers, so provide a single definition to be used everywhere.
Signed-off-by: Bruce Richardson
---
drivers/net/intel/common/tx.h | 27 +++
.../i40e/i40e_recycle_mbufs_vec_common.c | 2 +
The code for reassembling a single, multi-mbuf packet from multiple
buffers received from the NIC is duplicated across many drivers. Rather
than having multiple copies of this function, we can create an
"intel/common" directory to hold such functions and consolidate
multiple functions down to a sin
This patchset attempts to reduce the amount of code duplication across a
number of Intel NIC drivers, specifically: ixgbe, i40e, iavf, and ice.
As part of this process of deduplication, and in preparation for further
cleanup work, it moves all existing Intel drivers to a net/intel
directory, with a
No need to copy values in intermediate variables.
Just use the right trace point emitters.
Signed-off-by: David Marchand
---
lib/dmadev/rte_dmadev_trace.h| 20 ++--
lib/dmadev/rte_dmadev_trace_fp.h | 12
2 files changed, 10 insertions(+), 22 deletions(-)
diff --
On 2025/1/24 0:09, Stephen Hemminger wrote:
> On Thu, 23 Jan 2025 13:48:25 +0800
> "WanRenyong" wrote:
>
>> On 2025/1/22 21:39, Thomas Monjalon wrote:
+Yunsilicon xsc
+M: WanRenyong
+M: Na Na
+M: Rong Qian
+M: Xiaoxiong Zhang
+M: Dongwei Xu
>>> Looking at how the
On Fri, Jan 24, 2025 at 03:53:58PM +0100, David Marchand wrote:
> On Thu, Dec 5, 2024 at 9:36 PM Andre Muezerie
> wrote:
> >
> > MSVC does not support inline assembly so use movdiri intrinsic and
> > provide abstracted rte_ffs{32,64} inline functions instead of directly
> > using GCC built-ins.
>
From: Tyler Retzlaff
MSVC does not support inline assembly. Instead it provides compiler
intrinsics. Provide conditional compile for MSVC for movdiri using the
_directstoreu_u32 intrinsic.
Signed-off-by: Tyler Retzlaff
---
lib/eal/x86/include/rte_io.h | 4
1 file changed, 4 insertions(+)
MSVC does not support inline assembly so use movdiri intrinsic and
provide abstracted rte_ffs{32,64} inline functions instead of directly
using GCC built-ins.
v3:
* Added __rte_experimental to the new functions.
* Added comments to the new functions.
* Moved tests to test_bitcount.c
v2:
* Mov
From: Tyler Retzlaff
Provide toolchain abstraction for __builtin_ffs{,l,ll} gcc built-in
intrinsics.
Signed-off-by: Tyler Retzlaff
---
lib/eal/include/rte_bitops.h | 74
1 file changed, 74 insertions(+)
diff --git a/lib/eal/include/rte_bitops.h b/lib/eal/i
Add tests for new rte_ffs32 and rte_ffs64 functions.
Signed-off-by: Andre Muezerie
---
app/test/test_bitcount.c | 38 ++
1 file changed, 38 insertions(+)
diff --git a/app/test/test_bitcount.c b/app/test/test_bitcount.c
index 83c68feb7b..8eb4a460f2 100644
---
On Thu, Dec 5, 2024 at 9:36 PM Andre Muezerie
wrote:
>
> MSVC does not support inline assembly so use movdiri intrinsic and
> provide abstracted rte_ffs{32,64} inline functions instead of directly
> using GCC built-ins.
>
> v2:
> * Moved constants to the right side of the comparison
> * Added te
> From: Dengdui Huang [mailto:huangdeng...@huawei.com]
> Sent: Friday, 24 January 2025 11.00
>
> After discussion[1], the drivers do not include the CRC in the packet
> length calculation. This will cause users to be confused about whether
> the mbuf contains CRC data. This patch adds a packet off
Reviewed-by: Paul Szczepanek
On Tue, Dec 10, 2024 at 5:33 PM Andre Muezerie
wrote:
>
> MSVC does not support inline assembly, which is used by the
> implementation of rte_atomic128_cmp_exchange and is needed
> by lib/stack.
>
> Error printed by MSVC:
>
> stack_rte_stack_lf.c.obj : error LNK2019:
> unresolved external symb
rte_vhost_driver_callback_register() does not specify
any mandatory callbacks in struct rte_vhost_device_ops.
Add some missing NULL checks before calling rte_vhost_device_ops
callbacks.
Fixes: 4796ad63ba1f ("examples/vhost: import userspace vhost application")
Cc: sta...@dpdk.org
Signed-off-by:
Not a normal case, but noticed that setting some callbacks to
NULL in rte_vhost_driver_callback_register() causes a seg fault e.g. [0].
Added missing checks before calling. Alternative fix is to make some
callbacks mandatory and check during register - is that an API change? maybe,
so took simpler
1 - 100 of 141 matches
Mail list logo