Re: [PATCH v2] net/memif: change socket listener owner uid/gid

2022-12-07 Thread Junxiao Shi
Hi Ferruh > On 12/7/2022 2:41 PM, Junxiao Shi wrote: > > 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. &

[PATCH v3] net/memif: change socket listener owner uid/gid

2022-12-07 Thread Junxiao Shi
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 --- doc/guides/nics/memif.rst | 2 ++ drivers/net

[PATCH v2] net/memif: change socket listener owner uid/gid

2022-12-07 Thread Junxiao Shi
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 --- doc/guides/nics/memif.rst | 2 + drivers/net

[PATCH] net/memif: change socket listener owner uid/gid

2022-12-05 Thread Junxiao Shi
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 --- doc/guides/nics/memif.rst | 2 ++ drivers/net

[RFC PATCH v3] net/memif: change socket listener owner uid/gid

2022-11-16 Thread Junxiao Shi
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 --- doc/guides/nics/memif.rst | 2 ++ drivers/net

[RFC PATCH v2] net/memif: change socket listener owner uid/gid

2022-11-16 Thread Junxiao Shi
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 --- doc/guides/nics/memif.rst | 2 ++ drivers/net

[RFC PATCH] net/memif: change socket listener owner uid/gid

2022-11-15 Thread Junxiao Shi
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 --- doc/guides/nics/memif.rst | 2 ++ drivers/net

[PATCH] net/af_xdp: fix custom program loading with multiple queues

2022-03-09 Thread Junxiao Shi
. This causes XSK socket creation failure. This commit ensures that XSK_LIBBPF_FLAGS__INHIBIT_PROG_LOAD flag is set for all XSK socket creations when custom XDP program is being used. Fixes: 01fa83c94d7e ("net/af_xdp: workaround custom program loading") Signed-off-by: Junxiao Shi --- d

[PATCH v2] net/af_xdp: allow operation when multiprocess is disabled

2022-02-17 Thread Junxiao Shi
: 9876cf8316b3 ("net/af_xdp: re-enable secondary process support") Signed-off-by: Junxiao Shi --- drivers/net/af_xdp/rte_eth_af_xdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c index

[PATCH] net/af_xdp: allow operation when multiprocess is disabled

2022-02-16 Thread Junxiao Shi
: 9876cf8316b3 ("net/af_xdp: re-enable secondary process support") Signed-off-by: Junxiao Shi --- drivers/net/af_xdp/rte_eth_af_xdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c index

[PATCH] net/memif: allow stopping and closing device

2021-11-18 Thread Junxiao Shi
Bugzilla ID: 888 Fixes: febc855b358e ("ethdev: forbid closing started device") Signed-off-by: Junxiao Shi --- drivers/net/memif/rte_eth_memif.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/net/memif/rte_eth_memif.c b/drivers/net/memif/rte_e

[dpdk-dev] [PATCH] net/memif: allocate socket hash on any NUMA socket

2021-09-28 Thread Junxiao Shi
allocating memif socket hash on any NUMA socket. Signed-off-by: Junxiao Shi --- drivers/net/memif/memif_socket.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/memif/memif_socket.c b/drivers/net/memif/memif_socket.c index f58ff4c0cb..364e818d65 100644 --- a/drivers/net/memif/memi

[dpdk-dev] [PATCH] net/memif: fix chained mbuf determination

2021-09-09 Thread Junxiao Shi
rte_mbuf_sanity_check panics. This patch updates TX functions to determine chained mbufs using mbuf_head->nb_segs field, which works in all cases. Moreover, it maintains that the second cacheline is only accessed when chained mbuf is actually present. Signed-off-by: Junxiao Shi --- drivers/net/me

[dpdk-dev] [RFC PATCH v2] kni: properly translate pa2va for cloned mbuf

2020-01-28 Thread Junxiao Shi
ans_pa2va(rx_q) as well. Bugzilla ID: 183 Signed-off-by: Junxiao Shi --- kernel/linux/kni/kni_net.c| 4 ++-- lib/librte_eal/linux/eal/include/rte_kni_common.h | 3 ++- lib/librte_kni/rte_kni.c | 8 ++-- 3 files changed, 10 insertions(+), 5

