[dpdk-dev] [PATCH v4] net/ice: fix FDIR GTPU rule create fail

2020-08-31 Thread Wei Zhao
For GTPU rule without extend header the trainning packet for FDIR is different. This patch enable these case. Fixes: 934fd00c9389 ("net/ice/base: fix GTPU IP hash") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao Tested-by: Huang ZhiminX --- v3: fix typo v4: fix bug --- drivers/ne

[dpdk-dev] [PATCH v3] net/ice: fix FDIR GTPU rule create fail

2020-08-27 Thread Wei Zhao
For GTPU rule without extend header the trainning packet for FDIR is different. This patch enable these case. Fixes: 934fd00c9389 ("net/ice/base: fix GTPU IP hash") Signed-off-by: Wei Zhao --- v3: fix typo --- drivers/net/ice/base/ice_fdir.c | 63 +++- drive

[dpdk-dev] [PATCH v4] net/ice: fix VF index check for DCF

2020-08-12 Thread Wei Zhao
The vf index in rte_flow command need to check in order that not larger than actual vf number. Also change some error log for wrong action. Fixes: 829c3106812d ("net/ice: enable switch flow on DCF") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao Tested-by: Nannan Lu --- v2: change err

[dpdk-dev] [PATCH v3] net/ice: fix VF index check for DCF

2020-08-11 Thread Wei Zhao
The vf index in rte_flow command need to check in order that larger than actual number. Also change some error log for wrong action. Fixes: 829c3106812d ("net/ice: enable switch flow on DCF") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- v2: change error log v3: add new

[dpdk-dev] [PATCH v2] net/ice: fix VF index check for DCF

2020-08-11 Thread Wei Zhao
The vf index in rte_flow command need to check in order that larger the actual number. Also change some error log for wrong action. Fixes: 829c3106812d ("net/ice: enable switch flow on DCF") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- v2: change error log --- drive

[dpdk-dev] [PATCH] net/ice: fix VF index check for DCF

2020-08-09 Thread Wei Zhao
The vf index in rte_flow command need to check in order that larger the actual number. Fixes: 829c3106812d ("net/ice: enable switch flow on DCF") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 16 +++- 1 file changed, 11 insert

[dpdk-dev] [PATCH v2] net/ice: fix FDIR GTPU rule create fail

2020-07-30 Thread Wei Zhao
For GTPU rule without extend header the trainning packet for FDIR is different. This patch enable these case. Fixes: 934fd00c9389 ("net/ice/base: fix GTPU IP hash") Signed-off-by: Wei Zhao --- drivers/net/ice/base/ice_fdir.c | 63 +++- drivers/net/ice/base/

[dpdk-dev] [PATCH] net/ice: fix FDIR GTPU rule create fail

2020-07-30 Thread Wei Zhao
ned-off-by: Wei Zhao --- drivers/net/ice/base/ice_fdir.c | 161 +- drivers/net/ice/base/ice_type.h | 6 ++ drivers/net/ice/ice_ethdev.h | 4 + drivers/net/ice/ice_fdir_filter.c | 146 +-- drivers/net/ice/ice_hash.c| 3 - 5 fil

[dpdk-dev] [PATCH] net/i40e: enable i40e outer VLAN strip in QinQ

2020-07-24 Thread Wei Zhao
new poll mode driver) Signed-off-by: Wei Zhao --- drivers/net/i40e/i40e_ethdev.c | 45 +- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 05d5f2861..f5be6606c 100644 --- a/drivers/ne

[dpdk-dev] [PATCH v2] net/ice: fix tunnel type get error

2020-07-15 Thread Wei Zhao
When function ice_get_tun_type_for_recipe() get tunnel type, for ICE_NON_TUN we need to include gtp-c and some gtp-u ptype with no payload, as they do not have tunnel packet as paylod. Fixes: 418d2563d10b ("net/ice/base: get tunnel type for recipe") Signed-off-by: Wei Zhao Tested-by:

[dpdk-dev] [PATCH] net/ice: fix tunnel type get error

2020-07-14 Thread Wei Zhao
When get tunnel type for ICE_NON_TUN, there need some upodate for gtp related pctype. Fixes: 418d2563d10b ("net/ice/base: get tunnel type for recipe") Signed-off-by: Wei Zhao --- drivers/net/ice/base/ice_switch.c | 4 ++-- drivers/net/ice/base/ice_switch.h | 1 + 2 files changed, 3

[dpdk-dev] [PATCH] net/ice: fix tunnel type get error

2020-07-14 Thread Wei Zhao
When get tunnel type for ICE_NON_TUN, there need some upodate for gtp realted pctype. Fixes: 418d2563d10b ("net/ice/base: get tunnel type for recipe") Signed-off-by: Wei Zhao --- drivers/net/ice/base/ice_switch.c | 4 ++-- drivers/net/ice/base/ice_switch.h | 1 + 2 files changed, 3

[dpdk-dev] [PATCH] net/iavf: add support for multicast configuration

