#
5ac1abdd |
| 18-Oct-2024 |
Robin Jarry <rjarry@redhat.com> |
pipeline: use IPv6 address structure
Update rte_table_action_ipv6_header and rte_table_action_nat_params to use rte_ipv6_addr structures instead of uint8_t[16] arrays.
For consistency, also update
pipeline: use IPv6 address structure
Update rte_table_action_ipv6_header and rte_table_action_nat_params to use rte_ipv6_addr structures instead of uint8_t[16] arrays.
For consistency, also update rte_swx_ipsec_sa_encap_params to use rte_ipv6_addr instead of in6_addr.
Signed-off-by: Robin Jarry <rjarry@redhat.com>
show more ...
|
#
e1a06e39 |
| 18-Oct-2024 |
Robin Jarry <rjarry@redhat.com> |
lpm6: use IPv6 address structure and utils
Replace ad-hoc uint8_t[16] array types in the API of rte_lpm6 with rte_ipv6_addr structures. Replace duplicate functions and macros with common ones from r
lpm6: use IPv6 address structure and utils
Replace ad-hoc uint8_t[16] array types in the API of rte_lpm6 with rte_ipv6_addr structures. Replace duplicate functions and macros with common ones from rte_ip6.h. Update all code accordingly.
NB: the conversion between 16 bytes arrays and RTE_IPV6() literals was done automatically with the following python script and adjusted manually afterwards:
import argparse import re import struct
ip = re.compile( r""" \{ [\s\t\r\n]*([\da-fA-Fx]+)[\s\t\r\n]*, [\s\t\r\n]*([\da-fA-Fx]+)[\s\t\r\n]*, [\s\t\r\n]*([\da-fA-Fx]+)[\s\t\r\n]*, [\s\t\r\n]*([\da-fA-Fx]+)[\s\t\r\n]*, [\s\t\r\n]*([\da-fA-Fx]+)[\s\t\r\n]*, [\s\t\r\n]*([\da-fA-Fx]+)[\s\t\r\n]*, [\s\t\r\n]*([\da-fA-Fx]+)[\s\t\r\n]*, [\s\t\r\n]*([\da-fA-Fx]+)[\s\t\r\n]*, [\s\t\r\n]*([\da-fA-Fx]+)[\s\t\r\n]*, [\s\t\r\n]*([\da-fA-Fx]+)[\s\t\r\n]*, [\s\t\r\n]*([\da-fA-Fx]+)[\s\t\r\n]*, [\s\t\r\n]*([\da-fA-Fx]+)[\s\t\r\n]*, [\s\t\r\n]*([\da-fA-Fx]+)[\s\t\r\n]*, [\s\t\r\n]*([\da-fA-Fx]+)[\s\t\r\n]*, [\s\t\r\n]*([\da-fA-Fx]+)[\s\t\r\n]*, [\s\t\r\n]*([\da-fA-Fx]+)[\s\t\r\n]* \} """, re.VERBOSE, )
def repl(match): u8 = bytes(int(g, 0) for g in match.groups("0")) nums = [] for u16 in struct.unpack("!HHHHHHHH", u8): if u16: nums.append(f"0x{u16:04x}") else: nums.append("0") return f"RTE_IPV6({', '.join(nums)})"
p = argparse.ArgumentParser() p.add_argument("args", nargs="+") args = p.parse_args()
for a in args.args:
with open(a) as f: buf = f.read()
buf = ip.sub(repl, buf) with open(a, "w") as f: f.write(buf)
Signed-off-by: Robin Jarry <rjarry@redhat.com>
show more ...
|
#
7e06c0de |
| 15-Apr-2024 |
Tyler Retzlaff <roretzla@linux.microsoft.com> |
examples: move alignment attribute on types for MSVC
Move location of __rte_aligned(a) to new conventional location. The new placement between {struct,union} and the tag allows the desired alignment
examples: move alignment attribute on types for MSVC
Move location of __rte_aligned(a) to new conventional location. The new placement between {struct,union} and the tag allows the desired alignment to be imparted on the type regardless of the toolchain being used for both C and C++. Additionally, it avoids confusion by Doxygen when generating documentation.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com> Reviewed-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Akhil Goyal <gakhil@marvell.com>
show more ...
|
#
971d2b57 |
| 11-Aug-2023 |
Tyler Retzlaff <roretzla@linux.microsoft.com> |
remove C11 compatibility macro
C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension_
remove C11 compatibility macro
C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary and then remove definition of RTE_STD_C11 macro.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Reviewed-by: Morten Brørup <mb@smartsharesystems.com>
show more ...
|
#
aae10e97 |
| 02-May-2023 |
Jerin Jacob <jerinj@marvell.com> |
examples/ip_pipeline: fix build with GCC 13
Fix the following build issue by initializing req to NULL for the local variable.
In function 'thread_msg_handle', inlined from 'thread_main' at ../examp
examples/ip_pipeline: fix build with GCC 13
Fix the following build issue by initializing req to NULL for the local variable.
In function 'thread_msg_handle', inlined from 'thread_main' at ../examples/ip_pipeline/thread.c:3130:6: ../examples/ip_pipeline/thread.c:535:20: warning: 'req' may be used uninitialized [-Wmaybe-uninitialized] 535 | if (req == NULL) | ^ ../examples/ip_pipeline/thread.c: In function 'thread_main': ../examples/ip_pipeline/thread.c:433:32: note: 'req' was declared here 433 | struct thread_msg_req *req;
Bugzilla ID: 1220 Fixes: a8bd581de397 ("examples/ip_pipeline: add thread runtime") Cc: stable@dpdk.org
Signed-off-by: Jerin Jacob <jerinj@marvell.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Tested-by: Ali Alnubani <alialnu@nvidia.com> Tested-by: Daxue Gao <daxuex.gao@intel.com>
show more ...
|
#
06c047b6 |
| 09-Feb-2022 |
Stephen Hemminger <stephen@networkplumber.org> |
remove unnecessary null checks
Functions like free, rte_free, and rte_mempool_free already handle NULL pointer so the checks here are not necessary.
Remove redundant NULL pointer checks before free
remove unnecessary null checks
Functions like free, rte_free, and rte_mempool_free already handle NULL pointer so the checks here are not necessary.
Remove redundant NULL pointer checks before free functions found by nullfree.cocci
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
#
cb056611 |
| 15-Oct-2020 |
Stephen Hemminger <stephen@networkplumber.org> |
eal: rename lcore master and slave
Replace master lcore with main lcore and replace slave lcore with worker lcore.
Keep the old functions and macros but mark them as deprecated for this release.
T
eal: rename lcore master and slave
Replace master lcore with main lcore and replace slave lcore with worker lcore.
Keep the old functions and macros but mark them as deprecated for this release.
The "--master-lcore" command line option is also deprecated and any usage will print a warning and use "--main-lcore" as replacement.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
358eb133 |
| 27-Apr-2020 |
Jasvinder Singh <jasvinder.singh@intel.com> |
examples/ip_pipeline: remove check of null response
For sending request messages to data plane threads, the caller invokes *_msg_send_recv() functions which never return null response. Thus, removed
examples/ip_pipeline: remove check of null response
For sending request messages to data plane threads, the caller invokes *_msg_send_recv() functions which never return null response. Thus, removed redundant check on the returned response.
Coverity issue: 357750, 357740, 357749, 357758, 357702, 357736 Coverity issue: 357679, 357791, 357738, 357778, 357716, 357705 Coverity issue: 357776, 357753, 357729, 357735, 357773, 357723 Fixes: 32e5d9b154cb ("examples/ip_pipeline: add enable and disable commands") Fixes: 50e73d051806 ("examples/ip_pipeline: add stats read commands") Fixes: 6b1b3c3c9d30 ("examples/ip_pipeline: add port enable and disable commands") Fixes: a3a95b7d58b9 ("examples/ip_pipeline: add table entry commands") Fixes: 3186282f8e12 ("examples/ip_pipeline: add table bulk add command") Fixes: f634e4c5698a ("examples/ip_pipeline: add table entry delete command") Fixes: c64b9121a963 ("examples/ip_pipeline: add table entry stats command") Fixes: 7e11393e40ef ("examples/ip_pipeline: add meter profile commands") Fixes: e92058d604e6 ("examples/ip_pipeline: add meter stats command") Fixes: 2b82ef4861c0 ("examples/ip_pipeline: add DSCP table update command") Fixes: d0d306c7f2a1 ("examples/ip_pipeline: add TTL stats command") Fixes: a3169ee5ec59 ("examples/ip_pipeline: support rule time read") Cc: stable@dpdk.org
Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
show more ...
|
#
c4160d30 |
| 30-Oct-2018 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/ip_pipeline: fix port and table stats read
Fix the pipeline port and table stats read operation.
Fixes: 50e73d051806 ("examples/ip_pipeline: add stats read commands") Cc: stable@dpdk.org
examples/ip_pipeline: fix port and table stats read
Fix the pipeline port and table stats read operation.
Fixes: 50e73d051806 ("examples/ip_pipeline: add stats read commands") Cc: stable@dpdk.org
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
show more ...
|
#
a3169ee5 |
| 30-Oct-2018 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/ip_pipeline: support rule time read
Add support for the table rule timestamp read operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Sin
examples/ip_pipeline: support rule time read
Add support for the table rule timestamp read operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
show more ...
|
#
8bfe22ac |
| 30-Oct-2018 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/ip_pipeline: support rule TTL stats read
Add support for the table rule TTL stats read operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinde
examples/ip_pipeline: support rule TTL stats read
Add support for the table rule TTL stats read operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
show more ...
|
#
8c6dc647 |
| 30-Oct-2018 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/ip_pipeline: support meter stats read
Add support for the rule meter stats read operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh
examples/ip_pipeline: support meter stats read
Add support for the rule meter stats read operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
show more ...
|
#
87b36dcd |
| 30-Oct-2018 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/ip_pipeline: support rule stats read
Add support for rule stats read operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder
examples/ip_pipeline: support rule stats read
Add support for rule stats read operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
show more ...
|
#
f6df5f53 |
| 30-Oct-2018 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/ip_pipeline: track rules on delete default
Support table rule tracking on table rule delete default operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off
examples/ip_pipeline: track rules on delete default
Support table rule tracking on table rule delete default operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
show more ...
|
#
d2cb41c2 |
| 30-Oct-2018 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/ip_pipeline: track table rules on delete
Support table rule tracking on table rule delete operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvi
examples/ip_pipeline: track table rules on delete
Support table rule tracking on table rule delete operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
show more ...
|
#
c348ec05 |
| 30-Oct-2018 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/ip_pipeline: track rules on add default
Support table rule tracking on table rule add default operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: J
examples/ip_pipeline: track rules on add default
Support table rule tracking on table rule add default operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
show more ...
|
#
27b333b2 |
| 30-Oct-2018 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/ip_pipeline: track table rules on add bulk
Support table rule tracking on table rule add bulk operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: J
examples/ip_pipeline: track table rules on add bulk
Support table rule tracking on table rule add bulk operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
show more ...
|
#
4c65163e |
| 30-Oct-2018 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/ip_pipeline: track table rules on add
Support table rule tracking on table rule add operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder S
examples/ip_pipeline: track table rules on add
Support table rule tracking on table rule add operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
show more ...
|
#
d5ed626f |
| 10-Oct-2018 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/ip_pipeline: support packet decap action
Add support for packet decap table action.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
|
#
1bdf2632 |
| 09-Oct-2018 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/ip_pipeline: support packet tag action
Add support for the packet tag table action.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
|
#
223be676 |
| 28-Sep-2018 |
Reshma Pattan <reshma.pattan@intel.com> |
examples/ip_pipeline: fix IPv6 endianness
Fix IPv6 endianness from big endian to CPU order.
Fixes: a3a95b7d58 ("examples/ip_pipeline: add table entry commands") Cc: stable@dpdk.org
Signed-off-by:
examples/ip_pipeline: fix IPv6 endianness
Fix IPv6 endianness from big endian to CPU order.
Fixes: a3a95b7d58 ("examples/ip_pipeline: add table entry commands") Cc: stable@dpdk.org
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
show more ...
|
#
d46fe944 |
| 28-Sep-2018 |
Fan Zhang <roy.fan.zhang@intel.com> |
examples/ip_pipeline: support symmetric crypto action
This patch adds symmetric crypto action support to ip_pipeline application.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Cristi
examples/ip_pipeline: support symmetric crypto action
This patch adds symmetric crypto action support to ip_pipeline application.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
show more ...
|
#
f68a1d3f |
| 10-Jul-2018 |
Jasvinder Singh <jasvinder.singh@intel.com> |
examples/ip_pipeline: remove commands restriction
Currently, some CLI commands (for examples- add or delete pipeline table entries, add meter profile etc.) fails to execute when application pipeline
examples/ip_pipeline: remove commands restriction
Currently, some CLI commands (for examples- add or delete pipeline table entries, add meter profile etc.) fails to execute when application pipeline threads are not running. Therefore, command for enabling pipeline on the thread is required to be executed first or specified in the script file before any of such commands.
This patch removes above restriction and adds support for executing all CLI commands regardless of the pipeline thread state.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
show more ...
|
#
802755dc |
| 29-Mar-2018 |
Jasvinder Singh <jasvinder.singh@intel.com> |
examples/ip_pipeline: add load balance action command
Add command for load balance action.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvind
examples/ip_pipeline: add load balance action command
Add command for load balance action.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
show more ...
|
#
d0d306c7 |
| 29-Mar-2018 |
Jasvinder Singh <jasvinder.singh@intel.com> |
examples/ip_pipeline: add TTL stats command
Add command to read the ttl stats.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@int
examples/ip_pipeline: add TTL stats command
Add command to read the ttl stats.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
show more ...
|