[dpdk-dev] [PATCH] bpf: properly install headers in meson build

2020-01-27 Thread Junxiao Shi
Previously, when librte_bpf is built with meson+ninja, its headers such as bpf_def is not installed to the system. This commit fixes this problem. Fixes: 94972f3 ("bpf: add BPF loading and execution framework") Signed-off-by: Junxiao Shi --- lib/librte_bpf/meson.build | 2 +- 1 file

[dpdk-dev] [PATCH] drivers/crypto: fix set_sym_session_private_data error in sessionless mode

2020-01-27 Thread Junxiao Shi
segfaults in post_process_mb_job(). Bugzilla ID: 377 Fixes: b3bbd9e ("cryptodev: support device independent sessions") Fixes: c68d7aa ("crypto/aesni_mb: use architecture independent macros") Signed-off-by: Junxiao Shi --- drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 4 ++-- dr

[dpdk-dev] [PATCH] cryptodev: fix set_sym_session_private_data error in sessionless mode

2019-12-10 Thread Junxiao Shi
Bugzilla ID: 377 Signed-off-by: Junxiao Shi --- drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 4 ++-- drivers/crypto/openssl/rte_openssl_pmd.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c b/drivers/crypto/aesni_mb

[dpdk-dev] [RFC PATCH] kni: properly translate pa2va for cloned mbuf

2019-09-10 Thread Junxiao Shi
ans_pa2va(rx_q) as well. Bugzilla ID: 183 Signed-off-by: Junxiao Shi --- kernel/linux/kni/kni_net.c| 4 ++-- lib/librte_eal/linux/eal/include/rte_kni_common.h | 3 ++- lib/librte_kni/rte_kni.c | 8 ++-- 3 files changed, 10 insertions(+), 5

Re: [dpdk-dev] [v3] kni: fix possible kernel crash with va2pa

2019-07-02 Thread Junxiao Shi
I am battling a related problem as reported on https://bugs.dpdk.org/show_bug.cgi?id=183 and this patch seems relevant, so I applied this patch on 196a46fab6eeb3ce2039e3bcaca80f8ba43ffc8d However, this patch does not work for me: with CONFIG_RTE_LIBRTE_MBUF_DEBUG enabled, kni_free_mbufs's invocati

[dpdk-dev] [PATCH v2] cryptodev: free memzone when releasing cryptodev

2019-06-28 Thread Junxiao Shi
: Junxiao Shi --- lib/librte_cryptodev/rte_cryptodev.c | 46 ++-- 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c index 00c2cf4..a7a0d4b 100644 --- a/lib/librte_cryptodev

[dpdk-dev] [PATCH] cryptodev: free memzone when releasing cryptodev

2019-05-30 Thread Junxiao Shi
: Junxiao Shi --- lib/librte_cryptodev/rte_cryptodev.c | 44 +++- 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c index 00c2cf4..666dfea 100644 --- a/lib/librte_cryptodev

[dpdk-dev] [PATCH v2] crypto: fix element size for undefined crypto op

2018-10-09 Thread Junxiao Shi
ented") Signed-off-by: Junxiao Shi --- lib/librte_cryptodev/rte_cryptodev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c index 63ae23f00..608323fdd 100644 --- a/lib/librte_cryptodev/rte_cryptodev.c

[dpdk-dev] [PATCH] crypto: recognize OP_TYPE_UNDEFINED in rte_crypto_op_pool_create

2018-10-02 Thread Junxiao Shi
Signed-off-by: Junxiao Shi --- lib/librte_cryptodev/rte_cryptodev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c index 63ae23f..3d6f474 100644 --- a/lib/librte_cryptodev/rte_cryptodev.c +++ b/lib

[dpdk-dev] [PATCH] crypto: recognize OP_TYPE_UNDEFINED in rte_crypto_op_pool_create

2018-10-02 Thread Junxiao Shi
Signed-off-by: Junxiao Shi --- lib/librte_cryptodev/rte_cryptodev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c index 63ae23f..3d6f474 100644 --- a/lib/librte_cryptodev/rte_cryptodev.c +++ b/lib