[dpdk-dev] [PATCH v4 1/9] ethdev: introduce representor type

2021-01-18 Thread Xueming Li
To support more representor type, this patch introduces representor type enum. The enum is subject to extend for new types upcoming. Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- drivers/net/bnxt/bnxt_ethdev.c| 7 +++ drivers/net/enic/enic_ethdev.c| 7

[dpdk-dev] [PATCH v4 2/9] ethdev: support representor port list

2021-01-18 Thread Xueming Li
To support extended representor syntax, this patch extends the representor list parsing to support for representor port range in devargs, examples: representor=[1,2,3] - single list representor=[1,3-5,7,9-11] - list with singles and ranges Signed-off-by: Xueming Li Acked-by

[dpdk-dev] [PATCH v4 5/9] ethdev: support PF index in representor

2021-01-18 Thread Xueming Li
epresentor representor=pf[0-1]sf[0-1023] - SF representors from 2 PFs Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- doc/guides/prog_guide/poll_mode_drv.rst | 2 ++ lib/librte_ethdev/ethdev_private.c | 13 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) di

[dpdk-dev] [PATCH v4 9/9] kvargs: update parser to support lists

2021-01-18 Thread Xueming Li
This patch updates kvargs parser to support lists on top of range, allow multiple lists or range: k1=a[1,2]b[3-5] Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- app/test/test_kvargs.c | 46 +-- lib/librte_kvargs/rte_kvargs.c | 101

[dpdk-dev] [PATCH v4 0/9] ethdev: support SubFunction representor

2021-01-18 Thread Xueming Li
pdk.org/patch/86464/ 6 http://patchwork.dpdk.org/patch/86465/ 7 http://patchwork.dpdk.org/patch/86467/ 8 http://patchwork.dpdk.org/patch/86466/ 9 http://patchwork.dpdk.org/patch/86468/ Xueming Li (9): ethdev: introduce representor type ethdev: support representor port list ethdev: s

[dpdk-dev] [PATCH v4 7/9] devarg: change representor ID to bitmap

2021-01-18 Thread Xueming Li
s, VF representor id matches with simple id for non-bonding and non-multi-host configurations. In the future, the representor ID field and each section should extend to bigger width to support more devices. Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- drivers/net/bnxt/bnxt_r

[dpdk-dev] [PATCH v4 8/9] ethdev: add capability of sub-function representor

2021-01-18 Thread Xueming Li
Old DPDK version or some drivers that don't support SubFunction representor. For application to adapt different DPDK version automatically, or to be used for different NICs, this patch introduces new eth device capability of supporting SubFunction representor device. Signed-off-by: Xuemi

[dpdk-dev] [PATCH v4 3/9] ethdev: support new VF representor syntax

2021-01-18 Thread Xueming Li
] - list with singles and range For backwards compatibility, representor "#" is deemed as "vf#". Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- doc/guides/prog_guide/poll_mode_drv.rst | 7 --- lib/librte_ethdev/ethdev_private.c | 5 - 2 files changed

[dpdk-dev] [PATCH v4 6/9] ethdev: support multi-host in representor

2021-01-18 Thread Xueming Li
: Xueming Li Acked-by: Viacheslav Ovsiienko --- config/rte_config.h | 1 + lib/librte_ethdev/ethdev_private.c| 12 ++-- lib/librte_ethdev/rte_ethdev_driver.h | 4 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/config/rte_config.h b/config

[dpdk-dev] [PATCH v4 4/9] ethdev: support sub function representor

2021-01-18 Thread Xueming Li
: representor=sf0 - single SubFunction representor representor=sf[1,3,5] - single list representor=sf[0-3], - single range representor=sf[0,2-6,8,10-12] - list with singles and ranges Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- doc/guides/prog_guide

[dpdk-dev] [PATCH v3 0/9] net/mlx5: support SubFunction representor

2021-01-18 Thread Xueming Li
ries=14809 Xueming Li (9): common/mlx5: update representor name parsing net/mlx5: support representor of sub function net/mlx5: revert setting bonding representor to first PF net/mlx5: refactor bonding representor probe net/mlx5: support representor from multiple PFs net/mlx5: save bond

[dpdk-dev] [PATCH v3 4/9] net/mlx5: refactor bonding representor probe

