[dpdk-dev] [PATCH v1] app/testpmd: add memory dump command

2020-04-02 Thread Xueming Li
Introduce new command to dump memory statistics of each socket, summary, also show changes since last call. Usage: dump_socket Signed-off-by: Xueming Li --- app/test-pmd/cmdline.c | 52 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 6

[dpdk-dev] [PATCH v1] app/testpmd: add memory dump command

2020-04-02 Thread Xueming Li
v0: initial version v1: update user guide Xueming Li (1): app/testpmd: add memory dump command app/test-pmd/cmdline.c | 52 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 6 2 files changed, 58 insertions(+) -- 1.8.3.1

[dpdk-dev] [PATCH] vhost: fix check peer close

2020-04-02 Thread qikai
In process_slave_message_reply(), there is a possibility that receiving a peer close message instead of a real message response. this patch targeting to handle the peer close scenario and report the correct error message. Signed-off-by: qikai --- lib/librte_vhost/vhost_user.c | 10 +-

Re: [dpdk-dev] [PATCH v2] net/axgbe: vlan support enabling in axgbe

2020-04-02 Thread Kumar, Ravi1
[AMD Public Use] Acked-by: Ravi Kumar > > >-Original Message- >From: Sardar, Shamsher singh >Sent: Friday, April 3, 2020 11:50 AM >To: dev@dpdk.org >Cc: Kumar, Ravi1 >Subject: [PATCH v2] net/axgbe: vlan support enabling in axgbe > >From: Sardar Shamsher Singh > >adding below APIs for

[dpdk-dev] [PATCH v2] net/axgbe: vlan support enabling in axgbe

2020-04-02 Thread ssardar
From: Sardar Shamsher Singh adding below APIs for axgbe - axgbe_enable_rx_vlan_stripping: to enable vlan header stipping - axgbe_disable_rx_vlan_stripping: to disable vlan header stipping - axgbe_enable_rx_vlan_filtering: to enable vlan filter mode - axgbe_disable_rx_vlan_filtering: to disable vl

Re: [dpdk-dev] [PATCH v3 0/2] add generic filter support for iavf

2020-04-02 Thread Zhang, Qi Z
> -Original Message- > From: Yang, Qiming > Sent: Friday, April 3, 2020 1:43 PM > To: dev@dpdk.org > Cc: Zhang, Qi Z ; Yang, Qiming > Subject: [PATCH v3 0/2] add generic filter support for iavf > > This patch set added generic flow APIs and supported patterns includes: > /* L2 */ > /*

[dpdk-dev] [PATCH v3 2/2] net/iavf: support more patterns

2020-04-02 Thread Qiming Yang
Add patterns support for AH/ESP/L2TPV3OIP/PFCP. Added patterns are as follows: /* GTPU */ eth/ipv4/udp/gtpu eth/ipv4/udp/gtpu/gtp_psc /* ESP */ eth/ipv4/esp eth/ipv4/udp/esp eth/ipv6/esp eth/ipv6/udp/esp /* AH */ eth/ipv4/ah eth/ipv6/ah /* L2TPV3 */ eth/ipv4/l2tpv3oip et

[dpdk-dev] [PATCH v3 1/2] net/iavf: support generic flow

2020-04-02 Thread Qiming Yang
This patch added iavf_flow_create, iavf_flow_destroy, iavf_flow_flush and iavf_flow_validate support, these are used to handle all the generic filters. This patch supported basic L2, L3, L4 and GTPU patterns. Signed-off-by: Qiming Yang --- doc/guides/nics/features/iavf.ini | 1 + doc/gui

[dpdk-dev] [PATCH v3 0/2] add generic filter support for iavf

2020-04-02 Thread Qiming Yang
This patch set added generic flow APIs and supported patterns includes: /* L2 */ /* ARP */ /* IPv4 */ /* IPv6 */ /* GTPU */ /* ESP */ /* AH */ /* L2TPV3 */ /* PFCP */ --- v2 changes: - fixed document error. - fixed multiple thread not safe issue. - use RTE_ASSERT to replace runtime check for e

Re: [dpdk-dev] [EXT] [PATCH v3] examples/ipsec-secgw: support flow director feature

