Re: [dpdk-dev] [PATCH v2] mem: memory leaks of hubedir caused by strdup

2018-04-17 Thread zhouyangchao
As Burakov said, for no other reason, I just followed the old version. On Tue, Apr 17, 2018 at 6:31 PM Burakov, Anatoly wrote: > On 17-Apr-18 11:24 AM, Thomas Monjalon wrote: > > 17/04/2018 12:06, Yangchao Zhou: > >> Coverity issue: 272585 > >> Fixes: cb97d93e9d3b ("mem: share hugepage info prim

Re: [dpdk-dev] [PATCH] kni: optimize the kni release speed

2018-04-03 Thread zhouyangchao
On Tue, Mar 27, 2018 at 12:44 AM Ferruh Yigit wrote: > On 2/6/2018 10:33 AM, zhouyangchao wrote: > > Physical addresses in the fifo named alloc_q need to be traversed to > > release in user space. The physical address to the virtual address > > conversion in kernel space is

Re: [dpdk-dev] [PATCH] net/bnx2x: reserve enough headroom for mbuf prepend

2018-03-07 Thread zhouyangchao
ote: > On 2/6/2018 11:21 AM, zhouyangchao wrote: > > Can you please provide more information why this patch is needed? > > > Signed-off-by: Yangchao Zhou > > --- > > drivers/net/bnx2x/bnx2x_rxtx.c | 8 +--- > > 1 file changed, 5 insertions(+), 3 deletions(-)

[dpdk-dev] [PATCH] net/bnx2x: reserve enough headroom for mbuf prepend

2018-02-06 Thread zhouyangchao
Signed-off-by: Yangchao Zhou --- drivers/net/bnx2x/bnx2x_rxtx.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/bnx2x/bnx2x_rxtx.c b/drivers/net/bnx2x/bnx2x_rxtx.c index a0d4ac9..d8a3225 100644 --- a/drivers/net/bnx2x/bnx2x_rxtx.c +++ b/drivers/net/bnx2x/bn

[dpdk-dev] [PATCH] net/bnx2x: reserve enough headroom for mbuf prepend

2018-02-06 Thread zhouyangchao
Signed-off-by: Yangchao Zhou --- drivers/net/bnx2x/bnx2x_rxtx.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/bnx2x/bnx2x_rxtx.c b/drivers/net/bnx2x/bnx2x_rxtx.c index a0d4ac9..d8a3225 100644 --- a/drivers/net/bnx2x/bnx2x_rxtx.c +++ b/drivers/net/bnx2x/bn

[dpdk-dev] [PATCH] net/bnx2x: reserve enough headroom for mbuf prepend

2018-02-06 Thread zhouyangchao
Signed-off-by: Yangchao Zhou --- drivers/net/bnx2x/bnx2x_rxtx.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/bnx2x/bnx2x_rxtx.c b/drivers/net/bnx2x/bnx2x_rxtx.c index a0d4ac9..d8a3225 100644 --- a/drivers/net/bnx2x/bnx2x_rxtx.c +++ b/drivers/net/bnx2x/bn

[dpdk-dev] [PATCH] net/bnx2x: reserve enough headroom for mbuf prepend

2018-02-06 Thread zhouyangchao
Signed-off-by: Yangchao Zhou --- drivers/net/bnx2x/bnx2x_rxtx.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/bnx2x/bnx2x_rxtx.c b/drivers/net/bnx2x/bnx2x_rxtx.c index a0d4ac9..d8a3225 100644 --- a/drivers/net/bnx2x/bnx2x_rxtx.c +++ b/drivers/net/bnx2x/bn

[dpdk-dev] [PATCH] net/bnx2x: reserve enough headroom for mbuf prepend

2018-02-06 Thread zhouyangchao
Signed-off-by: Yangchao Zhou --- drivers/net/bnx2x/bnx2x_rxtx.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/bnx2x/bnx2x_rxtx.c b/drivers/net/bnx2x/bnx2x_rxtx.c index a0d4ac9..d8a3225 100644 --- a/drivers/net/bnx2x/bnx2x_rxtx.c +++ b/drivers/net/bnx2x/bn

[dpdk-dev] [PATCH] net/bnx2x: reserve enough headroom for mbuf prepend

2018-02-06 Thread zhouyangchao
Signed-off-by: Yangchao Zhou --- drivers/net/bnx2x/bnx2x_rxtx.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/bnx2x/bnx2x_rxtx.c b/drivers/net/bnx2x/bnx2x_rxtx.c index a0d4ac9..d8a3225 100644 --- a/drivers/net/bnx2x/bnx2x_rxtx.c +++ b/drivers/net/bnx2x/bn

[dpdk-dev] [PATCH] kni: optimize the kni release speed

2018-02-06 Thread zhouyangchao
Physical addresses in the fifo named alloc_q need to be traversed to release in user space. The physical address to the virtual address conversion in kernel space is much better. Signed-off-by: Yangchao Zhou --- lib/librte_eal/linuxapp/kni/kni_dev.h | 1 + lib/librte_eal/linuxapp/kni/kni_misc.

[dpdk-dev] [PATCH] kni: optimize the kni release speed

2018-02-06 Thread zhouyangchao
Physical addresses in the fifo named alloc_q need to be traversed to release in user space. The physical address to the virtual address conversion in kernel space is much better. Signed-off-by: Yangchao Zhou --- lib/librte_eal/linuxapp/kni/kni_dev.h | 1 + lib/librte_eal/linuxapp/kni/kni_misc.

[dpdk-dev] [PATCH] net/fm10k: remove RSS restriction with num of queues

2017-12-03 Thread zhouyangchao
FM10K HW does not have such restrictions. Enabling RSS with single queue is not used to distribute flow but to compute a RSS hash value. It can reduce cpu cycles of computing a hash value with five tuples. In addition, there is an explicit method to disable RSS instead of an obscure way. Signed-o

[dpdk-dev] [PATCH] net/fm10k: remove RSS restriction with num of queues

2017-11-28 Thread zhouyangchao
FM10K HW does not have such restrictions. Signed-off-by: Yangchao Zhou --- drivers/net/fm10k/fm10k_ethdev.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index 2d05a46..403f6c5 100644 --- a/drivers/net

[dpdk-dev] [PATCH] igb: fix Tx queue number

2017-11-28 Thread zhouyangchao
Internal variable containing the number of TX queues for a device, was being incorrectly assigned the number of RX queues, instead of TX. Fixes: 27b609cbd1c6 ("ethdev: move the multi-queue mode check to specific drivers") Signed-off-by: Yangchao Zhou --- drivers/net/e1000/igb_ethdev.c | 2 +-

[dpdk-dev] [PATCH] pci:fix missing free

2016-09-23 Thread zhouyangchao
Signed-off-by: zhouyangchao --- lib/librte_eal/common/eal_common_pci.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/librte_eal/common/eal_common_pci.c b/lib/librte_eal/common/eal_common_pci.c index 7248c38..eb44998 100644 --- a/lib/librte_eal/common

[dpdk-dev] [PATCH] kni: unregister an unregisterd net_device could cause a kernel crash

2016-09-11 Thread zhouyangchao
Signed-off-by: zhouyangchao --- lib/librte_eal/linuxapp/kni/kni_misc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c b/lib/librte_eal/linuxapp/kni/kni_misc.c index 67e9b7d..5c58a83 100644 --- a/lib/librte_eal/linuxapp/kni/kni_misc.c +++ b/lib

[dpdk-dev] [PATCH] kni: unregister an unregisterd net_device could cause a kernel crash

2016-09-09 Thread zhouyangchao
Signed-off-by: zhouyangchao --- lib/librte_eal/linuxapp/kni/kni_misc.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c b/lib/librte_eal/linuxapp/kni/kni_misc.c index 67e9b7d..ad4e603 100644 --- a/lib/librte_eal/linuxapp/kni

[dpdk-dev] [PATCH] kni: unregister an unregisterd net_device could cause a kernel crash

2016-09-09 Thread zhouyangchao
Signed-off-by: zhouyangchao --- lib/librte_eal/linuxapp/kni/kni_misc.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c b/lib/librte_eal/linuxapp/kni/kni_misc.c index 67e9b7d..17b6d7a 100644 --- a/lib/librte_eal/linuxapp/kni

[dpdk-dev] [PATCH] kni: error rollback with kni_dev_remove could cause a kernel crash

2016-08-16 Thread zhouyangchao