2020-07-13 Thread Wei Zhao
This patch enable add multicast address for iavf. Signed-off-by: Wei Zhao --- drivers/net/iavf/iavf.h| 7 + drivers/net/iavf/iavf_ethdev.c | 43 ++ drivers/net/iavf/iavf_vchnl.c | 56 ++ 3 files changed, 106 insertions

[dpdk-dev] [PATCH 2/2] net/ice/base: fix add special words for tunnel rule

2020-07-07 Thread Wei Zhao
_recipe_group(), then the special words will be add into rm->rg_list, btw the flag match_tun_mask is useless now and no need to add special words in function ice_add_sw_recipe() duplicatly. Fixes: eda40e22b858 ("net/ice/base: improve switch chained recipe") Cc: sta...@dpdk.org Signed-off-

[dpdk-dev] [PATCH 1/2] net/ice/base: fix tunnel type check for PPPoE

2020-07-07 Thread Wei Zhao
This patch fix tunnel type check for PPPoE type of recipe when search for recipe which has been created before, and also fix a bug of typo. Fixes: 418d2563d10b ("net/ice/base: get tunnel type for recipe") Signed-off-by: Wei Zhao --- drivers/net/ice/base/ice_switch.c | 14 +---

[dpdk-dev] [PATCH 0/2] update base code batch 4

2020-07-07 Thread Wei Zhao
The patchset include 2 bug fixes for base code. Wei Zhao (2): ice-shared: Fix tunnel type check for PPPoE ice-shared: Fix add special words for tunnel rule drivers/net/ice/base/ice_switch.c | 52 +-- 1 file changed, 14 insertions(+), 38 deletions(-) -- 2.19.1

[dpdk-dev] [PATCH v6 4/5] net/ice: add input set byte number check

2020-07-02 Thread Wei Zhao
This patch add the total input set byte number check, as there is a hardware requirement for the total number of 32 byte. Fixes: 47d460d63233 ("net/ice: rework switch filter") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_fil

[dpdk-dev] [PATCH v6 3/5] net/ice: support switch flow for specific L4 type

2020-07-02 Thread Wei Zhao
This patch add more specific tunnel type for ipv4/ipv6 packet, it enable tcp/udp layer of ipv4/ipv6 as L4 payload but without L4 dst/src port number as input set for the switch filter rule. Fixes: 47d460d63233 ("net/ice: rework switch filter") Cc: sta...@dpdk.org Signed-off-by

[dpdk-dev] [PATCH v6 2/5] net/ice: fix tunnel type for switch rule

2020-07-02 Thread Wei Zhao
This patch add check for protocol type of IPv4 packet, it need to update tunnel type when NVGRE is in payload. Fixes: 6bc7628c5e0b ("net/ice: change default tunnel type") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 7 ++- 1 file

[dpdk-dev] [PATCH v6 5/5] net/ice: fix typo

2020-07-02 Thread Wei Zhao
fix typo of "valid". Fixes: 8f5d8e74fb38 ("net/ice: support flow for AH ESP and L2TP") Fixes: 66ff8851792f ("net/ice: support ESP/AH/L2TP") Fixes: 45b53ed3701d ("net/ice: support IPv6 NAT-T") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao ---

[dpdk-dev] [PATCH v6 1/5] net/ice: add support more PPPoE packeat type for switch

2020-07-02 Thread Wei Zhao
This patch add more support for switch parser of pppoe packet, it enable parse tcp/udp L4 layer and ipv4/ipv6 L3 layer parser for pppoe payload, so we can use L4 dst/src port and L3 ip address as input set for switch filter pppoe related rule. Signed-off-by: Wei Zhao --- doc/guides/rel_notes

[dpdk-dev] [PATCH v6 0/5] enable more PPPoE packet type for switch

2020-07-02 Thread Wei Zhao
: fix bug in patch add redirect support for VSI list rule. add information in release note. v3: add input set byte number check code update as comment of code style v4: fix typo in patch v5: add more valid flag v6: rebase for code merge Wei Zhao (5): net/ice: add support more PPPoE packeat

[dpdk-dev] [PATCH v2] net/ixgbe: add the support link speed info for x553

2020-06-29 Thread Wei Zhao
For ixgbe x553(IXGBE_DEV_ID_X550EM_A_1G_T) it support 10M link speed, so add the support link speed info for 10Mb/s. Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao Acked-by: Jeff Guo --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 1 file

[dpdk-dev] [PATCH v5 4/5] net/ice: add input set byte number check

2020-06-28 Thread Wei Zhao
This patch add the total input set byte number check, as there is a hardware requirement for the total number of 32 byte. Fixes: 47d460d63233 ("net/ice: rework switch filter") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_fil

[dpdk-dev] [PATCH v5 5/5] net/ice: fix typo

2020-06-28 Thread Wei Zhao
fix typo of "valid". Fixes: 8f5d8e74fb38 ("net/ice: support flow for AH ESP and L2TP") Fixes: 66ff8851792f ("net/ice: support ESP/AH/L2TP") Fixes: 45b53ed3701d ("net/ice: support IPv6 NAT-T") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao ---

[dpdk-dev] [PATCH v5 2/5] net/ice: fix tunnel type for switch rule

