[dpdk-dev] [FDIO] dpdk: add devargs support

2019-12-13 Thread chenmin . sun
From: Chenmin Sun Type: feature This patch adds the devargs support for dpdk device The devargs are used as hardware-specific init args for dpdk devices please refer to the nic guides under $(DPDK_DIR)/doc/guides/nics/$(NIC_DRIVER).rst Signed-off-by: Chenmin Sun Change-Id

[dpdk-dev] [DPDK] net/ice: add outer IPv4 matching for GTPU flow

2020-01-20 Thread chenmin . sun
From: Chenmin Sun This patch adds the capability of matching the outer IPv4 headers for GTPU flows Fixes: efc16c621415 ("net/ice: support flow director GTPU tunnel") Signed-off-by: Chenmin Sun --- drivers/net/ice/base/ice_fdir.c | 4 drivers/net/ice/ice_fdir_filter.c | 3 ++

[dpdk-dev] [PATCH V2] net/i40e: i40e FDIR update rate optimization

2020-07-08 Thread chenmin . sun
From: Chenmin Sun This patch optimized the fdir update rate for i40e PF, by tracking whether the fdir rule being inserted into the guaranteed space or shared space. For the flows that are inserted to the guaranteed space, we assume that the insertion will always succeed as the hardware only

[dpdk-dev] [PATCH V3 0/2] i40e FDIR update rate optimization

2020-07-13 Thread chenmin . sun
From: Chenmin Sun i40e FDIR update rate optimization [PATCH v3 1/2] net/i40e: introduce new data structures [PATCH v3 2/2] net/i40e: i40e FDIR update rate optimization v3: * Split the patch into two * Renamed some data structures and added some descriptions --- v2: * Refine commit message and

[dpdk-dev] [PATCH V3 2/2] net/i40e: i40e FDIR update rate optimization

2020-07-13 Thread chenmin . sun
From: Chenmin Sun This patch optimized the fdir update rate for i40e PF, by tracking whether the fdir rule being inserted into the guaranteed space or shared space. For the flows that are inserted to the guaranteed space, we assume that the insertion will always succeed as the hardware only

[dpdk-dev] [PATCH V3 1/2] net/i40e: i40e FDIR update rate optimization data structures

2020-07-13 Thread chenmin . sun
From: Chenmin Sun This patch introduces the new data structures for i40e fdir update rate optimization. Signed-off-by: Chenmin Sun --- drivers/net/i40e/i40e_ethdev.h | 72 -- 1 file changed, 61 insertions(+), 11 deletions(-) diff --git a/drivers/net/i40e

[dpdk-dev] [PATCH V4 0/4] i40e FDIR update rate optimization

2020-07-15 Thread chenmin . sun
From: Chenmin Sun [PATCH v4 1/4] net/i40e: introducing the fdir guaranteed/shared space tracking [PATCH v4 2/4] net/i40e: FDIR flow memory management optimization [PATCH v4 2/4] net/i40e: move the i40e_get_outer_vlan to where it real needed [PATCH v4 2/4] net/i40e: FDIR update rate optimization

[dpdk-dev] [PATCH V4 3/4] net/i40e: move the i40e_get_outer_vlan to where it real needed

2020-07-15 Thread chenmin . sun
From: Chenmin Sun This patch moves the fetching the device tpid to where it really needs, rather than fetching it every time when entered the functions. This is because this operation costs too many cycles and it is used only when matching the ethernet header. Signed-off-by: Chenmin Sun

[dpdk-dev] [PATCH V4 1/4] net/i40e: introducing the fdir space tracking

2020-07-15 Thread chenmin . sun
From: Chenmin Sun This patch introduces a fdir flow management for guaranteed/shared space tracking. The fdir space is reported by the i40e_hw_capabilities.fd_filters_guaranteed and fd_filters_best_effort. The fdir space is managed by hardware and now is tracking in software. The management

[dpdk-dev] [PATCH V4 2/4] net/i40e: FDIR flow memory management optimization

