Re: [dpdk-dev] Getting issue while bringin Bond with VMXNET3 (DPDK 17.11)

2018-10-08 Thread chetan bhasin
Thanks for your reply . The issue coming in function "vmxnet3_dev_tx_queue_setup" below if condition is true because "tx_conf->txq_flags is coming as 0" if ((tx_conf->txq_flags & ETH_TXQ_FLAGS_NOXSUMSCTP) != ETH_TXQ_FLAGS_NOXSUMSCTP) { PMD_INIT_LOG(ERR, "SCTP checksum offload

Re: [dpdk-dev] [PATCH v8] net/pcap: physical interface MAC address support

2018-10-08 Thread Kuusisaari, Juhamatti (Infinera - FI/Espoo)
> -Original Message- > From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] > Sent: Saturday, October 06, 2018 3:50 AM > To: Bruce Richardson ; John McNamara > ; Marko Kovacevic > > Cc: dev@dpdk.org; Ferruh Yigit ; Juhamatti > Kuusisaari ; Juhamatti Kuusisaari > > Subject: [PATCH v8] net

Re: [dpdk-dev] [PATCH v3 1/3] ring: read tail using atomic load

2018-10-08 Thread Honnappa Nagarahalli
> > > On 07/10/2018, 06:03, "Jerin Jacob" > wrote: > > > > > > In arm64 case, it will have ATOMIC_RELAXED followed by asm > > volatile > ("":::"memory") of rte_pause(). > > > I would n't have any issue, if the generated code code is same or > better than the exiting case.

[dpdk-dev] [PATCH 0/4] support more ethdev iterator filters

2018-10-08 Thread Thomas Monjalon
The new ethdev iterator lacks the support of filtering by representor port id or by MAC address. This series is not fully tested yet. Thomas Monjalon (4): kvargs: support list value mk: remove broken check ethdev: move representor parsing functions ethdev: support representor id for itera

[dpdk-dev] [PATCH 1/4] kvargs: support list value

2018-10-08 Thread Thomas Monjalon
If a value contains a comma, rte_kvargs_tokenize() will split here. In order to support list syntax [a,b] as value, an extra parsing of the square brackets is added. Signed-off-by: Thomas Monjalon --- lib/librte_kvargs/rte_kvargs.c | 10 ++ test/test/test_kvargs.c| 17 +++

[dpdk-dev] [PATCH 2/4] mk: remove broken check

2018-10-08 Thread Thomas Monjalon
Next patch does not pass the experimental check because it has an (unrelated) experimental function in his context. Cc: Neil Horman Signed-off-by: Thomas Monjalon --- mk/internal/rte.compile-pre.mk | 1 - 1 file changed, 1 deletion(-) diff --git a/mk/internal/rte.compile-pre.mk b/mk/internal/

[dpdk-dev] [PATCH 4/4] ethdev: support representor id for iterating ports

2018-10-08 Thread Thomas Monjalon
The representor id is added in rte_eth_dev_data in order to be able to match a port with its representor id in devargs. Signed-off-by: Thomas Monjalon --- drivers/net/i40e/i40e_vf_representor.c | 1 + drivers/net/ixgbe/ixgbe_vf_representor.c | 1 + drivers/net/mlx5/mlx5.c |

[dpdk-dev] [PATCH 3/4] ethdev: move representor parsing functions

2018-10-08 Thread Thomas Monjalon
The functions for representor devargs parsing were static in the file rte_ethdev.c. In order to reuse them in the file rte_class_eth.c, they are moved to the files ethdev_private.c/.h. Signed-off-by: Thomas Monjalon --- lib/librte_ethdev/ethdev_private.c | 82 lib/li

Re: [dpdk-dev] Getting issue while bringin Bond with VMXNET3 (DPDK 17.11)

2018-10-08 Thread Chas Williams
Any other error messages? There's really only one path out of slave_configure() that doesn't emit another error message and that's slave_configure_slow_queue. You need to set dedicated_queues to be enabled to see that happen. On 10/07/18 01:12, chetan bhasin wrote: Can anybody suggest? Stuc

[dpdk-dev] [PATCH v2 3/6] ethdev: allow iterating with pure class filter

2018-10-08 Thread Thomas Monjalon
If no rte_device is given in the iterator, eth_dev_match() is looking at all ports without any restriction, except the ethdev kvargs filter. It allows to iterate with a devargs filter referencing only some ethdev parameters. The format (from the new devargs syntax) is: class=eth,paramY=Y

[dpdk-dev] [PATCH v2 4/6] doc: replace doxygen example in contribution guide

2018-10-08 Thread Thomas Monjalon
The provided example of doxygen header is about a deprecated function. It is replaced by rte_spinlock_trylock() which is small and good enough for the purpose. Signed-off-by: Thomas Monjalon --- doc/guides/contributing/documentation.rst | 15 +-- 1 file changed, 5 insertions(+), 10 d

[dpdk-dev] [PATCH v2 6/6] eal: remove deprecated attach/detach functions

2018-10-08 Thread Thomas Monjalon
These hotplug functions were deprecated and have some new replacements. As announced earlier, the oldest ones are now removed. Signed-off-by: Thomas Monjalon --- doc/guides/rel_notes/deprecation.rst| 5 --- doc/guides/rel_notes/release_18_11.rst | 6 +++ lib/librte_eal/common/eal_common_d

[dpdk-dev] [PATCH v2 5/6] ethdev: remove deprecated attach/detach functions

2018-10-08 Thread Thomas Monjalon
The hotplug attach/detach features are implemented in EAL layer. There is a new ethdev iterator to retrieve ports from ethdev layer. As announced earlier, the (buggy) ethdev functions are now removed. Signed-off-by: Thomas Monjalon --- app/test-pmd/testpmd.c| 17 ++- ..

[dpdk-dev] [PATCH v2 1/6] bus/vdev: add iteration filter on name

2018-10-08 Thread Thomas Monjalon
A virtual device can be matched with following syntax: bus=vdev,name=X Signed-off-by: Thomas Monjalon --- drivers/bus/vdev/vdev_params.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/bus/vdev/vdev_params.c b/drivers/bus/vdev/vdev_params.

[dpdk-dev] [PATCH v2 2/6] ethdev: add iterator to match devargs input

2018-10-08 Thread Thomas Monjalon
The iterator will return the ethdev port ids matching a devargs string. It is recommended to use the macro RTE_ETH_FOREACH_MATCHING_DEV() for usage convenience. The class string is prefixed with '+' in order to skip the validation of the parameter keys. It is tolerated for the compatibility with t

[dpdk-dev] [PATCH v2 0/6] replace attach/detach functions

2018-10-08 Thread Thomas Monjalon
The functions for EAL attach/detach had already some replacements, so they are removed. The functions for ethdev attach/detach are removed and replaced thanks to a new ethdev iterator working with devargs. rte_eth_dev_attach(devargs, &port_id) is replaced by: rte_dev_probe(devargs); RT

Re: [dpdk-dev] [PATCH] lib/librte_ethdev: expand queue threshold size of RED parameters

2018-10-08 Thread Xu, Rosen
> -Original Message- > From: Dumitrescu, Cristian > Sent: Tuesday, October 09, 2018 0:00 > To: Xu, Rosen ; dev@dpdk.org > Cc: Lu, Wenzhuo ; Singh, Jasvinder > ; jerin.ja...@caviumnetworks.com; Yigit, > Ferruh > Subject: RE: [PATCH] lib/librte_ethdev: expand queue threshold size of RED > pa

Re: [dpdk-dev] [PATCH] net/ifc: fix build with type virtio16

2018-10-08 Thread Thomas Monjalon
08/10/2018 14:52, Ferruh Yigit: > On 10/8/2018 5:32 AM, Xiao Wang wrote: > > The typedef of "__virtio16" is introduced into Linux kernel in v3.19. > > To prevent build error on old kernel, this patch replaces the > > "__virtio" usage with "uint16_t". > > > > Fixes: d7fe5a2861e7 ("net/ifc: support

[dpdk-dev] [RFC] DFS (DPDK Filesystem)

2018-10-08 Thread Wiles, Keith
Hi Everyone, I would like to request comments on DFS as I presented at the DPDK summit in Ireland. As we know DPDK can be difficult to manage at run time and as DPDK becomes more dynamic we need to address how to configure and monitor DPDK and DPDK-based applications. A possible solution is t

[dpdk-dev] [PATCH] failsafe: use prefix for set_burst_fn

2018-10-08 Thread Stephen Hemminger
All other visible functions in failsafe driver have 'failsafe_' prefix. Signed-off-by: Stephen Hemminger --- drivers/net/failsafe/failsafe_ether.c | 2 +- drivers/net/failsafe/failsafe_private.h | 4 ++-- drivers/net/failsafe/failsafe_rxtx.c| 2 +- 3 files changed, 4 insertions(+), 4 delet

Re: [dpdk-dev] [PATCH] net/mlx5: eswitch-IP address UDP/TCP port rewrite

2018-10-08 Thread Yongseok Koh
On Mon, Oct 08, 2018 at 07:22:03PM +0800, Xiaoyu Min wrote: > On 18-10-02 04:19:00, Yongseok Koh wrote: > > On Sun, Sep 30, 2018 at 03:21:04PM +0800, Xiaoyu Min wrote: > > > On 18-09-29 07:03:33, Yongseok Koh wrote: > > > > On Tue, Sep 25, 2018 at 07:51:06PM +0800, Xiaoyu Min wrote: > > > > > Offlo

Re: [dpdk-dev] [PATCH v3 2/4] kni: fix kni fifo synchronization

2018-10-08 Thread Stephen Hemminger
On Mon, 8 Oct 2018 17:11:44 +0800 Phil Yang wrote: > diff --git a/lib/librte_kni/rte_kni_fifo.h b/lib/librte_kni/rte_kni_fifo.h > index ac26a8c..70ac14e 100644 > --- a/lib/librte_kni/rte_kni_fifo.h > +++ b/lib/librte_kni/rte_kni_fifo.h > @@ -28,8 +28,9 @@ kni_fifo_put(struct rte_kni_fifo *fifo,

Re: [dpdk-dev] [PATCH v6 0/5] eal: simplify devargs and hotplug functions

2018-10-08 Thread Stephen Hemminger
On Sun, 7 Oct 2018 11:32:39 +0200 Thomas Monjalon wrote: > This is a follow-up of an idea presented at Dublin > during the "hotplug talk". > > Instead of changing the existing hotplug functions, as in the RFC, > some new experimental functions are added. > The old functions lose their experimen

Re: [dpdk-dev] [PATCH] net/mlx5: fix calculation of struct size in bytes

2018-10-08 Thread Yongseok Koh
On Mon, Oct 08, 2018 at 06:57:49AM -0700, Ori Kam wrote: > > > > -Original Message- > > From: dev On Behalf Of Dekel Peled > > Sent: Monday, October 8, 2018 4:35 PM > > To: Yongseok Koh ; Shahaf Shuler > > > > Cc: dev@dpdk.org; Ori Kam > > Subject: [dpdk-dev] [PATCH] net/mlx5: fix calc

Re: [dpdk-dev] [PATCH v2 4/4] net/mlx5: add L2 and L3 decap to Direct Verbs flow

2018-10-08 Thread Yongseok Koh
On Sun, Oct 07, 2018 at 05:25:08PM +0300, Dekel Peled wrote: > This patch adds support for Direct Verbs decap operations, L2 and L3. > > Signed-off-by: Dekel Peled Same comment for the order of 'dev' arg. > Conflicts: > drivers/net/mlx5/mlx5_flow_dv.c What is this? Conflicts? > --- > d

[dpdk-dev] [PATCH 2/3] net/ark: remove useless hardware notifications

2018-10-08 Thread Ed Czeck
Only send notification to mpu when crossing 64 index boundary. Signed-off-by: Ed Czeck --- drivers/net/ark/ark_ethdev_rx.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/ark/ark_ethdev_rx.c b/drivers/net/ark/ark_ethdev_rx.c index 77149f6..e019b9d 100644 --

[dpdk-dev] [PATCH 3/3] net/ark: support for updated Tx hardware with user meta data

2018-10-08 Thread Ed Czeck
Support for version 2 of DDM hardware. Add configurable setup for using DDM user meta data via CONFIG_RTE_LIBRTE_ARK_DDM_USER_META defaults to 0 for the meta data compatible with v1 hardware. Set to 1 use uudata64. Signed-off-by: Ed Czeck --- config/common_base | 1 + drivers/net/a

[dpdk-dev] [PATCH 1/3] net/ark: add recovery code for lack of mbufs during runtime

2018-10-08 Thread Ed Czeck
Fail with rte_exit() when the lack of mbufs is not recoverable. Signed-off-by: Ed Czeck --- drivers/net/ark/ark_ethdev_rx.c | 52 - 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/drivers/net/ark/ark_ethdev_rx.c b/drivers/net/ark/ark_ethdev_

Re: [dpdk-dev] [PATCH v2 3/4] net/mlx5: add L2 and L3 encap to Direct Verbs flow

2018-10-08 Thread Yongseok Koh
On Sun, Oct 07, 2018 at 05:25:07PM +0300, Dekel Peled wrote: > This patch adds support for Direct Verbs encap operations, L2 and L3. > > Signed-off-by: Dekel Peled > --- For flow_dv_create_encap(), flow_dv_create_encap_l3() and flow_dv_create_action(), please make the 'dev' come first in the arg

Re: [dpdk-dev] [PATCH v2 2/4] net/mlx5: add Direct Verbs encap and decap defs

2018-10-08 Thread Yongseok Koh
On Sun, Oct 07, 2018 at 05:25:06PM +0300, Dekel Peled wrote: > This patch adds the required definitions for DV encap/decap actions. > It also adds usage of the new actions definition in validation > function of existing drop operation. > > Signed-off-by: Dekel Peled > --- You may have to rebase

Re: [dpdk-dev] [PATCH v2 09/33] crypto/octeontx: adds symmetric capabilities

2018-10-08 Thread Thomas Monjalon
08/10/2018 17:59, Trahe, Fiona: > Hi Akhil, Joseph, Thomas, > Just spotted this now. > See below. > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > 24/09/2018 13:36, Joseph, Anoob: > > > Hi Fiona, > > > > > > Can you please comment on this? > > > > > > We are adding all capabilities of oc

Re: [dpdk-dev] [PATCH 6/7] net/mlx5: add missing VLAN action constraints

2018-10-08 Thread Or Gerlitz
On Mon, Oct 8, 2018 at 9:03 PM Yongseok Koh wrote: > 1) VLAN modify isn't supported by driver. > > OVS doesn't support it also @ the DP level, modify is translated to DP pop + push How it is done on OVS/AVS-DPDK? > 2) FW syndrome (0xA9C090): > set_flow_table_entry: push vlan action ft

Re: [dpdk-dev] [PATCH v2 1/4] net/mlx5: add flow action functions to glue

2018-10-08 Thread Yongseok Koh
On Sun, Oct 07, 2018 at 05:25:05PM +0300, Dekel Peled wrote: > This patch adds glue functions for operations: > - Create packet reformat (encap/decap) flow action. > - Destroy flow action. > > Signed-off-by: Dekel Peled > --- I'm not still able to compile this patch on my host, which is RH7.4 wi

Re: [dpdk-dev] [PATCH v2] net/mlx5: allow flow rule with attribute egress

2018-10-08 Thread Yongseok Koh
On Sun, Oct 07, 2018 at 05:01:05PM +0300, Dekel Peled wrote: > This patch complements [1], adding to MLX5 PMD the option to set > flow rule for egress traffic. > > [1] "net/mlx5: support metadata as flow rule criteria" > http://mails.dpdk.org/archives/dev/2018-September/113275.html > > Signed

[dpdk-dev] [PATCH v2] net/mlx5: support multiple groups and jump action

2018-10-08 Thread Yongseok Koh
rte_flow has 'group' attribute and 'jump' action in order to support multiple groups. This feature is known as multi-table support ('chain' in linux TC flower) in general because a group means a table of flows. Example commands are: flow create 0 transfer priority 1 ingress pa

[dpdk-dev] [PATCH 7/7] net/mlx5: fix errno values for flow engine

2018-10-08 Thread Yongseok Koh
Fixes: 4f07e13d6af5 ("net/mlx5: split flow validation to dedicated function") Fixes: f7adfffa3de1 ("net/mlx5: add Direct Verbs validation function") Fixes: edcdef4e5fe4 ("net/mlx5: add Linux TC flower driver for E-Switch flow") Cc: or...@mellanox.com Signed-off-by: Yongseok Koh --- drivers/net/m

[dpdk-dev] [PATCH 6/7] net/mlx5: add missing VLAN action constraints

2018-10-08 Thread Yongseok Koh
1) VLAN modify isn't supported by driver. 2) FW syndrome (0xA9C090): set_flow_table_entry: push vlan action fte in fdb can ONLY be forward to the uplink. 3) FW syndrome (0x294609): set_flow_table_entry: modify/pop/push actions in fdb flow table are supported only w