2021-01-18 Thread Xueming Li
entor_pfvf Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- doc/guides/nics/mlx5.rst | 4 +- drivers/net/mlx5/linux/mlx5_os.c | 263 +-- drivers/net/mlx5/mlx5.c | 22 +++ drivers/net/mlx5/mlx5.h | 3 +- drivers/net/mlx5/m

[dpdk-dev] [PATCH v3 9/9] net/mlx5: improve bonding xstats

2021-01-18 Thread Xueming Li
In case of kernel bonding device, counter was read from first bonding PF member. This patch reads all member PFs and sums to get bond xstats. Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/linux/mlx5_ethdev_os.c | 127 +++- 1 file changed

[dpdk-dev] [PATCH v3 3/9] net/mlx5: revert setting bonding representor to first PF

2021-01-18 Thread Xueming Li
ned-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/linux/mlx5_os.c | 20 ++-- drivers/net/mlx5/mlx5.c | 1 - drivers/net/mlx5/mlx5.h | 1 - 3 files changed, 2 insertions(+), 20 deletions(-) diff --git a/drivers/net/mlx5/linux/mlx5_os.c b/d

[dpdk-dev] [PATCH v3 7/9] net/mlx5: save bonding member ports information

2021-01-18 Thread Xueming Li
Since kernel bonding interface doesn't provide counter summary of member ports, PMD has to aggregate couters from of member ports. This patch collect bonding member information and save to shared context data. Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5

[dpdk-dev] [PATCH v3 8/9] net/mlx5: fix setting VF default MAC through representor

2021-01-18 Thread Xueming Li
etdev operations") Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_mac.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/drivers/net/mlx5/mlx5_mac.c b/drivers/net/mlx5/mlx5_mac.c index b5b810b508..5a3aec89c1 10

[dpdk-dev] [PATCH v3 2/9] net/mlx5: support representor of sub function

2021-01-18 Thread Xueming Li
f[0,2,4,8-12,-1] To probe VF representor and SF representor, need to separate into 2 devices: -a ,representor=vf[list] -a ,representor=sf[list] Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- doc/guides/nics/mlx5.rst| 58 +-- drivers/net/mlx5/linux/ml

[dpdk-dev] [PATCH v3 5/9] net/mlx5: support representor from multiple PFs

2021-01-18 Thread Xueming Li
,representor=pf[0-1]vf[0-3] Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- doc/guides/nics/mlx5.rst | 4 ++ drivers/net/mlx5/linux/mlx5_os.c | 100 +-- 2 files changed, 72 insertions(+), 32 deletions(-) diff --git a/doc/guides/nics/mlx5.rst b/doc

[dpdk-dev] [PATCH v3 6/9] net/mlx5: save bonding member ports information

2021-01-18 Thread Xueming Li
Since kernel bonding netdev doesn't provide statistics counter that reflects all member ports, PMD has to manually summarize counters from each member ports. As a preparation, this patch collects bonding member port information and saves to shared context data. Signed-off-by: Xueming Li

[dpdk-dev] [PATCH v3 1/9] common/mlx5: update representor name parsing

2021-01-18 Thread Xueming Li
This patch updates representor name parsing for SF. In sysfs, representor name stored under "phys_port_name" sysfs key, similar to VF representor, switch port name of SF representor is "pfsf". For netlink message, net SF type is supported. Examples: pf0sf1 pf0sf[0-3] Signe

[dpdk-dev] [PATCH v2 1/5] devargs: fix memory leak on parsing error

2021-01-18 Thread Xueming Li
This patch fixes memory leak in parsing error handling. Fixes: 338327d731e6 ("devargs: add function to parse device layers") Cc: gaetan.ri...@6wind.com Cc: sta...@dpdk.org Signed-off-by: Xueming Li --- lib/librte_eal/common/eal_common_devargs.c | 8 +++- 1 file changed, 7 insert

[dpdk-dev] [PATCH v2 4/5] devargs: parse name from global device syntax

2021-01-18 Thread Xueming Li
Example: -a bus=pci,addr=83:00.0/class=eth/driver=mlx5,... name: 03:00.0 -a bus=vdev,name=pcap0/class=eth/driver=pcap,... name:pcap0 Signed-off-by: Xueming Li --- lib/librte_eal/common/eal_common_devargs.c | 13 + 1 file changed, 13 insertions(+) diff --git a/l