2020-06-28 Thread Wei Zhao
This patch add check for protocol type of IPv4 packet, it need to update tunnel type when NVGRE is in payload. Fixes: 6bc7628c5e0b ("net/ice: change default tunnel type") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 7 ++- 1 file

[dpdk-dev] [PATCH v5 3/5] net/ice: support switch flow for specific L4 type

2020-06-28 Thread Wei Zhao
This patch add more specific tunnel type for ipv4/ipv6 packet, it enable tcp/udp layer of ipv4/ipv6 as L4 payload but without L4 dst/src port number as input set for the switch filter rule. Fixes: 47d460d63233 ("net/ice: rework switch filter") Cc: sta...@dpdk.org Signed-off-by

[dpdk-dev] [PATCH v5 1/5] net/ice: add support more PPPoE packet type for switch

2020-06-28 Thread Wei Zhao
This patch add more support for switch parser of pppoe packet, it enable parse tcp/udp L4 layer and ipv4/ipv6 L3 layer parser for pppoe payload, so we can use L4 dst/src port and L3 ip address as input set for switch filter pppoe related rule. Signed-off-by: Wei Zhao --- doc/guides/rel_notes

[dpdk-dev] [PATCH v5 0/5] enable more PPPoE packet type for switch

2020-06-28 Thread Wei Zhao
: fix bug in patch add redirect support for VSI list rule. add information in release note. v3: add input set byte number check code update as comment of code style v4: fix typo in patch v5: add more valid flag Wei Zhao (5): net/ice: add support more PPPoE packet type for switch net/ice: fix

[dpdk-dev] [PATCH] net/ixgbe: enable 10Mb/s speed for x553

2020-06-27 Thread Wei Zhao
For ixgbe x553(IXGBE_DEV_ID_X550EM_A_1G_T) it support 10M link speed, so enable it for the kind of ixgbe nic. Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 1 file changed, 4 insertions(+) di

[dpdk-dev] [PATCH v4 0/4] enable more PPPoE packet type for switch

2020-06-27 Thread Wei Zhao
patch add redirect support for VSI list rule. add information in release note. v3: add input set byte number check code update as comment of code style v4: fix typo in patch Wei Zhao (4): net/ice: add support more PPPoE packet type for switch net/ice: fix tunnel type for switch rule net

[dpdk-dev] [PATCH v4 1/4] net/ice: add support more PPPoE packet type for switch

2020-06-27 Thread Wei Zhao
This patch add more support for switch parser of pppoe packet, it enable parse tcp/udp L4 layer and ipv4/ipv6 L3 layer parser for pppoe payload, so we can use L4 dst/src port and L3 ip address as input set for switch filter pppoe related rule. Signed-off-by: Wei Zhao --- doc/guides/rel_notes

[dpdk-dev] [PATCH v4 2/4] net/ice: fix tunnel type for switch rule

2020-06-27 Thread Wei Zhao
This patch add check for protocol type of IPv4 packet, it need to update tunnel type when NVGRE is in payload. Fixes: 6bc7628c5e0b ("net/ice: change default tunnel type") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 7 ++- 1 file

[dpdk-dev] [PATCH v4 4/4] net/ice: add input set byte number check

2020-06-27 Thread Wei Zhao
This patch add the total input set byte number check, as there is a hardware requirement for the total number of 32 byte. Fixes: 47d460d63233 ("net/ice: rework switch filter") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_fil

[dpdk-dev] [PATCH v4 3/4] net/ice: support switch flow for specific L4 type

2020-06-27 Thread Wei Zhao
This patch add more specific tunnel type for ipv4/ipv6 packet, it enable tcp/udp layer of ipv4/ipv6 as L4 payload but without L4 dst/src port number as input set for the switch filter rule. Fixes: 47d460d63233 ("net/ice: rework switch filter") Cc: sta...@dpdk.org Signed-off-by

[dpdk-dev] [PATCH v3 1/4] net/ice: add support more PPPoE packet type for switch

2020-06-27 Thread Wei Zhao
This patch add more support for switch parser of pppoe packet, it enable parse tcp/udp L4 layer and ipv4/ipv6 L3 layer parser for pppoe payload, so we can use L4 dst/src port and L3 ip address as input set for switch filter pppoe related rule. Signed-off-by: Wei Zhao --- doc/guides/rel_notes

[dpdk-dev] [PATCH v3 0/4] enable more PPPoE packet type for switch

2020-06-27 Thread Wei Zhao
patch add redirect support for VSI list rule. add information in release note. v3: add input set byte number check code update as comment of code style Wei Zhao (4): net/ice: add support more PPPoE packet type for switch net/ice: fix tunnel type for switch rule net/ice: support switch flow

[dpdk-dev] [PATCH v3 4/4] net/ice: add input set byte number check

2020-06-27 Thread Wei Zhao
This patch add the total input set byte number check, as there is a hardware requirement for the total number of 32 byte. Fixes: 47d460d63233 ("net/ice: rework switch filter") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_fil