[dpdk-dev] [PATCH 5/7] net/mlx5: fix flow validation for no fate action

2018-10-08 Thread Yongseok Koh
Fixes: 4f07e13d6af5 ("net/mlx5: split flow validation to dedicated function") Fixes: f7adfffa3de1 ("net/mlx5: add Direct Verbs validation function") Fixes: edcdef4e5fe4 ("net/mlx5: add Linux TC flower driver for E-Switch flow") Cc: Ori Kam Signed-off-by: Yongseok Koh --- drivers/net/mlx5/mlx5_f

[dpdk-dev] [PATCH 4/7] net/mlx5: fix validation of VLAN ID in flow spec

2018-10-08 Thread Yongseok Koh
This can cause crash by null pointer reference. Fixes: 4f07e13d6af5 ("net/mlx5: split flow validation to dedicated function") Cc: Ori Kam Signed-off-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5

[dpdk-dev] [PATCH 3/7] net/mlx5: rename flow macros

2018-10-08 Thread Yongseok Koh
MLX5_ACTION_* -> MLX5_FLOW_ACTION_* MLX5_VXLAN* -> MLX5_UDP_PORT_VXLAN* Fixes: 0f8775dd8f1c ("net/mlx5: add support for multiple flow drivers") Fixes: edcdef4e5fe4 ("net/mlx5: add Linux TC flower driver for E-Switch flow") Cc: Ori Kam Signed-off-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.