[dpdk-dev] [PATCH v2 2/5] devargs: refactor scratch buffer storage

2021-01-18 Thread Xueming Li
buffer, introduces rte_devargs_free() function to wrap the memory memory clean up. Signed-off-by: Xueming Li --- app/test-pmd/config.c| 7 ++-- app/test-pmd/testpmd.c | 5 ++- drivers/bus/vdev/vdev.c | 9 ++-- drivers/net

[dpdk-dev] [PATCH v2 3/5] kvargs: add get by key function

2021-01-18 Thread Xueming Li
Adds a new function to get value of a specific key from kvargs list. Signed-off-by: Xueming Li --- lib/librte_kvargs/rte_kvargs.c | 20 lib/librte_kvargs/rte_kvargs.h | 14 ++ lib/librte_kvargs/version.map | 1 + 3 files changed, 35 insertions(+) diff --git a

[dpdk-dev] [PATCH v2 5/5] devargs: enable global device syntax devargs

2021-01-18 Thread Xueming Li
When parsing a device argument, try to parse new global device syntax firstly, fallback to legacy syntax parsing on error. Example of new global device syntax: -a bus=pci,addr=82:00.0/class=eth/driver=mlx5,dv_flow_en=1 Signed-off-by: Xueming Li --- lib/librte_eal/common/eal_common_devargs.c

[dpdk-dev] [PATCH v2 0/5] eal: enable global device syntax

2021-01-18 Thread Xueming Li
://patchwork.dpdk.org/project/dpdk/list/?series=14610 Xueming Li (5): devargs: fix memory leak on parsing error devargs: refactor scratch buffer storage kvargs: add get by key function devargs: parse name from global device syntax devargs: enable global device syntax devargs app/test-pmd

[dpdk-dev] [PATCH v2 1/2] common/mlx5: support device global syntax

2021-01-18 Thread Xueming Li
] to algin with RTE class name. [1] 8a41f4deccc3: common/mlx5: introduce layer for multiple class drivers Signed-off-by: Xueming Li --- drivers/common/mlx5/mlx5_common_pci.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/common/mlx5/mlx5_common_pci.c b/drivers/c

[dpdk-dev] [PATCH v2 0/2] mlx5: support global device syntax

2021-01-18 Thread Xueming Li
-hotplug-20180905.pdf [2] RFC: http://patchwork.dpdk.org/project/dpdk/list/?series=14378 [3] V1: http://patchwork.dpdk.org/project/dpdk/list/?series=14611 Xueming Li (2): common/mlx5: support device global syntax net/mlx5: support new global device syntax drivers/common/mlx5/mlx5_common_pci.

[dpdk-dev] [PATCH v2 2/2] net/mlx5: support new global device syntax

2021-01-18 Thread Xueming Li
This patch support new global device syntax like: bus=pci,addr=BB:DD.F/class=eth/driver=mlx5,devargs,.. In driver parameters check, ignores "driver" key which is part of new global device syntax instead of reporting error. Signed-off-by: Xueming Li --- drivers/net/mlx5/

[dpdk-dev] [PATCH v5 0/9] ethdev: support SubFunction representor

2021-01-18 Thread Xueming Li
atch/86463/ 5 http://patchwork.dpdk.org/patch/86464/ 6 http://patchwork.dpdk.org/patch/86465/ 7 http://patchwork.dpdk.org/patch/86467/ 8 http://patchwork.dpdk.org/patch/86466/ 9 http://patchwork.dpdk.org/patch/86468/ [5] V4: http://patchwork.dpdk.org/project/dpdk/list/?series=14809 Xueming Li

[dpdk-dev] [PATCH v5 1/9] ethdev: introduce representor type

2021-01-18 Thread Xueming Li
To support more representor type, this patch introduces representor type enum. The enum is subject to extend for new types upcoming. Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko Acked-by: Thomas Monjalon Acked-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.c| 7

[dpdk-dev] [PATCH v5 2/9] ethdev: support representor port list