2020-07-15 Thread chenmin . sun
From: Chenmin Sun This patch allocated some memory pool for flow management to avoid calling rte_zmalloc/rte_free every time. This patch also improves the hash table operation. When adding/removing a flow, the software will directly add/delete it from the hash table. If any error occurs, it then

[dpdk-dev] [PATCH V4 4/4] net/i40e: FDIR update rate optimization

2020-07-15 Thread chenmin . sun
From: Chenmin Sun This patch optimized the fdir update rate for i40e PF, by tracking whether the fdir rule being inserted into the guaranteed space or shared space. For the flows that are inserted to the guaranteed space, we assume that the insertion will always succeed as the hardware only

[dpdk-dev] [PATCH] net/i40e: fix fdir cannot receive rx writeback issue

2020-07-15 Thread chenmin . sun
From: Chenmin Sun This patch fixes the fdir connot receive rx writeback packet issue, by setting the fdir_vsi->nb_used_qps to 1. Besides this, to make sure fdir programming works fine when the port is stopped, move the fdir interrupt configure from start/stop to setup/teardown. Fi

[dpdk-dev] [PATCH V2] net/i40e: fix fdir cannot receive rx writeback issue

2020-07-15 Thread chenmin . sun
From: Chenmin Sun This patch fixes the fdir cannot receive rx writeback packet issue, by setting the fdir_vsi->nb_used_qps to 1. Besides this, to make sure fdir programming works fine when the port is stopped, move the fdir interrupt configure from start/stop to setup/teardown. Fi

[dpdk-dev] [PATCH v3] net/i40e: fix fdir cannot receive rx writeback issue

2020-07-16 Thread chenmin . sun
From: Chenmin Sun This patch fixes the fdir cannot receive rx writeback packet issue. The root cause is FDIR interrupt is not correctly enabled. Beside this, to make sure fdir programming works fine when the port is stopped, move the fdir interrupt configure from start/stop to setup/teardown

[dpdk-dev] [PATCH v5 0/4] i40e FDIR update rate optimization

2020-07-17 Thread chenmin . sun
From: Chenmin Sun [PATCH v5 1/4] net/i40e: introducing the fdir guaranteed/shared space tracking [PATCH v5 2/4] net/i40e: FDIR flow memory management optimization [PATCH v5 2/4] net/i40e: move the i40e_get_outer_vlan to where it real needed [PATCH v5 2/4] net/i40e: FDIR update rate optimization

[dpdk-dev] [PATCH v5 1/4] net/i40e: introducing the fdir space tracking

2020-07-17 Thread chenmin . sun
From: Chenmin Sun This patch introduces a fdir flow management for guaranteed/shared space tracking. The fdir space is reported by the i40e_hw_capabilities.fd_filters_guaranteed and fd_filters_best_effort. The fdir space is managed by hardware and now is tracking in software. The management

[dpdk-dev] [PATCH v5 4/4] net/i40e: FDIR update rate optimization

2020-07-17 Thread chenmin . sun
From: Chenmin Sun This patch optimized the fdir update rate for i40e PF, by tracking whether the fdir rule being inserted into the guaranteed space or shared space. For the flows that are inserted to the guaranteed space, we assume that the insertion will always succeed as the hardware only

[dpdk-dev] [PATCH v5 3/4] net/i40e: move the i40e_get_outer_vlan to where it real needed

2020-07-17 Thread chenmin . sun
From: Chenmin Sun This patch moves the fetching the device tpid to where it really needs, rather than fetching it every time when entered the functions. This is because this operation costs too many cycles and it is used only when matching the ethernet header. Signed-off-by: Chenmin Sun

[dpdk-dev] [PATCH v5 2/4] net/i40e: FDIR flow memory management optimization

2020-07-17 Thread chenmin . sun
From: Chenmin Sun This patch allocated some memory pool for flow management to avoid calling rte_zmalloc/rte_free every time. This patch also improves the hash table operation. When adding/removing a flow, the software will directly add/delete it from the hash table. If any error occurs, it then

