#
2b843cac |
| 13-Dec-2023 |
David Marchand <david.marchand@redhat.com> |
drivers: use per line logging in helpers
Use RTE_LOG(_DP)?_LINE(_PREFIX)? in existing macros that append a \n.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Chengwen Feng <fen
drivers: use per line logging in helpers
Use RTE_LOG(_DP)?_LINE(_PREFIX)? in existing macros that append a \n.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Chengwen Feng <fengchengwen@huawei.com> Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru> Acked-by: Thomas Monjalon <thomas@monjalon.net>
show more ...
|
#
aa17df86 |
| 15-Sep-2022 |
Joyce Kong <joyce.kong@arm.com> |
net/memif: add a Rx fast path
For memif non-zero-copy mode, there is a branch to compare the mbuf and memif buffer size during memory copying. Mbuf and memif buffer size is defined at compile time.
net/memif: add a Rx fast path
For memif non-zero-copy mode, there is a branch to compare the mbuf and memif buffer size during memory copying. Mbuf and memif buffer size is defined at compile time. If memif buf size <= mbuf size, add a fast Rx memory copy path by removing this branch and mbuf bulk alloc.
The removal of the branch and bulk alloc lead to considerable performance uplift.
Test with 1p1q on N1SDP AArch64 server, -------------------------------------------- buf size | memif <= mbuf | memif > mbuf | -------------------------------------------- non-zc gain | 26.85% | -0.37% | -------------------------------------------- zc gain | 8.57% | 3.04% | --------------------------------------------
Test with 1p1q on Cascade Lake Xeon X86 server, -------------------------------------------- buf size | memif <= mbuf | memif > mbuf | -------------------------------------------- non-zc gain | 17.54% | -0.42% | -------------------------------------------- zc gain | 10.67% | 0.26% | --------------------------------------------
Signed-off-by: Joyce Kong <joyce.kong@arm.com> Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com> Acked-by: Morten Brørup <mb@smartsharesystems.com>
show more ...
|
#
f62d5262 |
| 07-Dec-2022 |
Junxiao Shi <git@mail1.yoursunny.com> |
net/memif: change socket listener owner uid/gid
This allows a DPDK application running with root privilege to create a memif socket listener with non-root owner uid and gid, which can be connected f
net/memif: change socket listener owner uid/gid
This allows a DPDK application running with root privilege to create a memif socket listener with non-root owner uid and gid, which can be connected from client applications running without root privilege.
Signed-off-by: Junxiao Shi <git@mail1.yoursunny.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Ferruh Yigit <ferruh.yigit@amd.com>
show more ...
|
#
77f4fbdd |
| 04-Oct-2022 |
Min Zhou <zhoumin@loongson.cn> |
net/memif: set memfd syscall ID for LoongArch
Define the missing __NR_memfd_create syscall id to enable the memif PMD on LoongArch.
Signed-off-by: Min Zhou <zhoumin@loongson.cn>
|
#
a4f8f0fa |
| 07-Jun-2022 |
Stanislaw Kardach <kda@semihalf.com> |
net/memif: set memfd syscall ID for RISC-V
Define the missing __NR_memfd_create syscall id to enable the memif PMD.
Sponsored-by: Frank Zhao <frank.zhao@starfivetech.com> Sponsored-by: Sam Grove <s
net/memif: set memfd syscall ID for RISC-V
Define the missing __NR_memfd_create syscall id to enable the memif PMD.
Sponsored-by: Frank Zhao <frank.zhao@starfivetech.com> Sponsored-by: Sam Grove <sam.grove@sifive.com> Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
show more ...
|
#
d61138d4 |
| 22-Oct-2021 |
Harman Kalra <hkalra@marvell.com> |
drivers: remove direct access to interrupt handle
Removing direct access to interrupt handle structure fields, rather use respective get set APIs for the same. Making changes to all the drivers acce
drivers: remove direct access to interrupt handle
Removing direct access to interrupt handle structure fields, rather use respective get set APIs for the same. Making changes to all the drivers access the interrupt handle fields.
Signed-off-by: Harman Kalra <hkalra@marvell.com> Acked-by: Hyong Youb Kim <hyonkim@cisco.com> Signed-off-by: David Marchand <david.marchand@redhat.com> Tested-by: Raslan Darawsheh <rasland@nvidia.com>
show more ...
|
#
e0ae50c6 |
| 25-Feb-2021 |
Thomas Monjalon <thomas@monjalon.net> |
build: remove redundant _GNU_SOURCE definitions
The feature macro _GNU_SOURCE is defined globally, but there was some remaining useless settings.
The internal definition in config/meson.build is ke
build: remove redundant _GNU_SOURCE definitions
The feature macro _GNU_SOURCE is defined globally, but there was some remaining useless settings.
The internal definition in config/meson.build is kept, all other internal definitions of _GNU_SOURCE are removed, except in examples, which can be built as external applications. Note: external applications do not inherit of _GNU_SOURCE.
Fixes: 5d7b673d5fd6 ("mk: build with _GNU_SOURCE defined by default") Fixes: 28188cee2aa0 ("build: enable BSD features visibility for FreeBSD") Fixes: e6cdc54cc0ef ("net/mlx5: add socket server for external tools") Cc: stable@dpdk.org
Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru> Acked-by: David Marchand <david.marchand@redhat.com>
show more ...
|
#
df96fd0d |
| 29-Jan-2021 |
Bruce Richardson <bruce.richardson@intel.com> |
ethdev: make driver-only headers private
The rte_ethdev_driver.h, rte_ethdev_vdev.h and rte_ethdev_pci.h files are for drivers only and should be a private to DPDK and not installed.
Signed-off-by:
ethdev: make driver-only headers private
The rte_ethdev_driver.h, rte_ethdev_vdev.h and rte_ethdev_pci.h files are for drivers only and should be a private to DPDK and not installed.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com> Acked-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Steven Webster <steven.webster@windriver.com>
show more ...
|
#
d250589d |
| 15-Oct-2020 |
Stephen Hemminger <stephen@networkplumber.org> |
net/memif: replace master/slave arguments
Replace master/slave terms in this driver.
The memory interface drivers uses a client/server architecture so change the variable names and device arguments
net/memif: replace master/slave arguments
Replace master/slave terms in this driver.
The memory interface drivers uses a client/server architecture so change the variable names and device arguments to that.
The previous devargs are maintained for compatibility, but if used cause a notice in the log.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
#
2f865ed0 |
| 12-Oct-2020 |
Jakub Grajciar <jgrajcia@cisco.com> |
net/memif: use abstract socket address
Abstract socket address has no connection with filesystem pathnames and the socket disappears once all open references are closed.
Memif pmd will use abstract
net/memif: use abstract socket address
Abstract socket address has no connection with filesystem pathnames and the socket disappears once all open references are closed.
Memif pmd will use abstract socket address by default. For backwards compatibility use new argument 'socket-abstract=no'
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
show more ...
|
#
cbbbbd33 |
| 09-Mar-2020 |
Július Milan <jmilan.dev@gmail.com> |
net/memif: enable loopback
With this patch it is possible to connect 2 DPDK memifs into loopback, i.e. when they have the same id and different roles, as for example: "--vdev=net_memif0,role=maste
net/memif: enable loopback
With this patch it is possible to connect 2 DPDK memifs into loopback, i.e. when they have the same id and different roles, as for example: "--vdev=net_memif0,role=master,id=0" "--vdev=net_memif1,role=slave,id=0"
Signed-off-by: Július Milan <jmilan.dev@gmail.com> Reviewed-by: Jakub Grajciar <jgrajcia@cisco.com>
show more ...
|
#
43b815d8 |
| 04-Nov-2019 |
Jakub Grajciar <jgrajcia@cisco.com> |
net/memif: support zero-copy slave
Zero-copy slave support for memif PMD. Slave interface exposes DPDK memory to master interface. Only single file segments are supported (EAL option --single-file-s
net/memif: support zero-copy slave
Zero-copy slave support for memif PMD. Slave interface exposes DPDK memory to master interface. Only single file segments are supported (EAL option --single-file-segments).
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
2e56e788 |
| 26-Jul-2019 |
David Marchand <david.marchand@redhat.com> |
net/memif: do not count unsent packets as errors
n_err reflects the number of packets that the driver did not manage to send. This is a temporary situation, those packets are not freed and the appli
net/memif: do not count unsent packets as errors
n_err reflects the number of packets that the driver did not manage to send. This is a temporary situation, those packets are not freed and the application can still retry to send them later. Hence, we can't count them as transmit failed.
Fixes: 09c7e63a71f9 ("net/memif: introduce memory interface PMD")
Signed-off-by: David Marchand <david.marchand@redhat.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
c41a0495 |
| 25-Jun-2019 |
Jakub Grajciar <jgrajcia@cisco.com> |
net/memif: support multi-process
Multi-process support for memif PMD. Primary process handles connection establishment. Secondary process queries for memory regions.
Signed-off-by: Jakub Grajciar <
net/memif: support multi-process
Multi-process support for memif PMD. Primary process handles connection establishment. Secondary process queries for memory regions.
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
09c7e63a |
| 06-Jun-2019 |
Jakub Grajciar <jgrajcia@cisco.com> |
net/memif: introduce memory interface PMD
Shared memory packet interface (memif) PMD allows for DPDK and any other client using memif (DPDK, VPP, libmemif) to communicate using shared memory. The cr
net/memif: introduce memory interface PMD
Shared memory packet interface (memif) PMD allows for DPDK and any other client using memif (DPDK, VPP, libmemif) to communicate using shared memory. The created device transmits packets in a raw format. It can be used with Ethernet mode, IP mode, or Punt/Inject. At this moment, only Ethernet mode is supported in DPDK memif implementation. Memif is Linux only.
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|