2021-01-18 Thread Xueming Li
To support extended representor syntax, this patch extends the representor list parsing to support for representor port range in devargs, examples: representor=[1,2,3] - single list representor=[1,3-5,7,9-11] - list with singles and ranges Signed-off-by: Xueming Li Acked-by

[dpdk-dev] [PATCH v5 3/9] ethdev: support new VF representor syntax

2021-01-18 Thread Xueming Li
]- single list representor=vf[0-3] - single range representor=vf[0,1,4-7] - list with singles and range For backwards compatibility, representor "#" is interpreted as "vf#". Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko Acked-by: Thomas Monjalon --- d

[dpdk-dev] [PATCH v5 4/9] ethdev: support sub function representor

2021-01-18 Thread Xueming Li
: representor=sf0 - single SubFunction representor representor=sf[1,3,5] - single list representor=sf[0-3], - single range representor=sf[0,2-6,8,10-12] - list with singles and ranges Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko Acked-by: Thomas Monjalon

[dpdk-dev] [PATCH v5 5/9] ethdev: support PF index in representor

2021-01-18 Thread Xueming Li
epresentor representor=pf[0-1]sf[0-1023] - SF representors from 2 PFs Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko Acked-by: Thomas Monjalon --- doc/guides/prog_guide/poll_mode_drv.rst | 2 ++ lib/librte_ethdev/ethdev_private.c | 13 +++-- 2 files changed, 13 insert

[dpdk-dev] [PATCH v5 7/9] devarg: change representor ID to bitmap

2021-01-18 Thread Xueming Li
s, VF representor id matches with simple id for non-bonding and non-multi-host configurations. In the future, the representor ID field and each section should extend to bigger width to support more devices. Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko Acked-by: Thomas Monjalon --- drivers/net

[dpdk-dev] [PATCH v5 9/9] kvargs: update parser to support lists

2021-01-18 Thread Xueming Li
This patch updates kvargs parser to support lists on top of range, allow multiple lists or range: k1=a[1,2]b[3-5] Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko Acked-by: Thomas Monjalon --- app/test/test_kvargs.c | 46 +-- lib/librte_kvargs/rte_kvargs.c | 101

[dpdk-dev] [PATCH v5 6/9] ethdev: support multi-host in representor

2021-01-18 Thread Xueming Li
: Xueming Li Acked-by: Viacheslav Ovsiienko Acked-by: Thomas Monjalon --- config/rte_config.h | 1 + lib/librte_ethdev/ethdev_private.c| 12 ++-- lib/librte_ethdev/rte_ethdev_driver.h | 4 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/config

[dpdk-dev] [PATCH v5 8/9] ethdev: add capability of sub-function representor

2021-01-18 Thread Xueming Li
Old DPDK version or some drivers didn't support SubFunction representor. For application to adapt different DPDK version automatically, or to be used for different NICs, this patch introduces new eth device capability of supporting SubFunction representor device. Signed-off-by: Xueming Li

[dpdk-dev] [PATCH v4 3/8] net/mlx5: revert setting bonding representor to first PF

2021-01-18 Thread Xueming Li
ned-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/linux/mlx5_os.c | 20 ++-- drivers/net/mlx5/mlx5.c | 1 - drivers/net/mlx5/mlx5.h | 1 - 3 files changed, 2 insertions(+), 20 deletions(-) diff --git a/drivers/net/mlx5/linux/mlx5_os.c b/d

[dpdk-dev] [PATCH v4 7/8] net/mlx5: fix setting VF default MAC through representor

2021-01-18 Thread Xueming Li
etdev operations") Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_mac.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/drivers/net/mlx5/mlx5_mac.c b/drivers/net/mlx5/mlx5_mac.c index b5b810b508..5a3aec89c1 10

[dpdk-dev] [PATCH v4 6/8] net/mlx5: save bonding member ports information

2021-01-18 Thread Xueming Li
Since kernel bonding netdev doesn't provide statistics counter that reflects all member ports, PMD has to manually summarize counters from each member ports. As a preparation, this patch collects bonding member port information and saves to shared context data. Signed-off-by: Xueming Li

[dpdk-dev] [PATCH v4 2/8] net/mlx5: support representor of sub function