[dpdk-dev] [PATCH v6 0/4] i40e FDIR update rate optimization

2020-07-17 Thread chenmin . sun
From: Chenmin Sun [PATCH v6 1/4] net/i40e: introducing the fdir guaranteed/shared space tracking [PATCH v6 2/4] net/i40e: FDIR flow memory management optimization [PATCH v6 2/4] net/i40e: move the i40e_get_outer_vlan to where it real needed [PATCH v6 2/4] net/i40e: FDIR update rate optimization

[dpdk-dev] [PATCH v6 4/4] net/i40e: FDIR update rate optimization

2020-07-17 Thread chenmin . sun
From: Chenmin Sun This patch optimized the fdir update rate for i40e PF, by tracking whether the fdir rule being inserted into the guaranteed space or shared space. For the flows that are inserted to the guaranteed space, we assume that the insertion will always succeed as the hardware only

[dpdk-dev] [PATCH v6 3/4] net/i40e: move the i40e_get_outer_vlan to where it real needed

2020-07-17 Thread chenmin . sun
From: Chenmin Sun This patch moves the fetching the device tpid to where it really needs, rather than fetching it every time when entered the functions. This is because this operation costs too many cycles and it is used only when matching the ethernet header. Signed-off-by: Chenmin Sun

[dpdk-dev] [PATCH v6 2/4] net/i40e: FDIR flow memory management optimization

2020-07-17 Thread chenmin . sun
From: Chenmin Sun This patch allocated some memory pool for flow management to avoid calling rte_zmalloc/rte_free every time. This patch also improves the hash table operation. When adding/removing a flow, the software will directly add/delete it from the hash table. If any error occurs, it then

[dpdk-dev] [PATCH v6 1/4] net/i40e: introducing the fdir space tracking

2020-07-17 Thread chenmin . sun
From: Chenmin Sun This patch introduces a fdir flow management for guaranteed/shared space tracking. The fdir space is reported by the i40e_hw_capabilities.fd_filters_guaranteed and fd_filters_best_effort. The fdir space is managed by hardware and now is tracking in software. The management

[dpdk-dev] [PATCH] net/i40e: i40e FDIR update rate optimization

2020-06-12 Thread chenmin . sun
From: Chenmin Sun This patch optimized the fdir update rate for i40e PF, by tracking the fdir rule will be inserted into guaranteed space or shared space. For the flows that are inserted to the guaranteed space, it returns success directly without retrieving the result for NIC. This patch

[dpdk-dev] [PATCH] net/i40e: fix a wrong bitmap free call

2020-07-27 Thread chenmin . sun
From: Chenmin Sun This patch fixes the coverity warning #361024. rte_bitmap_free() is not a right way to free a bitmap, replacing it with rte_free(). Signed-off-by: Chenmin Sun --- drivers/net/i40e/i40e_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net

[dpdk-dev] [PATCH] net/ice: fixed speed capability error issue

2019-03-28 Thread chenmin . sun
From: Chenmin Sun Device speed capability should be specified based on different phy types instead of a fixed value, this patch fix the issue. Fixes: 690175ee51bf ("net/ice: support getting device information") Cc: wenzhuo...@intel.com Signed-off-by: Chenmin Sun --- drive

[dpdk-dev] [PATCH] net/i40e: fix statistics

2019-01-23 Thread chenmin . sun
From: Chenmin Sun 1. Fix the lldp stop condition check - for firmware versions 6.01(for X710)/3.33(for X722) or later we need stop the lldp 2. Doucment known issue for tx bytes decreasing due to link status chage Fixes: 044846f071cc ("net/i40e: stop LLDP before setting local LLDP MIB"

[dpdk-dev] [PATCH v2] net/i40e: fix statistics

2019-01-24 Thread chenmin . sun
From: Chenmin Sun 1. Fix the lldp stop condition check - for firmware versions 6.01(for X710)/3.33(for X722) or later we need stop the lldp 2. Doucment known issue for tx bytes decreasing due to link status chage 3. Deferred stats reset in dev_init to avoid some noise be counted. Fixes