[PATCH] app/dumpcap:fix coredump problem because pcap_dump 3th argument is null

2024-02-29 Thread Tianli Lai
if rte_pktmbuf_read() return NULL, pcap_dump() would coredump. Signed-off-by: Tianli Lai --- app/dumpcap/main.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/dumpcap/main.c b/app/dumpcap/main.c index d57db0589a..c941fb92bf 100644 --- a/app/dumpcap/main.c

[PATCH] net/dpaa2: set check sum good flags

2023-05-07 Thread Tianli Lai
set check sum good flags when dpaa2 hardware set check result. Signed-off-by: Tianli Lai --- drivers/net/dpaa2/dpaa2_rxtx.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index f60e78e1fd

[PATCH] net/dpaa2: change threshold value

2023-05-07 Thread Tianli Lai
this threshold value can be changed with function argument nb_rx_desc. Signed-off-by: Tianli Lai --- drivers/net/dpaa2/dpaa2_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 679f33ae1a

[PATCH v4] examples/kni: add interrupt mode to receive packets

2022-04-08 Thread Tianli Lai
kni application have two main-loop threads that they CPU utilization are up to 100 percent, this two theads are writing thread and reading thread. I thank set interrupt mode at reading thread would reduce this thread CPU utilization. Signed-off-by: Tianli Lai --- examples/kni/main.c | 91

[PATCH v3] examples/kni: add interrupt mode to receive packets

2022-04-07 Thread Tianli Lai
kni application have two main-loop threads that they CPU utilization are up to 100 percent, this two theads are writing thread and reading thread. I thank set interrupt mode at reading thread would reduce this thread CPU utilization. Signed-off-by: Tianli Lai --- examples/kni/main.c | 134

[PATCH] examples/kni: add interrupt mode to receive packets

2022-04-07 Thread Tianli Lai
kni application have two main-loop threads that they CPU utilization are up to 100 percent, this two theads are writing thread and reading thread. I thank set interrupt mode at reading thread would reduce this thread CPU utilization. Signed-off-by: Tianli Lai --- examples/kni/main.c | 135

[PATCH] examples/kni: add interrupt mode to receive packets

2022-04-07 Thread Tianli Lai
kni application have two main-loop threads that they CPU utilization are up to 100 percent, this two theads are writing thread and reading thread. I thank set interrupt mode at reading thread would reduce this thread CPU utilization. Signed-off-by: Tianli Lai --- examples/kni/main.c | 107

[PATCH] interrupts: add uio type to support multiple interrupt vector

2022-04-06 Thread Tianli Lai
vmxnet3 device use MSI-X interrupt type. vmxnet3 driver configure the hardware to generate MSI-X interrupts would fail when call rte_intr_cap_multiple function return zero. Signed-off-by: Tianli Lai --- lib/eal/linux/eal_interrupts.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib

[PATCH v2] net/dpaa2: fix dpdmux default interface

2022-03-29 Thread Tianli Lai
if dpdmux objects created by restool tools with the argument "--default-if=", this function would change it to 1 Fixes: 1def64c2d79e ("net/dpaa2: add dpdmux initialization and configuration") Cc: nipun.gu...@nxp.com Signed-off-by: Tianli Lai --- drivers/net/dpaa2/dpaa2_

[PATCH] net/dpaa2: fix dpdmux default interface

2022-03-29 Thread Tianli Lai
if dpdmux objects created by restool tools with the argument "--default-if=", this function would change it to 1 Signed-off-by: Tianli Lai --- drivers/net/dpaa2/dpaa2_mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dpaa2/dpaa2_mux.c b/drivers

[PATCH] net/pcap: add snaplen argument

2022-03-12 Thread Tianli Lai
snaplen argument would set the length of each packet that will save to pcap file. Signed-off-by: Tianli Lai --- doc/guides/nics/pcap_ring.rst | 16 +- drivers/net/pcap/pcap_ethdev.c | 58 +- 2 files changed, 58 insertions(+), 16 deletions(-) diff --git

[PATCH] net/pcap: add snaplen argument

2022-03-12 Thread Tianli Lai
snaplen argument would set the length of each packet that will save to pcap file. Signed-off-by: Tianli Lai --- doc/guides/nics/pcap_ring.rst | 16 ++- drivers/net/pcap/pcap_ethdev.c | 79 -- 2 files changed, 52 insertions(+), 43 deletions(-) diff --git a

[PATCH 2/2] app/pdump: add filter argument

2022-03-07 Thread Tianli Lai
filter argument contain size and snaplen argument. size argument set the pcap file size, if the total packet length over this value, pdump process will exist. snaplen argument set each packet length to save pcap file. Signed-off-by: Tianli Lai --- app/pdump/main.c | 213

[PATCH 1/2] net/pcap: add snaplen argument

2022-03-07 Thread Tianli Lai
snaplen argument would set the length of each packet that will save to pcap file. Signed-off-by: Tianli Lai --- drivers/net/pcap/pcap_ethdev.c | 63 ++ 1 file changed, 48 insertions(+), 15 deletions(-) diff --git a/drivers/net/pcap/pcap_ethdev.c b/drivers/net

[PATCH] examples/kni: add CR character at print log

2022-03-06 Thread Tianli Lai
add CR character at print link state information Signed-off-by: Tianli Lai --- examples/kni/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/kni/main.c b/examples/kni/main.c index f5b20a7b62..e99ef5c38a 100644 --- a/examples/kni/main.c +++ b/examples/kni

[PATCH] app/pdump: free mempool at cleanup resources

2022-02-24 Thread Tianli Lai
the mempool should be free when cleanup resources. Signed-off-by: Tianli Lai --- app/pdump/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/pdump/main.c b/app/pdump/main.c index 04a38e8..3fe17ea 100644 --- a/app/pdump/main.c +++ b/app/pdump/main.c @@ -507,6 +507,7 @@ struct

[PATCH] app/pdump: free mempool at cleanup resources

2022-02-24 Thread Tianli Lai
the mempool should be free when cleanup resources. Signed-off-by: Tianli Lai --- app/pdump/main.c | 4 1 file changed, 4 insertions(+) diff --git a/app/pdump/main.c b/app/pdump/main.c index 04a38e8..9c77fc6 100644 --- a/app/pdump/main.c +++ b/app/pdump/main.c @@ -507,6 +507,10 @@ struct

[PATCH] app/pdump: free mempool at cleanup resources

2022-02-24 Thread Tianli Lai
the mempool should be free when cleanup resources. Signed-off-by: Tianli Lai --- app/pdump/main.c | 4 1 file changed, 4 insertions(+) diff --git a/app/pdump/main.c b/app/pdump/main.c index 46f9d25..8101078 100644 --- a/app/pdump/main.c +++ b/app/pdump/main.c @@ -510,6 +510,10 @@ struct

[PATCH] mempool: fix rte primary program coredump

2021-11-10 Thread Tianli Lai
a" [9]: "stack" "dpaa2" [10]: "if_stack" "octeontx_fpavf" [11]: NULLNULL this array in primary program is different with secondary program. so when secondary program call rte_pktmbuf_pool_create_b