[dpdk-dev] [PATCH v3 3/4] net/ice: support switch flow for specific L4 type

2020-06-27 Thread Wei Zhao
This patch add more specific tunnel type for ipv4/ipv6 packet, it enable tcp/udp layer of ipv4/ipv6 as L4 payload but without L4 dst/src port number as input set for the switch filter rule. Fixes: 47d460d63233 ("net/ice: rework switch filter") Cc: sta...@dpdk.org Signed-off-by

[dpdk-dev] [PATCH v3 2/4] net/ice: fix tunnel type for switch rule

2020-06-27 Thread Wei Zhao
This patch add check for protocol type of IPv4 packet, it need to update tunnel type when NVGRE is in payload. Fixes: 6bc7628c5e0b ("net/ice: change default tunnel type") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 7 ++- 1 file

[dpdk-dev] [PATCH v3 4/4] net/ice: add input set byte number check

2020-06-27 Thread Wei Zhao
This patch add the total input set byte number check, as there is a hardware requirement for the total number of 32 byte. Fixes: 47d460d63233 ("net/ice: rework switch filter") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_fil

[dpdk-dev] [PATCH v3 0/4] enable more PPPoE packet type for switch

2020-06-27 Thread Wei Zhao
patch add redirect support for VSI list rule. add information in release note. v3: add input set byte number check code update as comment of code style Wei Zhao (4): net/ice: add support more PPPoE packet type for switch net/ice: fix tunnel type for switch rule net/ice: support switch flow

[dpdk-dev] [PATCH v3 1/4] net/ice: add support more PPPoE packet type for switch

2020-06-27 Thread Wei Zhao
This patch add more support for switch parser of pppoe packet, it enable parse tcp/udp L4 layer and ipv4/ipv6 L3 layer parser for pppoe payload, so we can use L4 dst/src port and L3 ip address as input set for switch filter pppoe related rule. Signed-off-by: Wei Zhao --- doc/guides/rel_notes

[dpdk-dev] [PATCH v3 3/4] net/ice: support switch flow for specific L4 type

2020-06-27 Thread Wei Zhao
This patch add more specific tunnel type for ipv4/ipv6 packet, it enable tcp/udp layer of ipv4/ipv6 as L4 payload but without L4 dst/src port number as input set for the switch filter rule. Fixes: 47d460d63233 ("net/ice: rework switch filter") Cc: sta...@dpdk.org Signed-off-by

[dpdk-dev] [PATCH v3 2/4] net/ice: fix tunnel type for switch rule

2020-06-27 Thread Wei Zhao
This patch add check for protocol type of IPv4 packet, it need to update tunnel type when NVGRE is in payload. Fixes: 6bc7628c5e0b ("net/ice: change default tunnel type") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 7 ++- 1 file

[dpdk-dev] [PATCH v2 1/4] net/ice: add support more PPPoE packet type for switch

2020-06-16 Thread Wei Zhao
This patch add more support for switch parser of pppoe packet, it enable parse tcp/udp L4 layer and ipv4/ipv6 L3 layer parser for pppoe payload, so we can use L4 dst/src port and L3 ip address as input set for switch filter pppoe related rule. Signed-off-by: Wei Zhao --- doc/guides/rel_notes

[dpdk-dev] [PATCH v2 2/4] net/ice: add redirect support for VSI list rule

2020-06-16 Thread Wei Zhao
This patch enable redirect switch rule of vsi list type. Fixes: 397b4b3c5095 ("net/ice: enable flow redirect on switch") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) di

[dpdk-dev] [PATCH v2 0/4] enable more PPPoE packet type for switch

2020-06-16 Thread Wei Zhao
bug in patch add redirect support for VSI list rule. add information in release note. Wei Zhao (4): net/ice: add support more PPPoE packet type for switch net/ice: add redirect support for VSI list rule net/ice: add check for NVGRE protocol net/ice: support switch flow for specific L4 type

[dpdk-dev] [PATCH v2 4/4] net/ice: support switch flow for specific L4 type

2020-06-16 Thread Wei Zhao
This patch add more specific tunnel type for ipv4/ipv6 packet, it enable tcp/udp layer of ipv4/ipv6 as L4 payload but without L4 dst/src port number as input set for the switch filter rule. Fixes: 47d460d63233 ("net/ice: rework switch filter") Cc: sta...@dpdk.org Signed-off-by

[dpdk-dev] [PATCH v2 3/4] net/ice: add check for NVGRE protocol

2020-06-16 Thread Wei Zhao
This patch add check for protocol type of IPv4 packet, it need to update tunnel type when NVGRE is in payload. Fixes: 6bc7628c5e0b ("net/ice: change default tunnel type") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 7 ++- 1 file

[dpdk-dev] [PATCH 4/4] net/ice: support switch flow for specific L4 type

2020-06-05 Thread Wei Zhao
This patch add more specific tunnel type for ipv4/ipv6 packet, it enable tcp/udp layer of ipv4/ipv6 as L4 payload but without L4 dst/src port number as input set for the switch filter rule. Fixes: 47d460d63233 ("net/ice: rework switch filter") Cc: sta...@dpdk.org Signed-off-by