[dpdk-dev] [PATCH 2/7] net/mlx5: use standard IP protocol numbers

2018-10-08 Thread Yongseok Koh
Fixes: 0f8775dd8f1c ("net/mlx5: add support for multiple flow drivers") Cc: Ori Kam Signed-off-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 9 + drivers/net/mlx5/mlx5_flow.h | 9 - drivers/net/mlx5/mlx5_flow_verbs.c | 7 --- 3 files changed, 13 insertions(

[dpdk-dev] [PATCH 1/7] net/mlx5: fix wrong flow action macro usage

2018-10-08 Thread Yongseok Koh
Fixes: 5c83c536783c ("net/mlx5: add Direct Verbs final functions") Cc: Ori Kam Signed-off-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.h| 10 -- drivers/net/mlx5/mlx5_flow_dv.c | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.h b/

[dpdk-dev] [PATCH 0/7] net/mlx5: fixes for the new flow engine

2018-10-08 Thread Yongseok Koh
Minor fixes accumulated since the following two patchsets. net/mlx5: add Direct Verbs flow driver support [1] net/mlx5: migrate Linux TC flower driver to new flow engine [1] http://patches.dpdk.org/cover/45248 [2] http://patches.dpdk.org/cover/44897 Yongseok Koh (7): net/mlx5:

[dpdk-dev] [PATCH v3 1/3] crypto/qat: add support AES-CMAC

2018-10-08 Thread Tomasz Cel
This patch add AES-CMAC support. CMAC is a keyed hash function that is based on a symmetric key block cipher. It is One-Key CBC MAC improvement over XCBC-MAC. RFC 4493. NIST SP 800-38B. Signed-off-by: Tomasz Cel Signed-off-by: Arek Kusztal --- drivers/crypto/qat/qat_sym_session.c | 190

[dpdk-dev] [PATCH v3 0/3] add AES-CMAC support

2018-10-08 Thread Tomasz Cel
This patch add support for AES-CMAC, moreover update QAT documentation and enable tests for AES-CMAC. v2: * deleted unnecessary white signs from documentation part v3: * added AES-CMAC to the capabilities list * updated release note for 18.11 * updated qat.rst file Tomasz Cel (3): crypto/qat:

[dpdk-dev] [PATCH v3 2/3] test/qat: test for AES-CMAC

2018-10-08 Thread Tomasz Cel
Enable tests for AES-CMAC authentication algorithm. Signed-off-by: Tomasz Cel --- test/test/test_cryptodev_hash_test_vectors.h | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test/test/test_cryptodev_hash_test_vectors.h b/test/test/test_cryptodev_hash_test_vecto

[dpdk-dev] [PATCH v3 3/3] doc/qat: update AES-CMAC documentation

2018-10-08 Thread Tomasz Cel
Update the QAT documentation to show that it supports AES-CMAC. Signed-off-by: Tomasz Cel --- doc/guides/cryptodevs/features/qat.ini| 1 + doc/guides/cryptodevs/qat.rst | 1 + doc/guides/rel_notes/release_18_11.rst| 6 ++ drivers/crypto/qat/qat_sym_capabilities.h | 20

Re: [dpdk-dev] [PATCH v3 18/19] vhost: add flag to enable postcopy live-migration

2018-10-08 Thread Maxime Coquelin
On 10/08/2018 06:25 PM, Ilya Maximets wrote: Have you missed this mail while preparing v4? Yes I did... Thanks for the heads-up! Maxime Best regards, Ilya Maximets. On 05.10.2018 17:24, Ilya Maximets wrote: I think it'll be nice to have a warning in case zero-copy and postcopy enabled at

Re: [dpdk-dev] [PATCH v3 18/19] vhost: add flag to enable postcopy live-migration

2018-10-08 Thread Ilya Maximets
Have you missed this mail while preparing v4? Best regards, Ilya Maximets. On 05.10.2018 17:24, Ilya Maximets wrote: > I think it'll be nice to have a warning in case zero-copy > and postcopy enabled at the same time. This warning will > clarify for users why postcopy is not enabled. > What do yo

Re: [dpdk-dev] [PATCH v4 11/19] vhost: introduce postcopy's advise message

2018-10-08 Thread Ilya Maximets
On 08.10.2018 18:25, Maxime Coquelin wrote: > This patch opens a userfaultfd and sends it back to Qemu's > VHOST_USER_POSTCOPY_ADVISE request. > > Signed-off-by: Dr. David Alan Gilbert > Signed-off-by: Maxime Coquelin > --- > lib/librte_vhost/vhost.h | 2 ++ > lib/librte_vhost/vhost_user.

[dpdk-dev] [pull-request] next-qos 18.11 pre-rc1

2018-10-08 Thread Cristian Dumitrescu
The following changes since commit 77b5311d0ece90b1c197c1dc0f38bc6dbdcc28a8: event/dpaa: support select based event (2018-10-04 16:38:54 +0200) are available in the git repository at: http://dpdk.org/git/next/dpdk-next-qos for you to fetch changes up to 367ff7d2d7cc204c0b80eb4b6e4e3c19f51c

[dpdk-dev] [PATCH v4 2/4] ethdev: add Tx offload outer UDP checksum definition

2018-10-08 Thread Jerin Jacob
Introduced DEV_TX_OFFLOAD_OUTER_UDP_CKSUM offload flags and PKT_TX_OUTER_UDP_CKSUM mbuf ol_flags to enable Tx outer UDP checksum offload. To use hardware Tx outer UDP checksum offload, the user needs to, - enable following in mbuf: a) fill outer_l2_len and outer_l3_len in mbuf b) set the PKT_TX_O