2021-01-18 Thread Xueming Li
f[0,2,4,8-12,-1] To probe VF representor and SF representor, need to separate into 2 devices: -a ,representor=vf[list] -a ,representor=sf[list] Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- doc/guides/nics/mlx5.rst| 58 +-- drivers/net/mlx5/linux/ml

[dpdk-dev] [PATCH v4 0/8] net/mlx5: support SubFunction representor

2021-01-18 Thread Xueming Li
rg/project/dpdk/list/?series=14810 [4] EAL part to support SF representor: http://patchwork.dpdk.org/project/dpdk/list/?series=14834 Xueming Li (8): common/mlx5: update representor name parsing net/mlx5: support representor of sub function net/mlx5: revert setting bonding representor to firs

[dpdk-dev] [PATCH v4 4/8] net/mlx5: refactor bonding representor probe

2021-01-18 Thread Xueming Li
entor_pfvf Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- doc/guides/nics/mlx5.rst | 4 +- drivers/net/mlx5/linux/mlx5_os.c | 263 +-- drivers/net/mlx5/mlx5.c | 22 +++ drivers/net/mlx5/mlx5.h | 3 +- drivers/net/mlx5/m

[dpdk-dev] [PATCH v4 1/8] common/mlx5: update representor name parsing

2021-01-18 Thread Xueming Li
This patch updates representor name parsing for SF. In sysfs, representor name stored under "phys_port_name" sysfs key, similar to VF representor, switch port name of SF representor is "pfsf". For netlink message, net SF type is supported. Examples: pf0sf1 pf0sf[0-3] Signe

[dpdk-dev] [PATCH v4 5/8] net/mlx5: support representor from multiple PFs

2021-01-18 Thread Xueming Li
,representor=pf[0-1]vf[0-3] Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- doc/guides/nics/mlx5.rst | 4 ++ drivers/net/mlx5/linux/mlx5_os.c | 100 +-- 2 files changed, 72 insertions(+), 32 deletions(-) diff --git a/doc/guides/nics/mlx5.rst b/doc

[dpdk-dev] [PATCH v4 8/8] net/mlx5: improve bonding xstats

2021-01-18 Thread Xueming Li
In case of kernel bonding device, counter was read from first bonding PF member. This patch reads all member PFs and sums to get bond xstats. Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/linux/mlx5_ethdev_os.c | 127 +++- 1 file changed

[dpdk-dev] [PATCH v1] net/mlx5: fix meter packet missing

2020-11-03 Thread Xueming Li
Cc: suanmi...@nvidia.com Cc: sta...@dpdk.org Signed-off-by: Xueming Li --- drivers/net/mlx5/mlx5.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h index 63d263384b..a28f30a5ab 100644 --- a/drivers/net/mlx5/mlx5.h +++ b/driver

[dpdk-dev] [PATCH] net/mlx5: fix nested flow creation error

2020-11-09 Thread Xueming Li
/mlx5: use thread specific flow workspace") Fixes: 3ac3d8234b82 ("net/mlx5: fix index when creating flow") Cc: bi...@mellanox.com Cc: sta...@dpdk.org Signed-off-by: Xueming Li --- drivers/net/mlx5/mlx5_flow.c | 180 +++-- drivers/net/mlx5/mlx5_flow.h

[dpdk-dev] [PATCH] net/mlx5: fix assertion check warnings

2020-11-17 Thread Xueming Li
Fix assertion check warnings. Fixes: 8bb81f2649b1 ("net/mlx5: use thread specific flow workspace") Cc: sta...@dpdk.org Signed-off-by: Xueming Li Reviewed-by: Slava Ovsiienko --- drivers/net/mlx5/mlx5_flow.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver

[dpdk-dev] [PATCH] net/mlx5: set representor device to first PF in bonding mode

2020-11-17 Thread Xueming Li
PF1 with PF0 as PCI device. Signed-off-by: Xueming Li Reviewed-by: Slava Ovsiienko --- drivers/net/mlx5/linux/mlx5_os.c | 20 ++-- drivers/net/mlx5/mlx5.c | 1 + drivers/net/mlx5/mlx5.h | 1 + 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a

[dpdk-dev] [PATCH 1/4] vdpa/mlx5: set polling mode default delay to zero