[dpdk-dev] [PATCH 3/4] net/ice: add check for NVGRE protocol

2020-06-05 Thread Wei Zhao
This patch add check for protocol type of IPv4 packet, it need to update tunnel type when NVGRE is in payload. Fixes: 6bc7628c5e0b ("net/ice: change default tunnel type") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 7 ++- 1 file

[dpdk-dev] [PATCH 1/4] net/ice: add support more PPPoE packet type for switch

2020-06-05 Thread Wei Zhao
This patch add more support for switch parser of pppoe packet, it enable parse tcp/udp L4 layer and ipv4/ipv6 L3 layer parser for pppoe payload, so we can use L4 dst/src port and L3 ip address as input set for switch filter pppoe related rule. Signed-off-by: Wei Zhao --- drivers/net/ice

[dpdk-dev] [PATCH 0/4] enable more PPPoE packet type for switch

2020-06-05 Thread Wei Zhao
1. add more support for switch parser of pppoe packet. 2. add redirect support for VSI list rule 3. add check for NVGRE protocol 4. support flow for specific L4 type This patchset is based on: [1] https://patches.dpdk.org/cover/70762/ : net/ice: base code update Depends-on: series-10300 Wei

[dpdk-dev] [PATCH 2/4] net/ice: add redirect support for VSI list rule

2020-06-05 Thread Wei Zhao
This patch enable redirect switch rule of vsi list type. Fixes: 397b4b3c5095 ("net/ice: enable flow redirect on switch") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) di

[dpdk-dev] [PATCH v2] net/i40e: fix flow FDIR enable issue

2020-05-21 Thread Wei Zhao
i40e_flow_flush_fdir_filter(). Fixes: 1491f63c7559 ("net/i40e: fix flush of flow director filter") Fixes: 6ae9b2b5e8c2 ("net/i40e: cache flow director enable value in Rx queue") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- v2: update log info --- drivers/net/i40e/i40e_flow.c | 1

[dpdk-dev] [PATCH] net/ice: fix switch action number check

2020-05-21 Thread Wei Zhao
The action number for switch filter should be 1, any other such as 0 or more than 1 is invalid. Fixes: 3428c6b6ec1f ("net/ice: add action number check for switch") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 2 +- 1 file changed, 1 inser

[dpdk-dev] [PATCH] net/i40e: fix flow FDIR enable issue

2020-05-19 Thread Wei Zhao
i40e_flow_flush_fdir_filter(). Cc: sta...@dpdk.org Fixes: 1491f63c7559 ("net/i40e: fix flush of flow director filter") Fixes: 6ae9b2b5e8c2 ("net/i40e: cache flow director enable value in Rx queue") Signed-off-by: Wei Zhao --- drivers/net/i40e/i40e_flow.c | 12 +--- 1 file changed

[dpdk-dev] [PATCH v5] net/i40e: fix the core dump risk of wild pointer operation

2020-05-18 Thread Wei Zhao
ointer operation, we should avoid this risk. Cc: sta...@dpdk.org Fixes: 4861cde46116 ("i40e: new poll mode driver") Signed-off-by: Wei Zhao --- v2: update commit log v3: set free pointer to NULL v4: change code style v5: fix an issue in v4 --- drivers/net/i40e/i40e_ethdev.c | 14 +++

[dpdk-dev] [PATCH v4] net/i40e: fix the core dump risk of wild pointer operation

2020-05-18 Thread Wei Zhao
ointer operation, we should avoid this risk. Cc: sta...@dpdk.org Fixes: 4861cde46116 ("i40e: new poll mode driver") Signed-off-by: Wei Zhao --- v2: update commit log v3: set free pointer to NULL v4: change code style --- drivers/net/i40e/i40e_ethdev.c | 16 ++-- 1 fil

[dpdk-dev] [PATCH v3] net/i40e: fix the core dump risk of wild pointer operation

2020-05-18 Thread Wei Zhao
ointer operation, we should avoid this risk. Cc: sta...@dpdk.org Fixes: 4861cde46116 ("i40e: new poll mode driver") Signed-off-by: Wei Zhao --- v2: update commit log v3: set free pointer to NULL --- drivers/net/i40e/i40e_ethdev.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletion

[dpdk-dev] [PATCH v2] net/i40e: fix the core dump risk of wild pointer operation

2020-05-17 Thread Wei Zhao
ointer operation, we should avoid this risk. Cc: sta...@dpdk.org Fixes: 4861cde46116 ("i40e: new poll mode driver") Signed-off-by: Wei Zhao --- v2: update commit log --- drivers/net/i40e/i40e_ethdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/ne

[dpdk-dev] [PATCH] net/i40e: fix the security risk of wild pointer operation

2020-05-11 Thread Wei Zhao
. Cc: sta...@dpdk.org Fixes: 4861cde46116 ("i40e: new poll mode driver") Signed-off-by: Wei Zhao --- drivers/net/i40e/i40e_ethdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 749d85f54..7

[dpdk-dev] [PATCH] net/ice/base: fix pppoe-ipv6 dummy packet error