[dpdk-dev] [PATCH v4 3/4] app/testpmd: add outer UDP HW checksum support

2018-10-08 Thread Jerin Jacob
Added outer-udp Tx HW checksum support for csum forward engine if device supports DEV_TX_OFFLOAD_OUTER_UDP_CKSUM. Signed-off-by: Jerin Jacob Acked-by: Bernard Iremonger --- v3: - Added Acked-by: Bernard Iremonger v2: - Added outer-udp support for csum engine --- app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v4 4/4] app/testpmd: collect bad outer L4 checksum for csum engine

2018-10-08 Thread Jerin Jacob
Collect and prints the statistics for PKT_RX_EL4_CKSUM_BAD errors. Signed-off-by: Jerin Jacob Reviewed-by: Andrew Rybchenko Acked-by: Bernard Iremonger --- v4: - Added Acked-by: Bernard Iremonger - s/PKT_RX_EL4_CKSUM_BAD/PKT_RX_OUTER_L4_CKSUM_BAD v3: - Added Reviewed-by: Andrew Rybchenko -

[dpdk-dev] [PATCH v4 1/4] ethdev: add Rx offload outer UDP checksum definition

2018-10-08 Thread Jerin Jacob
Introduced DEV_RX_OFFLOAD_OUTER_UDP_CKSUM Rx offload flag and PKT_RX_OUTER_L4_CKSUM_* mbuf ol_flags to detect outer UDP checksum status. - To use hardware Rx outer UDP checksum offload, the user needs to configure DEV_RX_OFFLOAD_OUTER_UDP_CKSUM offload flags in slowpath. - Driver updates checksum