2020-12-02 Thread Xueming Li
To improve throughput and latency, this patch allows Rx polling timer delay to 0us. Signed-off-by: Xueming Li Acked-by: Matan Azrad --- doc/guides/vdpadevs/mlx5.rst | 3 +-- drivers/vdpa/mlx5/mlx5_vdpa.c | 9 +++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/doc/guides

[dpdk-dev] [PATCH 3/4] vdpa/mlx5: add cpu core parameter to bind polling thread

2020-12-02 Thread Xueming Li
This patch adds new device argument to specify cpu core affinity to event polling thread for better latency and throughput. The thread could be also located by name "vDPA-mlx5-". Signed-off-by: Xueming Li Acked-by: Matan Azrad --- doc/guides/vdpadevs/mlx5.rst| 5 + dr

[dpdk-dev] [PATCH 4/4] vdpa/mlx5: set default event mode to polling

2020-12-02 Thread Xueming Li
For better performance and latency, this patch sets default event handling mode to polling mode which uses dedicate thread per device to poll and process event. Signed-off-by: Xueming Li Acked-by: Matan Azrad --- doc/guides/vdpadevs/mlx5.rst | 2 +- drivers/vdpa/mlx5/mlx5_vdpa.c | 2 +- 2

[dpdk-dev] [PATCH 2/4] vdpa/mlx5: default polling mode delay time to zero

2020-12-02 Thread Xueming Li
To improve performance and latency, this patch set Rx polling mode default delay time to zero. Signed-off-by: Xueming Li Acked-by: Matan Azrad --- drivers/vdpa/mlx5/mlx5_vdpa.h | 2 +- drivers/vdpa/mlx5/mlx5_vdpa_event.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff

[dpdk-dev] [PATCH] net/mlx5: fix port shared data reference count

2020-10-21 Thread Xueming Li
("net/mlx5: fix multiple flow table hash list") Cc: jack...@nvidia.com Fixes: 1ef4cdef2682 ("net/mlx5: fix flow tag hash list conversion") Cc: ma...@nvidia.com Cc: sta...@dpdk.org Acked-by: Matan Azrad ma...@nvidia.com Signed-off-by: Xueming Li --- drivers/net/mlx5/

[dpdk-dev] [PATCH v1] net/mlx5: fix port shared data reference count

2020-10-21 Thread Xueming Li
("net/mlx5: fix multiple flow table hash list") Cc: jack...@nvidia.com Fixes: 1ef4cdef2682 ("net/mlx5: fix flow tag hash list conversion") Cc: ma...@nvidia.com Cc: sta...@dpdk.org Acked-by: Matan Azrad Signed-off-by: Xueming Li --- drivers/net/mlx5/

[dpdk-dev] [PATCH] vdpa/mlx5: fix completion queue initialization

2020-07-27 Thread Xueming Li
. This patch initializes cq creation attributes with zero to avoid such random data. Fixes: 79a7e409a2f6 ("common/mlx5: prepare support of packet pacing") Cc: viachesl...@mellanox.com Signed-off-by: Xueming Li Acked-by: Matan Azrad --- drivers/vdpa/mlx5/mlx5_vdpa_event.c | 2 +- 1 file

[dpdk-dev] [PATCH] vdpa/mlx5: use master core Id for vhost thread

2020-07-27 Thread Xueming Li
current core returns -1, an invalid core id. As vhost thread created on same core of eal master core, this patch uses master core ID as a workaround. Signed-off-by: Xueming Li Acked-by: Matan Azrad --- drivers/vdpa/mlx5/mlx5_vdpa_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[dpdk-dev] [v1] vdpa/mlx5: use control core Id for vhost thread

2020-07-27 Thread Xueming Li
current core returns -1, an invalid core id. As vhost thread created on same core of eal control core, this patch uses control core ID as a workaround. Signed-off-by: Xueming Li Acked-by: Matan Azrad --- drivers/vdpa/mlx5/mlx5_vdpa_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[dpdk-dev] [v2] vdpa/mlx5: fix event queue number query