2020-05-06 Thread Wei Zhao
PPoE IPv6 dummy packet") Signed-off-by: Wei Zhao --- drivers/net/ice/base/ice_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index 957142a10..a07ceea70 100644 --- a/drivers/net/ice/bas

[dpdk-dev] [PATCH v2] net/ice/base: fix bm mask set and find switch recipe method

2020-04-29 Thread Wei Zhao
/ end actions queue index 5 / end" "eth / ipv6 / esp spi is 1 / end actions queue index 2 / end" Fixes: 4f11962fce84 ("net/ice/base: support AH ESP and NAT-T on switch") Fixes: 99d8ba79efbe ("net/ice/base: force switch to use different recipe") Signed-of

[dpdk-dev] [PATCH v4 0/3] fix i40e bug for flow filter

2020-04-28 Thread Wei Zhao
fix i40e bug for flow filter and add comment in doc. v2: add more comment in git log. v3: update git log. v4: update doc info. Wei Zhao (3): net/i40e: fix FDIR issue for ARP packets doc: input set requirement of each pctype for FDIR net/i40e: remove teardown when flush FDIR filter doc

[dpdk-dev] [PATCH v4 2/3] doc: input set requirement of each pctype for FDIR

2020-04-28 Thread Wei Zhao
Add input set requirement info to i40e doc. Bugzilla ID: 403 Signed-off-by: Wei Zhao --- doc/guides/nics/i40e.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics/i40e.rst index 416b3904e..f085a357c 100644 --- a/doc/guides/nics/i40e.rst +++ b

[dpdk-dev] [PATCH v4 1/3] net/i40e: fix FDIR issue for ARP packets

2020-04-28 Thread Wei Zhao
44b69c67d ("net/i40e: support input set selection for FDIR") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/i40e/i40e_flow.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index 7e64ae53a..1533d5abb 100644 ---

[dpdk-dev] [PATCH v4 3/3] net/i40e: remove teardown when flush FDIR filter

2020-04-28 Thread Wei Zhao
gzilla ID: 404 Fixes: 2e67a7fbf3ff ("net/i40e: config flow director automatically") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/i40e/i40e_flow.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index 1

[dpdk-dev] [PATCH v3 1/3] net/i40e: fix FDIR issue for ARP packets

2020-04-28 Thread Wei Zhao
44b69c67d ("net/i40e: support input set selection for FDIR") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/i40e/i40e_flow.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index 7e64ae53a..1533d5abb 100644 ---

[dpdk-dev] [PATCH v3 2/3] doc: input set requirement of each pctype for FDIR

2020-04-28 Thread Wei Zhao
Add input set requirement info to i40e doc. Bugzilla ID: 403 Signed-off-by: Wei Zhao --- doc/guides/nics/i40e.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics/i40e.rst index 416b3904e..ad5f51c38 100644 --- a/doc/guides/nics/i40e.rst +++ b

[dpdk-dev] [PATCH v3 0/3] fix i40e bug for flow filter

2020-04-28 Thread Wei Zhao
fix i40e bug for flow filter and add comment in doc. v2: add more comment in git log. v3: update git log. Wei Zhao (3): net/i40e: fix FDIR issue for ARP packets doc: input set requirement of each pctype for FDIR net/i40e: remove teardown when flush FDIR filter doc/guides/nics/i40e.rst

[dpdk-dev] [PATCH v3 3/3] net/i40e: remove teardown when flush FDIR filter

2020-04-28 Thread Wei Zhao
gzilla ID: 404 Fixes: 2e67a7fbf3ff ("net/i40e: config flow director automatically") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/i40e/i40e_flow.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index 1

[dpdk-dev] [PATCH] net/ice/base: fix bm mask set and find switch recipe method

2020-04-27 Thread Wei Zhao
/ end actions queue index 5 / end" "eth / ipv6 / esp spi is 1 / end actions queue index 2 / end" Signed-off-by: Wei Zhao --- drivers/net/ice/base/ice_switch.c | 15 ++- drivers/net/ice/base/ice_switch.h | 2 ++ 2 files changed, 12 insertions(+), 5 deletions

[dpdk-dev] [PATCH v2 3/3] net/i40e: remove teardown when flush FDIR filter

2020-04-27 Thread Wei Zhao
gzilla ID: 404 Fixes: 2e67a7fbf3ff ("net/i40e: config flow director automatically") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/i40e/i40e_flow.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index 1

[dpdk-dev] [PATCH v2 0/3] fix i40e bug for flow filter

2020-04-27 Thread Wei Zhao
fix i40e bug for flow filter and add comment in doc. v2: add more comment in git log. Wei Zhao (3): net/i40e: fix FDIR issue for ARP packets doc: input set requirement of each pctype for FDIR net/i40e: remove teardown when flush FDIR filter doc/guides/nics/i40e.rst | 7

[dpdk-dev] [PATCH v2 2/3] doc: input set requirement of each pctype for FDIR