2020-04-02 Thread Akhil Goyal
> > > diff --git a/examples/ipsec-secgw/ipsec.c > > > b/examples/ipsec-secgw/ipsec.c index d40657102..76ee9dbcf 100644 > > > --- a/examples/ipsec-secgw/ipsec.c > > > +++ b/examples/ipsec-secgw/ipsec.c > > > @@ -418,6 +418,73 @@ create_inline_session(struct socket_ctx *skt_ctx, > > > struct ipsec_sa

Re: [dpdk-dev] [EXT] [PATCH v3] examples/ipsec-secgw: support flow director feature

2020-04-02 Thread Anoob Joseph
Hi Praveen, Please see inline. Thanks, Anoob > -Original Message- > From: Shetty, Praveen > Sent: Thursday, April 2, 2020 11:27 PM > To: Anoob Joseph ; dev@dpdk.org; Doherty, Declan > ; Akhil Goyal > Cc: Iremonger, Bernard ; Ananyev, Konstantin > > Subject: RE: [EXT] [PATCH v3] exampl

Re: [dpdk-dev] [PATCH v4 00/13] add switch filter support for intel DCF

2020-04-02 Thread Zhang, Qi Z
> -Original Message- > From: Zhao1, Wei > Sent: Friday, April 3, 2020 12:46 PM > To: dev@dpdk.org > Cc: Zhang, Qi Z ; Lu, Nannan ; > Fu, Qi ; Peng, Yuan > Subject: [PATCH v4 00/13] add switch filter support for intel DCF > > A DCF (Device Config Function) framework has been add for in

[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_switch_filter.c |

[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/ice

[dpdk-dev] [PATCH v4 10/13] net/ice: add more flow support for permission stage

2020-04-02 Thread Wei Zhao
This patch add switch filter permission stage support for more flow pattern in pf only pipeline mode. Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_swi

[dpdk-dev] [PATCH v4 13/13] net/ice: redirect switch rule to new VSI

2020-04-02 Thread Wei Zhao
After VF reset, VF's VSI number may be changed, the switch rule which forwards packet to the old VSI number should be redirected to the new VSI number. Signed-off-by: Beilei Xing --- drivers/net/ice/ice_dcf_parent.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) d

[dpdk-dev] [PATCH v4 05/13] net/ice: change default tunnle type

2020-04-02 Thread Wei Zhao
The default tunnle type for swicth filter change to new defination of ICE_SW_TUN_AND_NON_TUN in order that the rule will be apply to more packet type. Cc: sta...@dpdk.org Fixes: 47d460d63233 ("net/ice: rework switch filter") Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 3 ++

[dpdk-dev] [PATCH v4 04/13] net/ice: add support for MAC VLAN rule

2020-04-02 Thread Wei Zhao
This patch add support for MAC VLAN rule, it enable swicth filter to direct packet base on mac address and vlan id. Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/

[dpdk-dev] [PATCH v4 08/13] net/ice: add support for PFCP

2020-04-02 Thread Wei Zhao
This patch add switch filter support for PFCP packets, it enable swicth filter to direct ipv4/ipv6 packets with PFCP session or node payload to specific action. Signed-off-by: Wei Zhao --- drivers/net/ice/ice_generic_flow.c | 15 +++ drivers/net/ice/ice_generic_flow.h | 4 ++ drivers/net/

[dpdk-dev] [PATCH v4 07/13] net/ice: add support for ESP/AH/L2TP

2020-04-02 Thread Wei Zhao
This patch add support for ESP/AH/L2TP packets, it enable swicth filter to direct ipv6 packets with ESP/AH/L2TP payload to specific action. Signed-off-by: Wei Zhao --- drivers/net/ice/ice_generic_flow.c | 19 +++ drivers/net/ice/ice_generic_flow.h | 9 +++ drivers/net/ice/ice_switch_filte

[dpdk-dev] [PATCH v4 06/13] net/ice: add action number check for swicth

2020-04-02 Thread Wei Zhao
The action number can only be one for DCF or PF switch filter, not support multiple actions. Cc: sta...@dpdk.org Fixes: 47d460d63233 ("net/ice: rework switch filter") Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 48 + 1 file changed, 48 insertion

[dpdk-dev] [PATCH v4 03/13] net/ice: change swicth parser to support flexible mask

2020-04-02 Thread Wei Zhao
DCF need to make configuration of flexible mask, that is to say some iput set mask may be not 0x type all one bit. In order to direct L2/IP multicast packets, the mask for source IP maybe 0xF000, this patch enable switch filter parser for it. Signed-off-by: Wei Zhao --- drivers/net/ice/i

[dpdk-dev] [PATCH v4 02/13] net/ice: support for more PPPoE input set

2020-04-02 Thread Wei Zhao
This patch add more support for PPPoE packet, it enable swicth filter to direct PPPoE packet base on session id and PPP protocol type. Signed-off-by: Wei Zhao --- drivers/net/ice/ice_generic_flow.c | 13 + drivers/net/ice/ice_generic_flow.h | 9 drivers/net/ice/ice_switch_filter.c |

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

2020-04-02 Thread Wei Zhao
DCF on CVL is a control plane VF which take the responsibility to configure all the PF/global resources, this patch add support DCF on to program forward rule to direct packetS to VFs. Signed-off-by: Wei Zhao --- doc/guides/rel_notes/release_20_05.rst | 2 +- drivers/net/ice/ice_dcf_ethdev.c

[dpdk-dev] [PATCH v4 00/13] add switch filter support for intel DCF

2020-04-02 Thread Wei Zhao
A DCF (Device Config Function) framework has been add for intel device, this patch set add add switch filter support for it, this set also fix bugs which block this feature. This patchset is based on: [1] https://patchwork.dpdk.org/cover/66480/ : add Intel DCF PMD support Depends-on: series-8859

[dpdk-dev] [PATCH] [v1 1/1] examples/l2fwd: add cmdline option for forwarding port info

2020-04-02 Thread vattunuru
From: Vamsi Attunuru Current l2fwd application configures adjacent ports as destination ports for forwarding the traffic which is a kind of static mapping that can not be altered by the command line options. Patch adds a config option to pass the forwarding port pair mapping as a command line pa

Re: [dpdk-dev] [PATCH v3 10/13] net/ice: add more flow support for permit stage

2020-04-02 Thread Zhang, Qi Z
> -Original Message- > From: Zhao1, Wei > Sent: Friday, April 3, 2020 10:44 AM > To: dev@dpdk.org > Cc: Zhang, Qi Z ; Lu, Nannan ; > Fu, Qi ; Peng, Yuan ; Zhao1, Wei > > Subject: [PATCH v3 10/13] net/ice: add more flow support for permit stage > > This patch add switch filter permit s

Re: [dpdk-dev] [PATCH v3 08/13] net/ice: add support for PFCP

2020-04-02 Thread Zhao1, Wei
Ok > -Original Message- > From: Zhang, Qi Z > Sent: Friday, April 3, 2020 11:17 AM > To: Zhao1, Wei ; dev@dpdk.org > Cc: Lu, Nannan ; Fu, Qi ; Peng, Yuan > > Subject: RE: [PATCH v3 08/13] net/ice: add support for PFCP > > > > > -Original Message- > > From: Zhao1, Wei > > Sen

Re: [dpdk-dev] [PATCH v3 08/13] net/ice: add support for PFCP

2020-04-02 Thread Zhang, Qi Z
> -Original Message- > From: Zhao1, Wei > Sent: Friday, April 3, 2020 10:44 AM > To: dev@dpdk.org > Cc: Zhang, Qi Z ; Lu, Nannan ; > Fu, Qi ; Peng, Yuan ; Zhao1, Wei > > Subject: [PATCH v3 08/13] net/ice: add support for PFCP > > This patch add switch filter support for PFCP packets,

Re: [dpdk-dev] [dpdk-stable] [PATCH v2 2/2] examples/vmdq: fix RSS configuration

2020-04-02 Thread Wu, Jingjing
> > > + rss_hf_tmp = port_conf.rx_adv_conf.rss_conf.rss_hf; > > > + port_conf.rx_adv_conf.rss_conf.rss_hf &= > > > + dev_info.flow_type_rss_offloads; > > > + if (port_conf.rx_adv_conf.rss_conf.rss_hf != rss_hf_tmp) { > > > + printf("Port %u modified RSS hash function based on hardwa

Re: [dpdk-dev] [PATCH v3 06/13] net/ice: add action number check for swicth

2020-04-02 Thread Zhang, Qi Z
> -Original Message- > From: Zhao1, Wei > Sent: Friday, April 3, 2020 10:44 AM > To: dev@dpdk.org > Cc: Zhang, Qi Z ; Lu, Nannan ; > Fu, Qi ; Peng, Yuan ; > sta...@dpdk.org; Zhao1, Wei > Subject: [PATCH v3 06/13] net/ice: add action number check for swicth > > The action number can on

[dpdk-dev] [PATCH v3 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 v3 13/13] net/ice: redirect switch rule to new VSI

2020-04-02 Thread Wei Zhao
After VF reset, VF's VSI number may be changed, the switch rule which forwards packet to the old VSI number should be redirected to the new VSI number. Signed-off-by: Beilei Xing --- drivers/net/ice/ice_dcf_parent.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) d

[dpdk-dev] [PATCH v3 10/13] net/ice: add more flow support for permit stage

2020-04-02 Thread Wei Zhao
This patch add switch filter permit stage support for more flow pattern in pf only pipeline mode. Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_

[dpdk-dev] [PATCH v3 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_switch_filter.c |

[dpdk-dev] [PATCH v3 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/ice

[dpdk-dev] [PATCH v3 07/13] net/ice: add support for ESP/AH/L2TP

2020-04-02 Thread Wei Zhao
This patch add support for ESP/AH/L2TP packets, it enable swicth filter to direct ipv6 packets with ESP/AH/L2TP payload to specific action. Signed-off-by: Wei Zhao --- drivers/net/ice/ice_generic_flow.c | 19 +++ drivers/net/ice/ice_generic_flow.h | 9 +++ drivers/net/ice/ice_switch_filte

[dpdk-dev] [PATCH v3 08/13] net/ice: add support for PFCP

2020-04-02 Thread Wei Zhao
This patch add switch filter support for PFCP packets, it enable swicth filter to direct ipv4/ipv6 packets with PFCP session or node payload to specific action. Signed-off-by: Wei Zhao --- drivers/net/ice/ice_generic_flow.c | 15 +++ drivers/net/ice/ice_generic_flow.h | 6 +++ drivers/net

[dpdk-dev] [PATCH v3 05/13] net/ice: change default tunnle type

2020-04-02 Thread Wei Zhao
The default tunnle type for swicth filter change to new defination of ICE_SW_TUN_AND_NON_TUN in order that the rule will be apply to more packet type. Cc: sta...@dpdk.org Fixes: 47d460d63233 ("net/ice: rework switch filter") Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 3 ++

[dpdk-dev] [PATCH v3 03/13] net/ice: change swicth parser to support flexible mask

2020-04-02 Thread Wei Zhao
DCF need to make configuration of flexible mask, that is to say some iput set mask may be not 0x type all one bit. In order to direct L2/IP multicast packets, the mask for source IP maybe 0xF000, this patch enable switch filter parser for it. Signed-off-by: Wei Zhao --- drivers/net/ice/i

[dpdk-dev] [PATCH v3 02/13] net/ice: support for more PPPoE input set

2020-04-02 Thread Wei Zhao
This patch add more support for PPPoE packet, it enable swicth filter to direct PPPoE packet base on session id and PPP protocol type. Signed-off-by: Wei Zhao --- drivers/net/ice/ice_generic_flow.c | 13 + drivers/net/ice/ice_generic_flow.h | 9 drivers/net/ice/ice_switch_filter.c |

[dpdk-dev] [PATCH v3 06/13] net/ice: add action number check for swicth

2020-04-02 Thread Wei Zhao
The action number can only be one for DCF or PF switch filter, not support not support multiple actions. Cc: sta...@dpdk.org Fixes: 47d460d63233 ("net/ice: rework switch filter") Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 48 + 1 file changed,

[dpdk-dev] [PATCH v3 01/13] net/ice: enable switch flow on DCF

2020-04-02 Thread Wei Zhao
DCF on CVL is a control plane VF which take the responsibility to configure all the PF/global resources, this patch add support DCF on to program forward rule to direct packetS to VFs. Signed-off-by: Wei Zhao --- doc/guides/rel_notes/release_20_05.rst | 2 +- drivers/net/ice/ice_dcf_ethdev.c

[dpdk-dev] [PATCH v3 04/13] net/ice: add support for MAC VLAN rule

2020-04-02 Thread Wei Zhao
This patch add support for MAC VLAN rule, it enable swicth filter to direct packet base on mac address and vlan id. Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/

[dpdk-dev] [PATCH v3 00/13] add switch filter support for intel DCF

2020-04-02 Thread Wei Zhao
A DCF (Device Config Function) framework has been add for intel device, this patch set add add switch filter support for it, this set also fix bugs which block this feature. This patchset is based on: [1] https://patchwork.dpdk.org/cover/66480/ : add Intel DCF PMD support Depends-on: series-8859

[dpdk-dev] [PATCH v3] examples/ipsec-secgw: support 192/256 AES key sizes

2020-04-02 Thread Anoob Joseph
Adding support for the following, 1. AES-192-GCM 2. AES-256-GCM 3. AES-192-CBC Signed-off-by: Anoob Joseph Signed-off-by: Tejasree Kondoj --- v3: * Fixed incorrect AES-GCM key length being printed during app startup * Introduced new macro 'SALT_SIZE' to make the usage more obvious (AES-GCM key

[dpdk-dev] [PATCH] [v1 1/1] net/octeontx2: add routines to set/clear interrupt enable registers

2020-04-02 Thread vattunuru
From: Vamsi Attunuru Patch adds routines to set/clear nix lf error & ras interrupt enable registers. These nix lf error interrupts get triggered if there are any failures during nix lf configuration. This interrupts are enabled before any hardware configurations initiated on the allocated nix lf.

Re: [dpdk-dev] [PATCH v2 06/13] net/ice: add action number check for swicth

2020-04-02 Thread Lu, Nannan
Tested-by: Lu, Nannan -Original Message- From: Zhao1, Wei Sent: Thursday, April 2, 2020 2:46 PM To: dev@dpdk.org Cc: Zhang, Qi Z ; Peng, Yuan ; Lu, Nannan ; Fu, Qi ; Wang, Haiyue ; sta...@dpdk.org; Zhao1, Wei Subject: [PATCH v2 06/13] net/ice: add action number check for swicth The a

Re: [dpdk-dev] [dpdk-stable] [PATCH v2 2/2] examples/vmdq: fix RSS configuration

2020-04-02 Thread Li, Xiaoyun
> -Original Message- > From: stable On Behalf Of Wu, Jingjing > Sent: Friday, April 3, 2020 08:08 > To: Jiang, JunyuX ; dev@dpdk.org > Cc: Yang, Qiming ; Yigit, Ferruh > ; Jiang, JunyuX ; > sta...@dpdk.org > Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v2 2/2] examples/vmdq: fix RSS > co

Re: [dpdk-dev] [PATCH v2 1/2] doc: add user guide for VMDq

2020-04-02 Thread Wu, Jingjing
> -Original Message- > From: dev On Behalf Of Junyu Jiang > Sent: Wednesday, March 25, 2020 2:33 PM > To: dev@dpdk.org > Cc: Yang, Qiming ; Yigit, Ferruh > ; Jiang, > JunyuX > Subject: [dpdk-dev] [PATCH v2 1/2] doc: add user guide for VMDq > > currently, there is no documentation for

Re: [dpdk-dev] [PATCH v2 2/2] examples/vmdq: fix RSS configuration

2020-04-02 Thread Wu, Jingjing
> -Original Message- > From: dev On Behalf Of Junyu Jiang > Sent: Wednesday, March 25, 2020 2:33 PM > To: dev@dpdk.org > Cc: Yang, Qiming ; Yigit, Ferruh > ; Jiang, > JunyuX ; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH v2 2/2] examples/vmdq: fix RSS configuration > > In order that al

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

2020-04-02 Thread Zhao1, Wei
Ok. > -Original Message- > From: Zhang, Qi Z > Sent: Thursday, April 2, 2020 4:45 PM > To: Zhao1, Wei ; dev@dpdk.org > Cc: Peng, Yuan ; Lu, Nannan ; > Fu, Qi ; Wang, Haiyue > Subject: RE: [PATCH v2 09/13] net/ice: add support for NAT-T > > > > > -Original Message- > > From: Z

[dpdk-dev] [PATCH v2 9/9] ring: add C11 memory model for new sync modes

2020-04-02 Thread Konstantin Ananyev
Add C11 atomics based implementation for RTS and HTS head/tail update primitivies. Signed-off-by: Konstantin Ananyev --- lib/librte_ring/Makefile | 4 +- lib/librte_ring/meson.build| 2 + lib/librte_ring/rte_ring_hts.h | 4 + lib/librte_ring/rte_ring_hts_c

[dpdk-dev] [PATCH v2 8/9] test/ring: add stress test for MT peek API

2020-04-02 Thread Konstantin Ananyev
Introduce new test case to test MT peek API. Signed-off-by: Konstantin Ananyev --- app/test/Makefile| 1 + app/test/meson.build | 1 + app/test/test_ring_peek_stress.c | 43 app/test/test_ring_stress.c | 3 +++ app/test/test_ri

[dpdk-dev] [PATCH v2 5/9] ring: introduce HTS ring mode

2020-04-02 Thread Konstantin Ananyev
Introduce head/tail sync mode for MT ring synchronization. In that mode enqueue/dequeue operation is fully serialized: only one thread at a time is allowed to perform given op. Suppose to reduce stall times in case when ring is used on overcommitted cpus (multiple active threads on the same cpu).

[dpdk-dev] [PATCH v2 4/9] test/ring: add contention stress test for RTS ring

2020-04-02 Thread Konstantin Ananyev
Introduce new test case to test RTS ring mode under contention. Signed-off-by: Konstantin Ananyev --- app/test/Makefile | 1 + app/test/meson.build| 1 + app/test/test_ring_rts_stress.c | 32 app/test/test_ring_stress.c | 3 +++ a

[dpdk-dev] [PATCH v2 7/9] ring: introduce peek style API

2020-04-02 Thread Konstantin Ananyev
For rings with producer/consumer in RTE_RING_SYNC_ST, RTE_RING_SYNC_MT_HTS mode, provide an ability to split enqueue/dequeue operation into two phases: - enqueue/dequeue start - enqueue/dequeue finish That allows user to inspect objects in the ring without removing them from it (aka MT

[dpdk-dev] [PATCH v2 2/9] ring: prepare ring to allow new sync schemes

2020-04-02 Thread Konstantin Ananyev
Change from *single* to *sync_type* to allow different synchronisation schemes to be applied. Mark *single* as deprecated in comments. Add new functions to allow user to query ring sync types. Replace direct access to *single* with appopriate function call. Signed-off-by: Konstantin Ananyev ---

[dpdk-dev] [PATCH v2 6/9] test/ring: add contention stress test for HTS ring

2020-04-02 Thread Konstantin Ananyev
Introduce new test case to test HTS ring mode under contention. Signed-off-by: Konstantin Ananyev --- app/test/Makefile | 1 + app/test/meson.build| 1 + app/test/test_ring_hts_stress.c | 32 app/test/test_ring_stress.c | 3 +++ a

[dpdk-dev] [PATCH v2 3/9] ring: introduce RTS ring mode

2020-04-02 Thread Konstantin Ananyev
Introduce relaxed tail sync (RTS) mode for MT ring synchronization. Aim to reduce stall times in case when ring is used on overcommited cpus (multiple active threads on the same cpu). The main difference from original MP/MC algorithm is that tail value is increased not by every thread that finished

[dpdk-dev] [PATCH v2 1/9] test/ring: add contention stress test

2020-04-02 Thread Konstantin Ananyev
Introduce new test-case to measure ring perfomance under contention (miltiple producers/consumers). Starts dequeue/enqueue loop on all available slave lcores. Signed-off-by: Konstantin Ananyev --- app/test/Makefile| 2 + app/test/meson.build | 2 + app/test/test_r

[dpdk-dev] [PATCH v2 0/9] New sync modes for ring

2020-04-02 Thread Konstantin Ananyev
V1 - v2 changes: 1. Fix compilation issues 2. Add C11 atomics support 3. Updates devtools/libabigail.abignore (workaround) RFC - V1 changes: 1. remove ABI brekage (at least I hope I did) 2. Add support for ring_elem 3. Rework peek related API a bit 4. Rework test to make it less verbose and unite

Re: [dpdk-dev] [RFC] ethdev: use special speed for virtual Ethernetdevices

2020-04-02 Thread Thomas Monjalon
02/04/2020 22:41, Ivan Dyukov: > 02.04.2020 16:50, Morten Brørup пишет: > Yes, if speed is unknown, it should be reported as 0. > > > > Could the DPDK vNIC PMDs be updated accordingly? At least the virtio > > driver... > > Current version of dpdk code on master always returns 10G speed for

Re: [dpdk-dev] [PATCH 05/13] app/test: introduce librte_security tests

2020-04-02 Thread Thomas Monjalon
02/04/2020 21:49, Lukasz Wojciechowski: > > W dniu 01.04.2020 o 19:51, Thomas Monjalon pisze: > > 01/04/2020 19:09, Akhil Goyal: > >> Hi Lukasz, > >> > >>> This patch introduces set of unit tests of librte_security API functions. > >>> Tests are added to dpdk-test application and can be run with >

Re: [dpdk-dev] [RFC] ethdev: use special speed for virtual Ethernetdevices

2020-04-02 Thread Ivan Dyukov
02.04.2020 16:50, Morten Brørup пишет: >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ivan Dyukov >> Sent: Thursday, April 2, 2020 2:54 PM >> >> 01.04.2020 13:06, Morten Brørup пишет: From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Thomas Monjalon Sent: Wednesday, April 1, 2

Re: [dpdk-dev] [PATCH v8 2/5] net/virtio: add link speed devarg

2020-04-02 Thread Ivan Dyukov
02.04.2020 20:33, Thomas Monjalon пишет: > 02/04/2020 11:18, Ivan Dyukov: >> Hello Thomas, >> >> 01.04.2020 13:57, Thomas Monjalon пишет: >>> 30/03/2020 09:57, Ivan Dyukov: Some applications like pktgen use link speed to calculate transmission rate. It limits outcome traffic to hardcoded

Re: [dpdk-dev] [PATCH v2 1/2] test/malloc: run realloc tests on external heap

2020-04-02 Thread David Christensen
On 4/2/20 2:02 AM, Anatoly Burakov wrote: Due to the fact that the rte_realloc() test depends on the layout of underlying memory, it can sometimes fail due to fragmentation of the memory. To address this, make it so that the realloc autotests are run using a newly created external memory heap

[dpdk-dev] DTS Config NIC | Test Nic Single Core Perf ISSUE

2020-04-02 Thread David Liu
Hi Lijuan, We are currently having issues with the Test Nic Single Core Perf Test. First we have issues with fortville_eagle was not in the set_up_all in the TestSuite_nic_single_core_perf.py. So we added fortville_eagle': {64: {512: 0.00, 2048: 0.00}} to the Test Nic Single Core Perf configurati

Re: [dpdk-dev] [PATCH 05/13] app/test: introduce librte_security tests

2020-04-02 Thread Lukasz Wojciechowski
W dniu 01.04.2020 o 19:51, Thomas Monjalon pisze: > 01/04/2020 19:09, Akhil Goyal: >> Hi Lukasz, >> >>> This patch introduces set of unit tests of librte_security API functions. >>> Tests are added to dpdk-test application and can be run with >>> "security_autotest" runtime command. >>> >>> This

[dpdk-dev] [PATCH] app/eventdev: validate producer type used

2020-04-02 Thread Pavan Nikhilesh
From: Pavan Nikhilesh Validate the producer type used for pipeline and order test suites. Signed-off-by: Pavan Nikhilesh --- app/test-eventdev/evt_options.h | 16 app/test-eventdev/test_order_common.c| 6 -- app/test-eventdev/test_pipeline_common.c | 7 +

[dpdk-dev] [PATCH v2 10/11] net/octeontx2: add Tx queue ratelimit callback

2020-04-02 Thread Nithin Dabilpuram
From: Krzysztof Kanas Add Tx queue ratelimiting support. This support is mutually exclusive with TM support i.e when TM is configured, tx queue ratelimiting config is no more valid. Signed-off-by: Krzysztof Kanas Signed-off-by: Nithin Dabilpuram --- drivers/net/octeontx2/otx2_ethdev.c | 1 +

[dpdk-dev] [PATCH v2 11/11] net/octeontx2: add tm capability callbacks

2020-04-02 Thread Nithin Dabilpuram
From: Krzysztof Kanas Add Traffic Management capability callbacks to provide global, level and node capabilities. This patch also adds documentation on Traffic Management Support. Signed-off-by: Nithin Dabilpuram Signed-off-by: Krzysztof Kanas --- doc/guides/nics/features/octeontx2.ini | 1

[dpdk-dev] [PATCH v2 08/11] net/octeontx2: add tm dynamic topology update cb

2020-04-02 Thread Nithin Dabilpuram
From: Nithin Dabilpuram Add dynamic parent and shaper update callbacks that can be used to change RR Quantum or PIR/CIR rate dynamically post hierarchy commit. Dynamic parent update callback only supports updating RR quantum of a given child with respect to its parent. There is no support yet to

[dpdk-dev] [PATCH v2 09/11] net/octeontx2: add tm debug support

2020-04-02 Thread Nithin Dabilpuram
From: Nithin Dabilpuram Add debug support to TM to dump configured topology and registers. Also enable debug dump when sq flush fails. Signed-off-by: Nithin Dabilpuram Signed-off-by: Krzysztof Kanas --- drivers/net/octeontx2/otx2_ethdev.h | 1 + drivers/net/octeontx2/otx2_ethdev_debug

[dpdk-dev] [PATCH v2 06/11] net/octeontx2: add tm hierarchy commit callback

2020-04-02 Thread Nithin Dabilpuram
From: Nithin Dabilpuram Add TM hierarchy commit callback to support enabling newly created topology. Signed-off-by: Nithin Dabilpuram Signed-off-by: Krzysztof Kanas --- drivers/net/octeontx2/otx2_tm.c | 173 1 file changed, 173 insertions(+) diff --gi

[dpdk-dev] [PATCH v2 05/11] net/octeontx2: add tm node suspend and resume cb

2020-04-02 Thread Nithin Dabilpuram
From: Krzysztof Kanas Add TM support to suspend and resume nodes post hierarchy commit. Signed-off-by: Krzysztof Kanas Signed-off-by: Nithin Dabilpuram --- drivers/net/octeontx2/otx2_tm.c | 81 + 1 file changed, 81 insertions(+) diff --git a/drivers/ne

[dpdk-dev] [PATCH v2 07/11] net/octeontx2: add tm stats and shaper profile cbs

2020-04-02 Thread Nithin Dabilpuram
From: Nithin Dabilpuram Add TM support for stats read and private shaper profile addition or deletion. Signed-off-by: Nithin Dabilpuram Signed-off-by: Krzysztof Kanas --- drivers/net/octeontx2/otx2_tm.c | 272 drivers/net/octeontx2/otx2_tm.h | 4 + 2

[dpdk-dev] [PATCH v2 03/11] net/octeontx2: add dynamic topology update support

2020-04-02 Thread Nithin Dabilpuram
From: Nithin Dabilpuram Modify resource allocation and freeing logic to support dynamic topology commit while to traffic is flowing. This patch also modifies SQ flush to timeout based on minimum shaper rate configured. SQ flush is further split to pre/post functions to adhere to HW spec of 96XX C

[dpdk-dev] [PATCH v2 04/11] net/octeontx2: add tm node add and delete cb

2020-04-02 Thread Nithin Dabilpuram
From: Nithin Dabilpuram Adds support to Traffic Management callbacks "node_add" and "node_delete". These callbacks doesn't support dynamic node addition or deletion post hierarchy commit. Signed-off-by: Nithin Dabilpuram Signed-off-by: Krzysztof Kanas --- drivers/net/octeontx2/otx2_tm.c | 271

[dpdk-dev] [PATCH v2 02/11] net/octeontx2: restructure tm helper functions

2020-04-02 Thread Nithin Dabilpuram
From: Nithin Dabilpuram Restructure traffic manager helper function by splitting to multiple sets of register configurations like shaping, scheduling and topology config. Signed-off-by: Nithin Dabilpuram Signed-off-by: Krzysztof Kanas --- drivers/net/octeontx2/otx2_tm.c | 689

[dpdk-dev] [PATCH v2 01/11] net/octeontx2: setup link config based on BP level

2020-04-02 Thread Nithin Dabilpuram
From: Nithin Dabilpuram Configure NIX_AF_TL3_TL2X_LINKX_CFG using schq at level based on NIX_AF_PSE_CHANNEL_LEVEL[BP_LEVEL]. Signed-off-by: Nithin Dabilpuram --- drivers/net/octeontx2/otx2_ethdev.h | 1 + drivers/net/octeontx2/otx2_tm.c | 16 +++- 2 files changed, 16 insertion

[dpdk-dev] [PATCH v2 00/11] net/octeontx2: add traffic manager support

2020-04-02 Thread Nithin Dabilpuram
From: Nithin Dabilpuram Add support to traffic management api in OCTEON TX2 PMD. This support applies to CN96xx of C0 silicon version. This series depends on http://patchwork.dpdk.org/patch/66344/ Depends-on:series-8815 v2: * Update release notes of 20.05 * Prefix tm function pointers to start

[dpdk-dev] [PATCH 2/4] net/mlx5: modify net PMD to use common multi-process APIs

2020-04-02 Thread Vu Pham
From: Vu Pham Modify net PMD to use multi-process IPC APIs from common driver. Signed-off-by: Vu Pham Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/Makefile| 3 +- drivers/common/mlx5/meson.build | 1 + drivers/net/mlx5/mlx5.c | 15 ++- drivers/net/mlx5/mlx5.h

[dpdk-dev] [PATCH 4/4] net/mlx5: modify net PMD to use common memory management driver

2020-04-02 Thread Vu Pham
From: Vu Pham Modify mlx5 net PMD driver to use memory managment APIs from common driver. Signed-off-by: Vu Pham Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/Makefile |1 + drivers/common/mlx5/meson.build |1 + drivers/net/mlx5/mlx5.c |4 +- drivers/net/mlx

[dpdk-dev] [PATCH 0/4] refactor multi-process IPC and memory management codes to common driver

2020-04-02 Thread Vu Pham
From: Vu Pham Current mlx5 net PMD and future mlx5(regex,...) PMDs that run and share the same HCAs need to use common memory management driver. Memory management codes embeddedly use multi-process IPC for primary/secondary processes to register and sync on memory registrations MRs. That's the ma

[dpdk-dev] [PATCH 3/4] common/mlx5: refactor memory management codes

2020-04-02 Thread Vu Pham
From: Vu Pham Refactor common memory btree and cache management to common driver. Replace some input parameters of MR APIs to more common datastructure like PD, port_id, share_cache,... so that muliptle PMD drivers can use those MR APIs. Signed-off-by: Vu Pham Acked-by: Viacheslav Ovsiienko --

[dpdk-dev] [PATCH 1/4] common/mlx5: refactor multi-process IPC handling codes to common driver

2020-04-02 Thread Vu Pham
From: Vu Pham Refactor common multi-process handling codes from net PMD to common driver. Using tuple mp_id{name, port_id} as standard input parameter for all multi-process IPC APIs instead of using rte_eth_dev. Signed-off-by: Vu Pham Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/mlx

[dpdk-dev] [PATCH v4] ethdev: fix for compiler warning when vtune profiling is on

2020-04-02 Thread eugeny . parshutin
From: Eugeny Parshutin Add the previous prototype for the 'profile_hook_rx_burst_cb' function to fix the compiler warning when the DPDK is built with 'RTE_ETHDEV_PROFILE_WITH_VTUNE' config option enabled: /home/dpdk/lib/librte_ethdev/ethdev_profile.c:17:1: warning: no previous prototype for profi

[dpdk-dev] [PATCH v2 2/2] build: makefile make experimental tag as global

2020-04-02 Thread Jerin Jacob
From: Pavan Nikhilesh Make allow_experimental_api global across lib, drivers and apps. Signed-off-by: Pavan Nikhilesh --- app/test-bbdev/Makefile| 1 - app/test-compress-perf/Makefile| 1 - app/test-crypto-perf/Makefile | 1 - app/test-fib/Makefile

[dpdk-dev] [PATCH v2 1/2] build: meson make experimental tag as global

2020-04-02 Thread Jerin Jacob
From: Pavan Nikhilesh Meson make allow_experimental_api global across lib, drivers and apps. Signed-off-by: Pavan Nikhilesh --- Based on discussion at http://mails.dpdk.org/archives/dev/2020-April/161527.html v2 Changes: - Remove comments containing experimental API list. app/meson.buil

[dpdk-dev] [PATCH v3] ethdev: fix for compiler warning when vtune profiling is on

2020-04-02 Thread eugeny . parshutin
From: Eugeny Parshutin Add the previous prototype for the 'profile_hook_rx_burst_cb' function to fix the compiler warning when the DPDK is built with 'RTE_ETHDEV_PROFILE_WITH_VTUNE' config option enabled: /home/dpdk/lib/librte_ethdev/ethdev_profile.c:17:1: warning: no previous prototype for profi

[dpdk-dev] [PATCH 2/3] net/mlx5: enable MPRQ multi-stride operations

2020-04-02 Thread Alexander Kozyrev
MPRQ feature should be updated to allow a packet to be received into multiple strides in order to support the MTU exceeding 8KB. Special care is needed to prevent the headroom corruption in the multi-stride mode since the headroom space is borrowed by the PMD from the tail of the preceding stride.

[dpdk-dev] [PATCH 1/3] net/mlx5: add a devarg to specify MPRQ stride size

2020-04-02 Thread Alexander Kozyrev
Define a device parameter to configure log 2 of a stride size for MPRQ - mprq_log_stride_size. User is able to specify a stride size in a range allowed by an underlying hardware. The default stride size is defined as 2048 bytes to encompass most commonly used packet sizes in the Internet (MTU 1518

[dpdk-dev] [PATCH 0/3] net/mlx5: add large packet size support to MPRQ

2020-04-02 Thread Alexander Kozyrev
In order to support the 9K MTU the MPRQ feature should be updated to allow a packet to take more than one stride (single linear buffer). Receiving a packet into multiple adjacent strides should be implemented. The reason preventing the packet to be received into multiple strides is that the data bu

[dpdk-dev] [PATCH 3/3] net/mlx5: add multi-segment packets in MPRQ mode

2020-04-02 Thread Alexander Kozyrev
The multi-stride operations now allow to reduce a stride size while supporting Jumbo frames. That means that it is possible to have mbufs configured with a size smaller than the whole packet received. It is not an issue during normal MPRQ operations since we attach external buffers instead of copyi

Re: [dpdk-dev] [EXT] [PATCH v3] examples/ipsec-secgw: support flow director feature

2020-04-02 Thread Shetty, Praveen
Hi Anoob, See my response inline. Regards, Praveen -Original Message- From: Anoob Joseph Sent: Thursday, April 2, 2020 7:09 PM To: Shetty, Praveen ; dev@dpdk.org; Doherty, Declan Cc: Iremonger, Bernard ; Ananyev, Konstantin Subject: RE: [EXT] [PATCH v3] examples/ipsec-secgw: supp

[dpdk-dev] DPDK Release Status Meeting 2/04/2020

2020-04-02 Thread Ferruh Yigit
Minutes 2 April 2020 Agenda: * Release Dates * Subtrees * Opens Participants: * Arm * Debian/Microsoft * Intel * Marvell * Mellanox * NXP * Red Hat Release Dates - * v20.05 dates: * Integration/Merge/RC1: Friday 17 April 2020 * Release:

Re: [dpdk-dev] [PATCH v8 2/5] net/virtio: add link speed devarg

2020-04-02 Thread Thomas Monjalon
02/04/2020 11:18, Ivan Dyukov: > Hello Thomas, > > 01.04.2020 13:57, Thomas Monjalon пишет: > > 30/03/2020 09:57, Ivan Dyukov: > >> Some applications like pktgen use link speed to calculate > >> transmission rate. It limits outcome traffic to hardcoded 10G. > >> > >> This patch adds speed devarg w

[dpdk-dev] [PATCH v3 6/6] examples/tep_termination: rework the port setup logic

2020-04-02 Thread Stephen Hemminger
The handling of ports in this application had many problems. It was checking for things that can never happen with current DPDK library (like rte_ethdev_avail_count() >= RTE_MAX_ETHPORTS) and it was not checking if the port was owned and should not be used directly. Also the variable nb_ports was u

  1   2   3   >