Re: [dpdk-dev] [PATCH] app/testpmd: fix metering and policing cli command

2018-10-08 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Jasvinder Singh > Sent: Wednesday, September 12, 2018 10:02 AM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; Wu, Jingjing > ; Iremonger, Bernard > > Subject: [dpdk-dev] [PATCH] app/testpmd: fix metering and policing cl

Re: [dpdk-dev] [PATCH] app/testpmd: add commands for TM to mark pkts

2018-10-08 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Krzysztof Kanas > Sent: Friday, August 17, 2018 12:39 PM > To: dev@dpdk.org > Cc: krzysztof.ka...@caviumnetworks.com; > jerin.jacobkollanukka...@cavium.com; nithin.dabilpu...@cavium.com > Subject: [dpdk-dev] [PAT

Re: [dpdk-dev] [PATCH v2 09/33] crypto/octeontx: adds symmetric capabilities

2018-10-08 Thread Trahe, Fiona
Hi Akhil, Joseph, Thomas, Just spotted this now. See below. > -Original Message- > From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Monday, October 1, 2018 11:05 AM > To: Joseph, Anoob > Cc: dev@dpdk.org; Trahe, Fiona ; Akhil Goyal > ; Anoob > Joseph ; De Lara Guarch, Pablo >

Re: [dpdk-dev] [PATCH] lib/librte_ethdev: expand queue threshold size of RED parameters

2018-10-08 Thread Dumitrescu, Cristian
> -Original Message- > From: Xu, Rosen > Sent: Thursday, August 16, 2018 2:14 AM > To: dev@dpdk.org > Cc: Dumitrescu, Cristian ; Lu, Wenzhuo > ; Singh, Jasvinder ; > jerin.ja...@caviumnetworks.com; Xu, Rosen ; Yigit, > Ferruh > Subject: [PATCH] lib/librte_ethdev: expand queue threshold

Re: [dpdk-dev] [PATCH v1] eal: use correct data type for slab operations

2018-10-08 Thread Dumitrescu, Cristian
> -Original Message- > From: Dumitrescu, Cristian > Sent: Monday, September 24, 2018 6:12 PM > To: Vivek Sharma > Cc: Sharma, Vivek ; sta...@dpdk.org; > dev@dpdk.org > Subject: RE: [PATCH v1] eal: use correct data type for slab operations > > > > > -Original Message- > > From:

Re: [dpdk-dev] [PATCH] librte_sched: allocate memory on the given socket id

2018-10-08 Thread Dumitrescu, Cristian
> -Original Message- > From: Singh, Jasvinder > Sent: Thursday, September 27, 2018 6:11 PM > To: dev@dpdk.org > Cc: Dumitrescu, Cristian > Subject: [PATCH] librte_sched: allocate memory on the given socket id > > Replace rte_zmalloc() with rte_zmalloc_socket() to allocate > memory on t

Re: [dpdk-dev] [PATCH v3 1/3] ring: read tail using atomic load

2018-10-08 Thread Ola Liljedahl
On 08/10/2018, 16:46, "Ola Liljedahl" wrote: On 08/10/2018, 16:44, "Bruce Richardson" wrote: On Mon, Oct 08, 2018 at 09:22:05AM +, Ola Liljedahl wrote: > "* multi-producer safe lock-free ring buffer enqueue" > The comment is also wrong.

Re: [dpdk-dev] [PATCH v4] net/softnic: add flow flush API

2018-10-08 Thread Dumitrescu, Cristian
> -Original Message- > From: Pattan, Reshma > Sent: Monday, October 8, 2018 12:19 PM > To: dev@dpdk.org; Dumitrescu, Cristian ; > Singh, Jasvinder > Cc: Pattan, Reshma > Subject: [PATCH v4] net/softnic: add flow flush API > > Add rte flow flush api for flushing > all the flows of the

Re: [dpdk-dev] [PATCH] examples/ip_pipeline: fix ipv6 address endianness

2018-10-08 Thread Dumitrescu, Cristian
> -Original Message- > From: Pattan, Reshma > Sent: Friday, September 28, 2018 5:19 PM > To: dev@dpdk.org; Dumitrescu, Cristian ; > Singh, Jasvinder > Cc: Pattan, Reshma > Subject: [PATCH] examples/ip_pipeline: fix ipv6 address endianness > > Fix ipv6 endianness from big endian to cpu

[dpdk-dev] [PATCH v4 18/19] vhost: add flag to enable postcopy live-migration

2018-10-08 Thread Maxime Coquelin
Postcopy live-migration feature require the application to not populate the guest memory. As the vhost library cannot prevent the application to that (e.g. preventing the application to call mlockall()), the feature is disabled by default. The application should only enable the feature if it does

Re: [dpdk-dev] [PATCH] net/softnic: fix ipv6 address from big endian to cpu order

2018-10-08 Thread Dumitrescu, Cristian
> -Original Message- > From: Pattan, Reshma > Sent: Friday, September 28, 2018 5:19 PM > To: dev@dpdk.org; Dumitrescu, Cristian ; > Singh, Jasvinder > Cc: Pattan, Reshma > Subject: [PATCH] net/softnic: fix ipv6 address from big endian to cpu order > > Fix ipv6 endianness from big endi

[dpdk-dev] [PATCH v4 19/19] net/vhost: add parameter to enable postcopy support

2018-10-08 Thread Maxime Coquelin
Introduce a new postcopy-support parameter to Vhost PMD that passes the RTE_VHOST_USER_POSTCOPY_SUPPORT flag at vhost device register time. Flag should only be set if application does not prefault guest memory using, for example, mlockall() syscall. Default value is 0, meaning that postcopy suppo

[dpdk-dev] [PATCH v4 17/19] vhost: enable postcopy protocol feature

2018-10-08 Thread Maxime Coquelin
Enable postcopy protocol feature except if dequeue zero-copy is enabled. In this case, guest memory requires to be populated, which is not compatible with userfaultfd. Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost_user.c | 7 +++ lib/librte_

[dpdk-dev] [PATCH v4 15/19] vhost: send userfault range addresses back to qemu

2018-10-08 Thread Maxime Coquelin
Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost_user.c | 49 --- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c index 9a50b962b..75e15

[dpdk-dev] [PATCH v4 14/19] vhost: avoid useless VhostUserMemory copy

2018-10-08 Thread Maxime Coquelin
The VHOST_USER_SET_MEM_TABLE payload is copied when handled, whereas it could directly be referenced. This is not very important, but next, we'll need to update the payload and send it back to Qemu. Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin Acked-by: Ilya Maximets --

[dpdk-dev] [PATCH v4 16/19] vhost: add support to postcopy's end request

2018-10-08 Thread Maxime Coquelin
The master sends this message before stopping handling userfaults, so that the backend closes the userfaultfd. The master waits for the slave to acknowledge the request with an empty 64bits payload for synchronization purpose. Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin

[dpdk-dev] [PATCH v4 13/19] vhost: register new regions with userfaultfd

2018-10-08 Thread Maxime Coquelin
Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost_user.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c index 7a79145c2..46c97836a 100644 --- a/lib/librte_

[dpdk-dev] [PATCH v4 12/19] vhost: add support for postcopy's listen message

2018-10-08 Thread Maxime Coquelin
Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost.h | 1 + lib/librte_vhost/vhost_user.c | 21 + lib/librte_vhost/vhost_user.h | 3 ++- 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/lib/librte_vhost/vhost.h

[dpdk-dev] [PATCH v4 11/19] vhost: introduce postcopy's advise message

2018-10-08 Thread Maxime Coquelin
This patch opens a userfaultfd and sends it back to Qemu's VHOST_USER_POSTCOPY_ADVISE request. Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost.h | 2 ++ lib/librte_vhost/vhost_user.c | 49 +++ lib/librte_vhost

[dpdk-dev] [PATCH v4 08/19] vhost: pass socket fd to message handling callbacks

2018-10-08 Thread Maxime Coquelin
This is not used for now, but will be needed for the special handling of VHOST_USER_SET_MEM_TABLE message once postcopy will be supported. Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost_user.c | 71 +++ 1 file changed, 47 insertions(+), 24 deletions(-)

[dpdk-dev] [PATCH v4 10/19] vhost: add config flag for postcopy feature

2018-10-08 Thread Maxime Coquelin
Postcopy live-migration features relies on userfaultfd, which was only introduced in kernel v4.3. This patch introduces a new define to allow building vhost library on kernels not supporting userfaultfd. With legacy build system, user has to explicitly set CONFIG_RTE_LIBRTE_VHOST_POSTCOPY to 'y'.

[dpdk-dev] [PATCH v4 09/19] vhost: enable fds passing when sending vhost-user messages

2018-10-08 Thread Maxime Coquelin
Passing userfault fds to Qemu will be required for postcopy live-migration feature. Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost_user.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/lib/librte

[dpdk-dev] [PATCH v4 06/19] vhost: define postcopy protocol flag

2018-10-08 Thread Maxime Coquelin
Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin Acked-by: Ilya Maximets --- lib/librte_vhost/rte_vhost.h | 4 1 file changed, 4 insertions(+) diff --git a/lib/librte_vhost/rte_vhost.h b/lib/librte_vhost/rte_vhost.h index b02673d4a..b3cc6990d 100644 --- a/lib/librte_vh

[dpdk-dev] [PATCH v4 07/19] vhost: add number of fds to vhost-user messages and use it

2018-10-08 Thread Maxime Coquelin
As soons as some anciliarry datai (fds) are received, it is copied without checking its length. This patch adds adds the number of fds received to the message, which is set in read_vhost_message(). This is preliminary work to support sending fds to Qemu. Signed-off-by: Dr. David Alan Gilbert Si

[dpdk-dev] [PATCH v4 05/19] vhost: fix error handling when mem table gets updated

2018-10-08 Thread Maxime Coquelin
When the memory table gets updated, the rings addresses need to be translated again. If it fails, we need to exit cleanly by unmapping memory regions. Fixes: d5022533c20a ("vhost: retranslate vring addr when memory table changes") Cc: sta...@dpdk.org Signed-off-by: Maxime Coquelin Acked-by: Ilya

[dpdk-dev] [PATCH v4 03/19] vhost: clarify reply-ack in case a reply was already sent

2018-10-08 Thread Maxime Coquelin
For messages that require a reply, a second ack should not be sent when reply-ack protocol feature is negotiated, even if the corresponding flag is set in the message. The code is compliant with the spec but it isn't clear it is, so this patch adds a comment to make it explicit. Suggested-by: Ily

[dpdk-dev] [PATCH v4 04/19] vhost: fix payload size of reply

2018-10-08 Thread Maxime Coquelin
QEMU doesn't expect any payload for the reply of VHOST_USER_SET_LOG_BASE request, so don't send any. Note that the Vhost-user specification isn't clear about it and would need to be fixed. Fixes: 54f9e32305d4 ("vhost: handle dirty pages logging request") Cc: sta...@dpdk.org Reported-by: Ilya Maxi

[dpdk-dev] [PATCH v4 02/19] vhost: fix return code of messages requiring replies

2018-10-08 Thread Maxime Coquelin
VHOST_USER_GET_PROTOCOL_FEATURES, VHOST_USER_GET_VRING_BASE and VHOST_USER_SET_LOG_BASE require replies, so their handlers should return VH_RESULT_REPLY, not VH_RESULT_OK. Fixes: 0bff510b5ea6 ("vhost: unify message handling function signature") Signed-off-by: Maxime Coquelin Acked-by: Ilya Maxim

[dpdk-dev] [PATCH v4 01/19] vhost: fix messages error checks

2018-10-08 Thread Maxime Coquelin
Return of message handling has now changed to an enum that can take non-negative value that is not zero in case a reply is needed. But the code checking the variable afterwards has not been updated, leading to success messages handling being treated as errors. Fixes: 2f270595c05d ("vhost: rework m

[dpdk-dev] [PATCH v4 00/19] vhost: add postcopy live-migration support

2018-10-08 Thread Maxime Coquelin
In this v4: - Fix VHOST_USER_MAX in patch 12 (Ilya) - Don't close postcopy_fd in set_mem_table error path (Ilya) - Close postcopy_fd in vhost_backend_cleanup() (Ilya) - Re-init postcopy_listening in vhost_backend_cleanup() (Ilya) - Close FDs in read_fd_message() error path (Ilya) - Fix various typo

Re: [dpdk-dev] [PATCH v3 1/3] ethdev: support metadata as flow rule criteria

2018-10-08 Thread Dekel Peled
Thanks, PSB From: Andrew Rybchenko Sent: Friday, October 5, 2018 4:40 PM To: Ferruh Yigit ; Dekel Peled ; wenzhuo...@intel.com; jingjing...@intel.com; bernard.iremon...@intel.com; dev@dpdk.org; olivier.m...@6wind.com; Adrien Mazarguil ; Thomas Monjalon Cc: Shahaf Shuler ; Ori Kam Subject: R

Re: [dpdk-dev] [PATCH v3] net/softnic: add flow flush API

2018-10-08 Thread Pattan, Reshma
> -Original Message- > From: Dumitrescu, Cristian > Sent: Monday, October 8, 2018 11:36 AM > To: Pattan, Reshma ; dev@dpdk.org; Singh, > Jasvinder > Subject: RE: [PATCH v3] net/softnic: add flow flush API > > > > > -Original Message- > > From: Pattan, Reshma > > Sent: Monday,

Re: [dpdk-dev] [PATCH v3 1/3] ring: read tail using atomic load

2018-10-08 Thread Ola Liljedahl
On 08/10/2018, 16:44, "Bruce Richardson" wrote: On Mon, Oct 08, 2018 at 09:22:05AM +, Ola Liljedahl wrote: > "* multi-producer safe lock-free ring buffer enqueue" > The comment is also wrong. This design is not lock-free, how could it be when there is spinning > (wai

Re: [dpdk-dev] [PATCH v3 1/3] ring: read tail using atomic load

2018-10-08 Thread Bruce Richardson
On Mon, Oct 08, 2018 at 09:22:05AM +, Ola Liljedahl wrote: > "* multi-producer safe lock-free ring buffer enqueue" > The comment is also wrong. This design is not lock-free, how could it be when > there is spinning > (waiting) for other threads in the code? If a thread must wait for other >

Re: [dpdk-dev] [PATCH v3 01/32] common/cpt: add common logging support

2018-10-08 Thread Anoob Joseph
Hi Thomas, On 08-10-2018 19:07, Thomas Monjalon wrote: > External Email > > 08/10/2018 15:07, Joseph, Anoob: >> On 08-10-2018 17:57, Thomas Monjalon wrote: >>> 05/10/2018 14:58, Anoob Joseph: +Cavium OCTEON TX +M: Anoob Joseph +F: drivers/common/cpt/ >>> What is the real wording fo

Re: [dpdk-dev] [PATCH] net/e1000: do not error out if rx_drop_en is set

2018-10-08 Thread Luca Boccassi
On Mon, 2018-10-08 at 08:43 +, Zhao1, Wei wrote: > Hi,  Luca Boccassi > > > -Original Message- > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Luca Boccassi > > Sent: Saturday, July 28, 2018 1:26 AM > > To: dev@dpdk.org > > Cc: Lu, Wenzhuo ; Luca Boccassi > > ; sta...@dpdk.org

Re: [dpdk-dev] [PATCH] net/mlx5: fix calculation of struct size in bytes

2018-10-08 Thread Ori Kam
> -Original Message- > From: dev On Behalf Of Dekel Peled > Sent: Monday, October 8, 2018 4:35 PM > To: Yongseok Koh ; Shahaf Shuler > > Cc: dev@dpdk.org; Ori Kam > Subject: [dpdk-dev] [PATCH] net/mlx5: fix calculation of struct size in bytes > > Update definition of MLX5_ST_SZ_DB to

[dpdk-dev] [PATCH] net/mlx5: fix calculation of struct size in bytes

2018-10-08 Thread Dekel Peled
Update definition of MLX5_ST_SZ_DB to calculate struct size correctly. Fixes: 86a8d2b59f54 ("net/mlx5: add Direct Verbs prepare function") Cc: or...@mellanox.com Signed-off-by: Dekel Peled --- drivers/net/mlx5/mlx5_prm.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/

Re: [dpdk-dev] [PATCH v3 01/32] common/cpt: add common logging support

2018-10-08 Thread Thomas Monjalon
08/10/2018 15:07, Joseph, Anoob: > On 08-10-2018 17:57, Thomas Monjalon wrote: > > 05/10/2018 14:58, Anoob Joseph: > >> +Cavium OCTEON TX > >> +M: Anoob Joseph > >> +F: drivers/common/cpt/ > > What is the real wording for this device family? > > Sometimes I read OcteonTX with lowercases and no spa

Re: [dpdk-dev] [PATCH v2 1/4] ethdev: add Rx offload outer UDP checksum definition

2018-10-08 Thread Jerin Jacob
-Original Message- > Date: Mon, 08 Oct 2018 15:03:49 +0200 > From: Thomas Monjalon > To: Jerin Jacob > Cc: Ferruh Yigit , "Ananyev, Konstantin" > , Andrew Rybchenko > , "Lu, Wenzhuo" , "Wu, > Jingjing" , "Iremonger, Bernard" > , "Mcnamara, John" , > "Kovacevic, Marko" , Olivier Matz

Re: [dpdk-dev] [PATCH v3 00/32] Adding Cavium's OCTEONTX crypto PMD

2018-10-08 Thread Thomas Monjalon
08/10/2018 14:58, Joseph, Anoob: > On 08-10-2018 18:03, Thomas Monjalon wrote: > > A lot of patches are split in 2 parts for common/cpt and crypto/octeontx. > > I think it is useless most of the time. > > You are allowed to update any related code in the common part > > while implementing some feat

Re: [dpdk-dev] [PATCH v3 01/32] common/cpt: add common logging support

2018-10-08 Thread Joseph, Anoob
Hi Thomas, On 08-10-2018 17:57, Thomas Monjalon wrote: External Email 05/10/2018 14:58, Anoob Joseph: +Cavium OCTEON TX +M: Anoob Joseph +F: drivers/common/cpt/ What is the real wording for this device family? Sometimes I read OcteonTX with lowercases and no space, sometimes OCTEONTX without

[dpdk-dev] [PATCH v5] test: add unit tests for metrics library

2018-10-08 Thread Hari Kumar Vemula
Unit testcases are added for metrics library Added metrics unit test to autotest list Updated meson build file Updated MAINTAINERSHIP for metrics unit test Signed-off-by: Hari Kumar Vemula Reviewed-by: Reshma Pattan Reviewed-by: Remy Horton Acked-by: Remy Horton --- v5: Rebased on new codebase

Re: [dpdk-dev] [PATCH v2 1/4] ethdev: add Rx offload outer UDP checksum definition

2018-10-08 Thread Thomas Monjalon
08/10/2018 14:25, Jerin Jacob: > From: Ferruh Yigit > > On 10/8/2018 12:55 PM, Jerin Jacob wrote: > > > From: Ferruh Yigit > > >> On 10/8/2018 10:37 AM, Jerin Jacob wrote: > > >>> From: Thomas Monjalon > > 08/10/2018 10:24, Jerin Jacob: > > > From: Ferruh Yigit > > >> On 10/6/2018

Re: [dpdk-dev] [PATCH v3 13/19] vhost: register new regions with userfaultfd

2018-10-08 Thread Maxime Coquelin
On 10/05/2018 02:34 PM, Ilya Maximets wrote: On 04.10.2018 11:13, Maxime Coquelin wrote: Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost_user.c | 33 - 1 file changed, 32 insertions(+), 1 deletion(-) diff --

  1   2   >