2020-04-27 Thread Wei Zhao
Add input set requirement info to i40e doc. Bugzilla ID: 403 Signed-off-by: Wei Zhao --- doc/guides/nics/i40e.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics/i40e.rst index 416b3904e..ad5f51c38 100644 --- a/doc/guides/nics/i40e.rst +++ b

[dpdk-dev] [PATCH v2 1/3] net/i40e: fix FDIR issue for ARP packets

2020-04-27 Thread Wei Zhao
ertype for FDIR filter, it work well for ARP for FDIR filter, so delete the check. Bugzilla ID: 402 Fixes: 42044b69c67d ("net/i40e: support input set selection for FDIR") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/i40e/i40e_flow.c | 2 -- 1 file changed, 2 deletions(-)

[dpdk-dev] [PATCH 3/3] net/i40e: remove teardown when flush FDIR filter

2020-04-27 Thread Wei Zhao
gzilla ID: 404 Fixes: 2e67a7fbf3ff ("net/i40e: config flow director automatically") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/i40e/i40e_flow.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index 1

[dpdk-dev] [PATCH 2/3] doc: input set requirement of each pctype for FDIR

2020-04-27 Thread Wei Zhao
Add input set requirement info to i40e doc. Bugzilla ID: 403 Signed-off-by: Wei Zhao --- doc/guides/nics/i40e.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics/i40e.rst index 416b3904e..ad5f51c38 100644 --- a/doc/guides/nics/i40e.rst +++ b

[dpdk-dev] [PATCH 0/3] fix i40e bug for flow filter

2020-04-27 Thread Wei Zhao
fix i40e bug for flow filter and add comment in doc. Wei Zhao (3): net/i40e: remove ARP type check for FDIR filter doc: input set requirement of each pctype for FDIR net/i40e: remove teardown when flush FDIR filter doc/guides/nics/i40e.rst | 7 +++ drivers/net/i40e/i40e_flow.c

[dpdk-dev] [PATCH 1/3] net/i40e: remove ARP type check for FDIR filter

2020-04-27 Thread Wei Zhao
I have try to enable ARP ethertype for FDIR filter, it work well for ARP for FDIR filter, so delete it. Bugzilla ID: 402 Fixes: 42044b69c67d ("net/i40e: support input set selection for FDIR") Cc: sta...@dpdk.org Signed-off-by: Wei Zhao --- drivers/net/i40e/i40e_flow.c | 2 -- 1 file

[dpdk-dev] [PATCH] maintainers: update for Intel ixgbe/igb/igc

2020-04-26 Thread Wei Zhao
Replace Wenzhuo Lu, Alvin Zhang and Konstantin Ananyev with Wei Zhao and Jeff Guo. Signed-off-by: Wei Zhao --- MAINTAINERS | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index d31a80929..7a57535ee 100644 --- a/MAINTAINERS +++ b

[dpdk-dev] [PATCH] maintainers: update for Intel ixgbe/igb/igc

2020-04-26 Thread Wei Zhao
Replace Wenzhuo Lu, Alvin Zhang and Konstantin Ananyev with Wei Zhao and Jeff Guo. Signed-off-by: Wei Zhao --- MAINTAINERS | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index d31a80929..7a57535ee 100644 --- a/MAINTAINERS +++ b

[dpdk-dev] [PATCH] maintainers: update for Intel ixgbe/igb/igc

2020-04-26 Thread Wei Zhao
Replace Wenzhuo Lu, Alvin Zhang and Konstantin Ananyev with Wei Zhao and Jeff Guo. Signed-off-by: Wei Zhao --- MAINTAINERS | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index d31a80929..7a57535ee 100644 --- a/MAINTAINERS +++ b

[dpdk-dev] [PATCH v2 2/3] net/ice/base: add support for L2TP on switch

2020-04-19 Thread Wei Zhao
Add dummy packet and tunnel type to support L2TP on switch, now we can use session id as input set for swicth rule. Signed-off-by: Wei Zhao --- drivers/net/ice/base/ice_protocol_type.h | 2 + drivers/net/ice/base/ice_switch.c| 76 drivers/net/ice/base

[dpdk-dev] [PATCH v2 3/3] net/ice: add flow support for AH ESP and L2TP

2020-04-19 Thread Wei Zhao
Add switch filter support for AH ESP and L2TP protocol, and use spi or session idas input set for switch rule. Signed-off-by: Wei Zhao --- drivers/net/ice/ice_generic_flow.c | 25 drivers/net/ice/ice_generic_flow.h | 23 drivers/net/ice/ice_switch_filter.c | 198

[dpdk-dev] [PATCH v2 1/3] net/ice/base: add support for AH ESP and NAT-T on switch

2020-04-19 Thread Wei Zhao
Add dummy packet and tunnel type to support AH ESP and NAT-T on switch, now we can use spi as input set for swicth rule. Signed-off-by: Wei Zhao --- drivers/net/ice/base/ice_protocol_type.h | 12 ++ drivers/net/ice/base/ice_switch.c| 235 +++ drivers/net/ice/base

[dpdk-dev] [PATCH v2 0/3] add support for L2TP AH ESP and NAT-T on switch