2020-07-28 Thread Xueming Li
l api devx_query_eqn expects index of event queue vectors, no need to use cpu id. As the doorbell handling thread is per device, it's sufficient to use default event queue. This patch uses the default id(0) as event queue index. Fixes: 8395927cdfaf ("vdpa/mlx5: prepare HW queues")

[dpdk-dev] [v3] vdpa/mlx5: fix event queue number query

2020-07-28 Thread Xueming Li
lt id(0) as event queue index. Fixes: 8395927cdfaf ("vdpa/mlx5: prepare HW queues") Signed-off-by: Xueming Li Acked-by: Matan Azrad --- drivers/vdpa/mlx5/mlx5_vdpa_event.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/vdpa/mlx5/mlx5_vdpa_event.c b/dr

[dpdk-dev] [PATCH] vdpa/mlx5: add device configuration lock

2020-08-02 Thread Xueming Li
event thread to make sure vq being accessed fully initialized. Redmine: 2239647 Signed-off-by: Xueming Li --- drivers/vdpa/mlx5/mlx5_vdpa.c | 8 +++- drivers/vdpa/mlx5/mlx5_vdpa.h | 1 + drivers/vdpa/mlx5/mlx5_vdpa_event.c | 8 3 files changed, 16 insertions(+), 1

[dpdk-dev] [v2] vdpa/mlx5: fix queue update synchronization

2020-08-02 Thread Xueming Li
didn't synchronize the CQ management to the queue update what may cause invalid memory access. Add the aforementioned synchronization by a new per device configuration mutex. Fixes: c47d6e83334e ("vdpa/mlx5: support queue update") Signed-off-by: Xueming Li Acked-by: Matan Azrad --

[dpdk-dev] [PATCH] vdpa/mlx5: fix event channel setup

2020-08-20 Thread Xueming Li
From: Xueming Li During vdap device setup, if some error happens, event channel release stuck at polling event channel. Event channel fd is set to nonblocking in cqe setup, so if any error happens before this function and after event channel created, the pooling before releasing resources will

[dpdk-dev] [PATCH] vdpa/mlx5: fix event channel setup

2020-08-24 Thread Xueming Li
moves event channel to non-blocking mode right after creation. Fixes: 8395927cdf ("vdpa/mlx5: prepare HW queues") Cc: ma...@nvidia.com Signed-off-by: Xueming Li --- drivers/vdpa/mlx5/mlx5_vdpa_event.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git

[dpdk-dev] [v1] vdpa/mlx5: fix event channel setup

2020-08-25 Thread Xueming Li
moves event channel to non-blocking mode right after creation. Fixes: 8395927cdf ("vdpa/mlx5: prepare HW queues") Cc: ma...@nvidia.com Signed-off-by: Xueming Li --- drivers/vdpa/mlx5/mlx5_vdpa_event.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git

[dpdk-dev] [PATCH] net/mlx5: disable flow dump for Verbs flow

2020-09-09 Thread Xueming Li
eturn gracefully. Cc: sta...@dpdk.org Signed-off-by: Xueming Li --- drivers/net/mlx5/mlx5_flow.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 4c29898203..5a28b80ee4 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net

[dpdk-dev] [PATCH] net/mlx5: disable flow dump for Verbs flow

2020-09-09 Thread Xueming Li
eturn gracefully. Cc: sta...@dpdk.org Signed-off-by: Xueming Li --- drivers/net/mlx5/mlx5_flow.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 4c29898203..5a28b80ee4 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net

[dpdk-dev] [PATCH] net/mlx5: use bond index for netdev operations

2020-09-14 Thread Xueming Li
interface, uses it by default for netdev operations. Cc: sta...@dpdk.org Signed-off-by: Xueming Li --- drivers/net/mlx5/linux/mlx5_ethdev_os.c | 56 + drivers/net/mlx5/linux/mlx5_os.c| 13 ++ drivers/net/mlx5/mlx5.h | 4 ++ drivers/net/mlx5

Re: 23.11.3 patches review and test

2024-12-11 Thread Xueming Li
Hi Yanghang, Thanks for the quick verification and response! Best Regards, Xueming From: Yanghang Liu Sent: Wednesday, December 11, 2024 7:24 PM To: Xueming Li Cc: sta...@dpdk.org ; dev@dpdk.org ; Abhishek Marathe ; Ali Alnubani ; David Christensen ; Hemant