2020-04-19 Thread Wei Zhao
This patch set add switch filter support for AH ESP NAT-T and L2TP protocol, and use spi or session idas input set for switch rule. v2: -fix bug for input set error. Wei Zhao (3): net/ice/base: add support for AH ESP and NAT-T on switch net/ice/base: add support for L2TP on switch net/ice

[dpdk-dev] [PATCH 2/3] net/ice/base: add support for L2TP on switch

2020-04-17 Thread Wei Zhao
Add dummy packet and tunnel type to support L2TP on switch, now we can use session id as input set for swicth rule. Signed-off-by: Wei Zhao --- drivers/net/ice/base/ice_protocol_type.h | 2 + drivers/net/ice/base/ice_switch.c| 76 drivers/net/ice/base

[dpdk-dev] [PATCH 3/3] net/ice: add flow support for AH ESP and L2TP

2020-04-17 Thread Wei Zhao
Add switch filter support for AH ESP and L2TP protocol, and use spi or session idas input set for switch rule. Signed-off-by: Wei Zhao --- drivers/net/ice/ice_generic_flow.c | 25 drivers/net/ice/ice_generic_flow.h | 23 drivers/net/ice/ice_switch_filter.c | 198

[dpdk-dev] [PATCH 0/3] add support for L2TP AH ESP and NAT-T on switch

2020-04-17 Thread Wei Zhao
This patch set add switch filter support for AH ESP NAT-T and L2TP protocol, and use spi or session idas input set for switch rule. Wei Zhao (3): net/ice/base: add support for AH ESP and NAT-T on switch net/ice/base: add support for L2TP on switch net/ice: add flow support for AH ESP and

[dpdk-dev] [PATCH 1/3] net/ice/base: add support for AH ESP and NAT-T on switch

2020-04-17 Thread Wei Zhao
Add dummy packet and tunnel type to support AH ESP and NAT-T on switch, now we can use spi as input set for swicth rule. Signed-off-by: Wei Zhao --- drivers/net/ice/base/ice_protocol_type.h | 12 ++ drivers/net/ice/base/ice_switch.c| 235 +++ drivers/net/ice/base

[dpdk-dev] [PATCH 1/3] net/ice/base: check the number of recipe when in chain

2020-04-09 Thread Wei Zhao
last_chain_entry->fv_idx[i] = entry->chain_idx; buf[recps].content.lkup_indx[i] = entry->chain_idx; buf[recps].content.mask[i++] = CPU_TO_LE16(0x); .......... } Signed-off-by: Wei Zhao --- drivers/net/ice/base/ice_switch.c | 3 +++ 1 file changed, 3 insertion

[dpdk-dev] [PATCH 3/3] net/ice/base: force switch to use different recipe for

2020-04-09 Thread Wei Zhao
uot; "flow create 0 priority 0 ingress pattern eth / ipv4 / udp / pfcp s_field is 0 / end actions queue index 5 / end" then, "flow flush 0" you will find only the first rule will be delete, because ice_find_recp() will always return recipe id of the first rule. Signed-off-by: Wei

[dpdk-dev] [PATCH 0/3] update ice switch base code

2020-04-09 Thread Wei Zhao
This patch set fix some ice base code bug of switch. Wei Zhao (3): net/ice/base: check the number of recipe when in chain net/ice/base: add mask check when find switch recipe net/ice/base: force switch to use different recipe for drivers/net/ice/base/ice_switch.c | 23

[dpdk-dev] [PATCH 2/3] net/ice/base: add mask check when find switch recipe

2020-04-09 Thread Wei Zhao
In order to find accurate recipe for switch filter, we need to add mask as an element when searching for recipe. If we create different rules with the same input set, but using different masks, then proper recipes should use those different mask. Signed-off-by: Wei Zhao --- drivers/net/ice/base

[dpdk-dev] [PATCH v4 11/13] net/ice: fix input set of VLAN item

2020-04-02 Thread Wei Zhao
The input set for inner type of vlan item should be ICE_INSET_ETHERTYPE, not ICE_INSET_VLAN_OUTER. This mac vlan filter is also part of DCF switch filter. Cc: sta...@dpdk.org Fixes: 47d460d63233 ("net/ice: rework switch filter") Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switc

[dpdk-dev] [PATCH v4 12/13] net/ice: enable flow redirect on switch

2020-04-02 Thread Wei Zhao
Enable flow redirect on switch, currently only support VSI redirect. Signed-off-by: Beilei Xing --- drivers/net/ice/ice_switch_filter.c | 73 + 1 file changed, 73 insertions(+) diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c in

[dpdk-dev] [PATCH v4 09/13] net/ice: add support for IPv6 NAT-T

2020-04-02 Thread Wei Zhao
This patch add switch filter support for IPv6 NAT-T packets, it enable swicth filter to direct ipv6 packets with NAT-T payload to specific action. Signed-off-by: Wei Zhao --- drivers/net/ice/ice_generic_flow.c | 14 ++ drivers/net/ice/ice_generic_flow.h | 2 ++ drivers/net/ice

  1   2   3   4   5   6   7   >