23.11.3 patches review and test

2024-12-10 Thread Xueming Li
validations will be added to the release notes. A release candidate tarball can be found at: https://dpdk.org/browse/dpdk-stable/tag/?id=v23.11.3-rc1 These patches are located at branch 23.11 of dpdk-stable repo: https://dpdk.org/browse/dpdk-stable/ Thanks. Xueming Li --- Ajit Khaparde (1

Re: 23.11.3 patches review and test

2024-12-17 Thread Xueming Li
Hi Hailin, Thanks very much for the verification. Regarding the known issue, I'll try to handle it in next release. Thanks, Xueming From: Xu, HailinX Sent: Tuesday, December 17, 2024 3:54 PM To: Xueming Li ; sta...@dpdk.org Cc: dev@dpdk.org ; Abhishek Ma

DPDK 23.11.3 released

2024-12-17 Thread Xueming Li
Hi all, Here is a new stable release: https://fast.dpdk.org/rel/dpdk-23.11.3.tar.xz The git tree is at: https://dpdk.org/browse/dpdk-stable/?h=23.11 This release contains v23.11.3 plus a fix for CVE-2024-11614. Xueming Li --- .mailmap

Re: 23.11.3 patches review and test

2024-12-13 Thread Xueming Li
Hi Ali, Thanks very much for your help and confirmation! Regards, Xueming From: Ali Alnubani Sent: Friday, December 13, 2024 12:25 AM To: Xueming Li ; sta...@dpdk.org Cc: dev@dpdk.org ; Abhishek Marathe ; David Christensen ; Hemant Agrawal ; Ian Stokes

Re: 22.11.7 patches review and test

2024-12-13 Thread Xueming Li
82be1e659b60ceeb7> From: Kevin Traynor Sent: Friday, December 13, 2024 5:54 PM To: David Marchand ; luca.bocca...@gmail.com ; Xueming Li ; Stephen Hemminger Cc: sta...@dpdk.org ; dev@dpdk.org ; Abhishek Marathe ; Ali Alnubani ; David Christensen ; Hemant Ag

Re: 23.11.4 patches review and test

2025-04-28 Thread Xueming Li
Hi Yanghang, Thanks for your test and reports, will save it in release notes. Thanks, Xueming From: Yanghang Liu Sent: Monday, April 28, 2025 3:22 PM To: Xueming Li Cc: sta...@dpdk.org ; dev@dpdk.org ; Abhishek Marathe ; Ali Alnubani ; David Christensen

Re: 23.11.4 patches review and test

2025-04-28 Thread Xueming Li
Hi Hailin, Thanks for the test and feedback, will collect. Best Regards, Xueming From: Xu, HailinX Sent: Monday, April 28, 2025 4:08 PM To: Xueming Li ; sta...@dpdk.org Cc: dev@dpdk.org ; Abhishek Marathe ; Ali Alnubani ; David Christensen ; Hemant Agrawal

Re: 23.11.4 patches review and test

2025-04-28 Thread Xueming Li
Hi Ali, Thanks for your support, will collection into release notes. Regarding the gcc 15 warnning, it's a small issue, I will fix it in the next release. Best regards, Xueming From: Ali Alnubani Sent: Friday, April 25, 2025 3:30 AM To: Xueming Li

23.11.4 patches review and test

2025-04-21 Thread Xueming Li
validations will be added to the release notes. A release candidate tarball can be found at: https://dpdk.org/browse/dpdk-stable/tag/?id=v23.11.4-rc4 These patches are located at branch 23.11 of dpdk-stable repo: https://dpdk.org/browse/dpdk-stable/ Thanks. Xueming Li --- Aleksandr Loktionov

Re: [PATCH 1/2] ci: bump tested distributions in GHA

2025-05-23 Thread Xueming Li
It's fine for me, thanks for the heads up. Regards, Xueming From: David Marchand Sent: Thursday, May 22, 2025 8:51 PM To: Luca Boccassi ; Xueming Li Cc: dev@dpdk.org ; Aaron Conole ; Michael Santana ; Kevin Traynor Subject: Re: [PATCH 1/2] ci: bump t

<    5   6   7   8   9   10