Re: [dpdk-dev] [PATCH v2 0/7] Address reader-writer concurrency in rte_hash

2018-10-10 Thread Honnappa Nagarahalli
Hi Yipeng, I will rebase this further with your V7 and submit V3. Please let me know if you have any comments in the meantime. Due to time constraints, I do not plan to support lock-free for extended bucket feature in this release. I will add that support in the next release. Please let

Re: [dpdk-dev] [PATCH v2 3/3] net/mlx5: rewrite MAC address by E-Switch

2018-10-10 Thread Yongseok Koh
On Wed, Oct 10, 2018 at 06:11:45AM -0700, Jack Min wrote: > Offload following modify MAC address actions to E-Switch > via TC-Flower driver > > - RTE_FLOW_ACTION_TYPE_SET_MAC_SRC > - RTE_FLOW_ACTION_TYPE_SET_MAC_DST > > The corresponding rte_flow_item_eth must be present in > rte_flow pattern >

Re: [dpdk-dev] [PATCH v3 3/3] net/mlx5: rewrite TTL by E-Switch

2018-10-10 Thread Yongseok Koh
On Wed, Oct 10, 2018 at 06:06:00AM -0700, Jack Min wrote: > Offload following modify TTL actions to E-Switch via > TC-Flower driver > > - RTE_FLOW_ACTION_TYPE_SET_TTL > - RTE_FLOW_ACTION_TYPE_DEC_TTL > > The corresponding IP protocol rte_flow_item_ipv[4|6] > must be present in rte_flow pattern ot

Re: [dpdk-dev] [PATCH 4/4] hash: enable lock-free reader-writer concurrency

2018-10-10 Thread Honnappa Nagarahalli
> >> > > >> >Add the flag to enable reader-writer concurrency during run time. > >> >The rte_hash_del_xxx APIs do not free the keystore element when this > >> >flag is enabled. Hence a new API, rte_hash_free_key_with_position, > >> >to free the key store element is added. > >> > > >> >+/** Flag to

Re: [dpdk-dev] [PATCH v3] net/mlx5: support e-switch TCP-flags flow filter

2018-10-10 Thread Shahaf Shuler
Hi Moti, Wednesday, October 10, 2018 5:44 PM, Mordechay Haimovsky: > Subject: [PATCH v3] net/mlx5: support e-switch TCP-flags flow filter > > This patch adds support for offloading flow rules with TCP-flags filter to > mlx5 > eswitch Hardwrae. > > With mlx5 it is possible to offload a limited s

Re: [dpdk-dev] [PATCH] net/ifc: invoke ifcvf HW init function in probe

2018-10-10 Thread Zhang, Qi Z
> -Original Message- > From: Wang, Xiao W > Sent: Wednesday, October 10, 2018 9:40 PM > To: Ye, Xiaolong ; dev@dpdk.org; Zhang, Qi Z > > Subject: RE: [PATCH] net/ifc: invoke ifcvf HW init function in probe > > Hi, > > > -Original Message- > > From: Ye, Xiaolong > > Sent: Wedne

[dpdk-dev] [PATCH v2 5/7] hash: fix rw concurrency while moving keys

2018-10-10 Thread Honnappa Nagarahalli
Reader-writer concurrency issue, caused by moving the keys to their alternative locations during key insert, is solved by introducing a global counter(tbl_chng_cnt) indicating a change in table. Signed-off-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu Reviewed-by: Ola Liljedahl Reviewed-by: St

[dpdk-dev] [PATCH v2 4/7] hash: add memory ordering to avoid race conditions

2018-10-10 Thread Honnappa Nagarahalli
Only race condition that can occur is - using the key store element before the key write is completed. Hence, while inserting the element the release memory order is used. Any other race condition is caught by the key comparison. Memory orderings are added only where needed. For ex: reads in the w

[dpdk-dev] [PATCH v2 6/7] hash: enable lock-free reader-writer concurrency

2018-10-10 Thread Honnappa Nagarahalli
Add the flag to enable reader-writer concurrency during run time. The rte_hash_del_xxx APIs do not free the keystore element when this flag is enabled. Hence a new API, rte_hash_free_key_with_position, to free the key store element is added. Signed-off-by: Honnappa Nagarahalli Reviewed-by: Gavin

[dpdk-dev] [PATCH v2 3/7] hash: correct key store element alignment

2018-10-10 Thread Honnappa Nagarahalli
Correct the key store array element alignment. This is required to make 'pdata' in 'struct rte_hash_key' align on the correct boundary. Signed-off-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu Reviewed-by: Ola Liljedahl Reviewed-by: Steve Capper --- lib/librte_hash/rte_cuckoo_hash.c | 4 +++-

[dpdk-dev] [PATCH v2 7/7] test/hash: read-write lock-free concurrency test

2018-10-10 Thread Honnappa Nagarahalli
From: Dharmik Thakkar Unit tests to check for hash lookup perf with lock-free enabled and with lock-free disabled. Unit tests performed with readers running in parallel with writers. Tests include: - hash lookup on existing keys with: - hash add causing NO key-shifts of existing keys in the t

[dpdk-dev] [PATCH v2 2/7] hash: support do not recycle on delete

2018-10-10 Thread Honnappa Nagarahalli
rte_hash_lookup_xxx APIs return the index of the element in the key store. Application(reader) can use that index to reference other data structures in its scope. Because of this, the index should not be recycled till the application completes using the index. RTE_HASH_EXTRA_FLAGS_RECYCLE_ON_DEL is

[dpdk-dev] [PATCH v2 0/7] Address reader-writer concurrency in rte_hash

2018-10-10 Thread Honnappa Nagarahalli
Currently, reader-writer concurrency problems in rte_hash are addressed using reader-writer locks. Use of reader-writer locks results in following issues: 1) In many of the use cases for the hash table, writer threads are running on control plane. If the writer is preemp

[dpdk-dev] [PATCH v2 1/7] hash: separate multi-writer from rw-concurrency

2018-10-10 Thread Honnappa Nagarahalli
RW concurrency is required with single writer and multiple reader usecase as well. Hence, multi-writer should not be enabled by default when RW concurrency is enabled. Fixes: f2e3001b53ec ("hash: support read/write concurrency") Cc: yipeng1.w...@intel.com Signed-off-by: Honnappa Nagarahalli Revi

Re: [dpdk-dev] [PATCH 0/3] Representor fixes for BlueField device

2018-10-10 Thread Shahaf Shuler
Monday, October 8, 2018 11:25 AM, Shahaf Shuler: > Subject: [dpdk-dev] [PATCH 0/3] Representor fixes for BlueField device > > Setting BlueField device with representors introduced some corner cases > that were overlooked during the development of representors for x86. > > This series enables the

[dpdk-dev] [PATCH v1 3/3] test/hash: add readwrite test for ext table

2018-10-10 Thread Yipeng Wang
This commit improves the readwrite test to consider extendable table feature and add more functional tests to cover more corner cases. Signed-off-by: Yipeng Wang --- test/test/test_hash_readwrite.c | 70 ++--- 1 file changed, 58 insertions(+), 12 deletions(-)

[dpdk-dev] [PATCH v1 0/3] Improvements over rte hash and tests

2018-10-10 Thread Yipeng Wang
This patch set depends on another rte hash patch set: http://patchwork.dpdk.org/cover/46106/ This patch set includes three commits to improve rte_hash and its unit tests. 1. Remove unnecessary pause code in rte_reset function. 2 and 3. Improve the unit test. Signed-off-by: Yipeng Wang Yipeng W

[dpdk-dev] [PATCH v1 1/3] hash: fix unnecessary pause

2018-10-10 Thread Yipeng Wang
There is a rte_pause in hash table reset function. Since the loop is not a polling loop on shared data structure, the rte_pause is not needed. Fixes: b26473ff8f4a ("hash: add reset function") Cc: sta...@dpdk.org Signed-off-by: Yipeng Wang --- lib/librte_hash/rte_cuckoo_hash.c | 4 ++-- 1 file c

[dpdk-dev] [PATCH v1 2/3] test/hash: change multiwriter test to use jhash

2018-10-10 Thread Yipeng Wang
With sequential key, the test will cover more corner cases with jhash instead of crc hash, since jhash generates more random hash pattern on sequential key. It is useful for functional verification. Signed-off-by: Yipeng Wang --- test/test/test_hash_multiwriter.c | 15 +++ 1 file cha

Re: [dpdk-dev] [PATCH v2] net/mlx5: rewrite IP address UDP/TCP port by E-Switch

2018-10-10 Thread Yongseok Koh
On Wed, Oct 10, 2018 at 05:56:15AM -0700, Jack Min wrote: > Offload the following rte_flow actions by inserting accordingly > E-Switch rules via TC Flower driver > > - RTE_FLOW_ACTION_TYPE_SET_IPV4_SRC > - RTE_FLOW_ACTION_TYPE_SET_IPV4_DST > - RTE_FLOW_ACTION_TYPE_SET_IPV6_SRC > - RTE_FLOW_ACT

Re: [dpdk-dev] [PATCH] net/ifc: invoke ifcvf HW init function in probe

2018-10-10 Thread Wang, Xiao W
Hi, > -Original Message- > From: Ye, Xiaolong > Sent: Wednesday, October 10, 2018 9:23 PM > To: dev@dpdk.org; Zhang, Qi Z > Cc: Wang, Xiao W ; Ye, Xiaolong > > Subject: [PATCH] net/ifc: invoke ifcvf HW init function in probe > > As ifcvf_init_hw is independent with ifcvf_vfio_setup, it'

[dpdk-dev] [PATCH v7 4/4] hash: use partial-key hashing

2018-10-10 Thread Yipeng Wang
This commit changes the hashing mechanism to "partial-key hashing" to calculate bucket index and signature of key. This is proposed in Bin Fan, et al's paper "MemC3: Compact and Concurrent MemCache with Dumber Caching and Smarter Hashing". Basically the idea is to use "xor" to derive alternative

[dpdk-dev] [PATCH v7 3/4] test/hash: implement extendable bucket hash test

2018-10-10 Thread Yipeng Wang
This commit changes the current rte_hash unit test to test the extendable table feature and performance. Signed-off-by: Yipeng Wang Reviewed-by: Honnappa Nagarahalli Acked-by: Dharmik Thakkar --- test/test/test_hash.c | 159 +++-- test/test/test_has

[dpdk-dev] [PATCH v7 0/4] hash: add extendable bucket and partial key hashing

2018-10-10 Thread Yipeng Wang
This patch has dependency on another bug fix patch set: http://patchwork.dpdk.org/cover/45611/ This patch set makes two major optimizations over the current rte_hash library. First, it adds Extendable Bucket Table feature: a new structure that can accommodate keys that failed to get inserted into

[dpdk-dev] [PATCH v7 2/4] hash: add extendable bucket feature

2018-10-10 Thread Yipeng Wang
In use cases that hash table capacity needs to be guaranteed, the extendable bucket feature can be used to contain extra keys in linked lists when conflict happens. This is similar concept to the extendable bucket hash table in packet framework. This commit adds the extendable bucket feature. User

[dpdk-dev] [PATCH v7 1/4] hash: fix race condition in iterate

2018-10-10 Thread Yipeng Wang
In rte_hash_iterate, the reader lock did not protect the while loop which checks empty entry. This created a race condition that the entry may become empty when enters the lock, then a wrong key data value would be read out. This commit reads out the position in the while condition, which makes su

Re: [dpdk-dev] [PATCH] net/ifc: fix function name

2018-10-10 Thread Zhang, Qi Z
> -Original Message- > From: Ye, Xiaolong > Sent: Wednesday, October 10, 2018 2:42 AM > To: Wang, Xiao W > Cc: Zhang, Qi Z ; dev@dpdk.org > Subject: Re: [PATCH] net/ifc: fix function name > > Acked-by: Ye Xiaolong > > Thanks, > Xiaolong > > On 09/25, Xiao Wang wrote: > >The address

Re: [dpdk-dev] [PATCH v2 02/10] kni: separate releasing netdev from freeing KNI interface

2018-10-10 Thread Dan Gora
I'll have a look at this.. Maybe it will work, I'll have to try it and test it to see if there are any gotchas that are not obvious. d On Wed, Oct 10, 2018 at 7:51 PM Ferruh Yigit wrote: > >> Very simply, what about prevent kni_net_release() send callback to > >> userspace? > > > > No, because

Re: [dpdk-dev] [PATCH v3 0/6] kni: add API to set link status on kernel interface

2018-10-10 Thread Dan Gora
On Wed, Oct 10, 2018 at 8:00 PM Ferruh Yigit wrote: > > I'm incredibly frustrated with this whole process to be honest... > > Please don't be so, you are spending time/effort to improve an open source > project which is great, thank you again. > > Why don't we take this as incremental steps, first

[dpdk-dev] [PATCH] eal: eliminate cast of hpet_msb_inc

2018-10-10 Thread Stephen Hemminger
The cast of hpet_msb_inc is causing a warning in some compilations. Yet the cast is unnecessary, the function is used only one place just use the correct signature. Signed-off-by: Stephen Hemminger --- lib/librte_eal/linuxapp/eal/eal_timer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletion

Re: [dpdk-dev] [PATCH v3 0/6] kni: add API to set link status on kernel interface

2018-10-10 Thread Ferruh Yigit
On 10/10/2018 4:01 PM, Dan Gora wrote: > On Wed, Oct 10, 2018 at 11:16 AM Ferruh Yigit wrote: >> >> On 9/27/2018 1:32 AM, Dan Gora wrote: >>> Hi All, >>> >>> Attached is version 3 of a patchset to add a new API function to >>> set the link status on kernel interfaces created with the KNI kernel >>

Re: [dpdk-dev] [PATCH v2 02/10] kni: separate releasing netdev from freeing KNI interface

2018-10-10 Thread Ferruh Yigit
On 10/10/2018 7:18 PM, Dan Gora wrote: > On Wed, Oct 10, 2018 at 2:25 PM Ferruh Yigit wrote: >> >> On 9/4/2018 1:36 AM, Dan Gora wrote: >>> Hi Ferruh, >>> >>> I remembered now the motivation behind separating rte_kni_release() >>> and rte_kni_free(). >>> >>> The problem is that the DPDK thread whi

[dpdk-dev] [PATCH v2] net/enic: fix counter action

2018-10-10 Thread John Daley
- track whether counter DMAs are active or not so they can be stopped if needed before DMA memory is freed - fix counter DMA shut-down by changing vnic_dev_counter_dma_cfg() to take the number of counters to DMA instead of high counter index and use num counters = 0 to shut off DMAs - remove

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

2018-10-10 Thread Yongseok Koh
On Wed, Oct 10, 2018 at 11:35:28AM +0300, Dekel Peled wrote: > This patch adds glue functions for operations: > - Create packet reformat (encap/decap) flow action. > - Destroy flow action. > > The new operations depend on HAVE_IBV_FLOW_ACTION_DV_SUPPORT. > > Signed-off-by: Dekel Peled > --- > d

Re: [dpdk-dev] [PATCH] check-experimental-syms.sh: prevent symbol matches on substrings

2018-10-10 Thread Neil Horman
On Wed, Oct 10, 2018 at 04:43:14PM +0200, Thomas Monjalon wrote: > 10/10/2018 16:29, Neil Horman: > > Thomas attempted to submit this: > > https://patches.dpdk.org/patch/46311/ > > > > The other day, because the other patches being submitted with it were > > breaking on a false positive from the c

Re: [dpdk-dev] [PATCH v1] eventdev: fix build error

2018-10-10 Thread Thomas Monjalon
09/10/2018 12:13, Ferruh Yigit: > build error: > .../lib/librte_eventdev/rte_event_eth_tx_adapter.c: > In function ‘txa_service_queue_del’: > .../lib/librte_eventdev/rte_event_eth_tx_adapter.c:800:7: > error: ‘ret’ may be used uninitialized in this function > [-Werror=maybe-uninitialized] > c

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

2018-10-10 Thread Honnappa Nagarahalli
> > Hi Jerin, > > Following the guide to use the PMU counters(KO inserted and DPDK > recompiled), the numbers increased 10+ folds(bigger numbers here mean > more precise?), is this valid and expected? This is correct, big numbers mean, more precise/granular results. > No significant difference w

[dpdk-dev] [PATCH v2 4/4] ethdev: support MAC address as iterator filter

2018-10-10 Thread Thomas Monjalon
The MAC addresses of a port can be matched with devargs. As the conflict between rte_ether.h and netinet/ether.h is not resolved, the MAC parsing is done with a rte_cmdline function. As a result, cmdline library becomes a dependency of ethdev. Signed-off-by: Thomas Monjalon --- lib/Makefile

[dpdk-dev] [PATCH v2 3/4] ethdev: support representor id as iterator filter

2018-10-10 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 Reviewed-by: Andrew Rybchenko --- drivers/net/i40e/i40e_vf_representor.c | 1 + drivers/net/ixgbe/ixgbe_vf_representor.c | 1 + drivers/net/

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

2018-10-10 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. A log is fixed by adding a missing line feed. Signed-off-by: Thomas Monjalon Acked-by: Andrew Rybchenko --- l

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

2018-10-10 Thread Thomas Monjalon
The new ethdev iterator lacks the support of filtering by representor port id or by MAC address. Changes in v2: - fix list parsing in kvargs - support mac= parameter Thomas Monjalon (4): kvargs: support list value ethdev: move representor parsing functions ethdev: support representor

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

2018-10-10 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 | 14 ++ test/test/test_kvargs.c| 21 +++

Re: [dpdk-dev] [PATCH v2] ethdev: complete closing of port

2018-10-10 Thread Thomas Monjalon
10/10/2018 20:01, Andrew Rybchenko: > On 10.10.2018 19:43, Thomas Monjalon wrote: > > 10/10/2018 17:01, Andrew Rybchenko: > >> On 10/10/18 11:39 AM, Thomas Monjalon wrote: > >>> 10/10/2018 09:50, Andrew Rybchenko: > On 10/10/18 10:44 AM, Thomas Monjalon wrote: > > 10/10/2018 08:15, Andrew

Re: [dpdk-dev] [PATCH] app/testpmd: fix flow query failure

2018-10-10 Thread John Daley (johndale)
Ok, makes sense now, both flow query and flow list work with this patch, yeah. Tested-by: John Daley Remember that https://patches.dpdk.org/patch/46221/ still needs to be reverted out of dpdk-next-net/master otherwise we are still broken. The patch was squished into e5b652ea34. -johnd >

Re: [dpdk-dev] [PATCH] net/ixgbe: put 5tuple check in front to jump over ntuple filter case

2018-10-10 Thread Zhang, Qi Z
> -Original Message- > From: Zhao1, Wei > Sent: Monday, October 8, 2018 2:46 AM > To: Zhang, Qi Z ; mocan > Cc: dev@dpdk.org; Lu, Wenzhuo > Subject: RE: Re:RE: [dpdk-dev] [PATCH] net/ixgbe: put 5tuple check in front > to jump over ntuple filter case > > Hi, > > > > -Original Mes

Re: [dpdk-dev] [PATCH v2 02/10] kni: separate releasing netdev from freeing KNI interface

2018-10-10 Thread Dan Gora
On Wed, Oct 10, 2018 at 2:25 PM Ferruh Yigit wrote: > > On 9/4/2018 1:36 AM, Dan Gora wrote: > > Hi Ferruh, > > > > I remembered now the motivation behind separating rte_kni_release() > > and rte_kni_free(). > > > > The problem is that the DPDK thread which calls rte_kni_release() > > _cannot_ be

Re: [dpdk-dev] [PATCH] net/e1000: enable MSI-x for linkup and other events in 82574

2018-10-10 Thread Zhang, Qi Z
> -Original Message- > From: Zhao1, Wei > Sent: Wednesday, October 10, 2018 12:14 AM > To: Luca Boccassi ; dev@dpdk.org > Cc: Lu, Wenzhuo ; Zhang, Qi Z > > Subject: RE: [dpdk-dev] [PATCH] net/e1000: enable MSI-x for linkup and > other events in 82574 > > Acked-by: Wei Zhao Applied to

Re: [dpdk-dev] [PATCH v2] ethdev: complete closing of port

2018-10-10 Thread Andrew Rybchenko
On 10.10.2018 19:43, Thomas Monjalon wrote: 10/10/2018 17:01, Andrew Rybchenko: On 10/10/18 11:39 AM, Thomas Monjalon wrote: 10/10/2018 09:50, Andrew Rybchenko: On 10/10/18 10:44 AM, Thomas Monjalon wrote: 10/10/2018 08:15, Andrew Rybchenko: On 10/10/18 1:17 AM, Thomas Monjalon wrote: After

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

2018-10-10 Thread Zhang, Qi Z
> -Original Message- > From: Zhao1, Wei > Sent: Wednesday, October 10, 2018 12:25 AM > To: Luca Boccassi ; dev@dpdk.org > Cc: Lu, Wenzhuo ; sta...@dpdk.org; Zhang, Qi Z > ; 3ch...@gmail.com > Subject: RE: [dpdk-dev] [PATCH] net/e1000: do not error out if rx_drop_en is > set > > Acked-by:

[dpdk-dev] [PATCH v2 7/8] net/softnic: add support for packet decap table action

2018-10-10 Thread Cristian Dumitrescu
Add support for packet decap table action. Signed-off-by: Cristian Dumitrescu --- drivers/net/softnic/rte_eth_softnic_action.c| 11 +++ drivers/net/softnic/rte_eth_softnic_cli.c | 38 + drivers/net/softnic/rte_eth_softnic_internals.h | 1 + drivers/net/soft

[dpdk-dev] [PATCH v2 3/8] net/softnic: add support for packet tag table action

2018-10-10 Thread Cristian Dumitrescu
Add support for packet tag table action. Signed-off-by: Cristian Dumitrescu --- drivers/net/softnic/rte_eth_softnic_action.c| 11 +++ drivers/net/softnic/rte_eth_softnic_cli.c | 38 + drivers/net/softnic/rte_eth_softnic_internals.h | 1 + drivers/net/softni

[dpdk-dev] [PATCH v2 8/8] net/softnic: add support for flow api vxlan decap action

2018-10-10 Thread Cristian Dumitrescu
Add support for ethdev flow API VXLAN decap action. Signed-off-by: Cristian Dumitrescu --- drivers/net/softnic/rte_eth_softnic_flow.c | 35 ++ 1 file changed, 35 insertions(+) diff --git a/drivers/net/softnic/rte_eth_softnic_flow.c b/drivers/net/softnic/rte_eth_soft

[dpdk-dev] [PATCH v2 5/8] pipeline: add table action for packet decap

2018-10-10 Thread Cristian Dumitrescu
This patch introduces a new table action for packet decapsulation which removes n bytes from the start of the input packet. The n is read from the current table entry. The following mbuf fields are updated by the action: data_off, data_len, pkt_len. Signed-off-by: Cristian Dumitrescu --- lib/lib

[dpdk-dev] [PATCH v2 6/8] examples/ip_pipeline: add support for packet decap table action

2018-10-10 Thread Cristian Dumitrescu
Add support for packet decap table action. Signed-off-by: Cristian Dumitrescu --- examples/ip_pipeline/action.c | 11 +++ examples/ip_pipeline/cli.c | 39 ++- examples/ip_pipeline/pipeline.h | 1 + examples/ip_pipeline/thread.c | 10 +

[dpdk-dev] [PATCH v2 4/8] net/softnic: add support for flow api mark action

2018-10-10 Thread Cristian Dumitrescu
Add support for ethdev flow API mark action. Signed-off-by: Cristian Dumitrescu --- drivers/net/softnic/rte_eth_softnic_flow.c | 35 ++ 1 file changed, 35 insertions(+) diff --git a/drivers/net/softnic/rte_eth_softnic_flow.c b/drivers/net/softnic/rte_eth_softnic_flo

[dpdk-dev] [PATCH v2 2/8] examples/ip_pipeline: add support for packet tag table action

2018-10-10 Thread Cristian Dumitrescu
Add support for the packet tag table action. Signed-off-by: Cristian Dumitrescu --- examples/ip_pipeline/action.c | 11 +++ examples/ip_pipeline/cli.c | 38 +- examples/ip_pipeline/pipeline.h | 1 + examples/ip_pipeline/thread.c | 10

[dpdk-dev] [PATCH v2 1/8] pipeline: add table action for packet tag

2018-10-10 Thread Cristian Dumitrescu
This patch introduces the packet tag table action which attaches a 32-bit value (the tag) to the current input packet. The tag is read from the current table entry. The tag is written into the mbuf->hash.fdir.hi and the flags PKT_RX_FDIR and PKT_RX_FDIR_ID are set into mbuf->ol_flags. Signed-off-b

Re: [dpdk-dev] [PATCH v2 02/10] kni: separate releasing netdev from freeing KNI interface

2018-10-10 Thread Ferruh Yigit
On 9/4/2018 1:36 AM, Dan Gora wrote: > Hi Ferruh, > > I remembered now the motivation behind separating rte_kni_release() > and rte_kni_free(). > > The problem is that the DPDK thread which calls rte_kni_release() > _cannot_ be the same thread which handles callbacks from the KNI > driver via rte

[dpdk-dev] [PATCH] app/testpmd: fix flow query failure

2018-10-10 Thread Mordechay Haimovsky
This patch fixes a bug found in port_flow_query routine which caused flow query command to fail with the following error "Caught error type 1 (cause unspecified): unknown object type to retrieve the name of: Invalid argument". Fixes: f7ba5e7a0f8c ("app/testpmd: rely on flow API conversion function

Re: [dpdk-dev] [PATCH v2] ethdev: complete closing of port

2018-10-10 Thread Thomas Monjalon
10/10/2018 17:01, Andrew Rybchenko: > On 10/10/18 11:39 AM, Thomas Monjalon wrote: > > 10/10/2018 09:50, Andrew Rybchenko: > >> On 10/10/18 10:44 AM, Thomas Monjalon wrote: > >>> 10/10/2018 08:15, Andrew Rybchenko: > On 10/10/18 1:17 AM, Thomas Monjalon wrote: > > After closing a port, it

Re: [dpdk-dev] [PATCH] app/testpmd: fix flow list command

2018-10-10 Thread Adrien Mazarguil
On Wed, Oct 10, 2018 at 04:27:59PM +, Mordechay Haimovsky wrote: > Hi Adrien, > You are correct, the bug is not where we thought it is, moreover the fix > breaks > the CLI and should be rejected. > We investigated more and found that the bug is in the port_flow_query routine > Which passes an

Re: [dpdk-dev] [PATCH] test: reduce duration for timer autotest

2018-10-10 Thread Pattan, Reshma
Hi > -Original Message- > From: Parthasarathy, JananeeX M > Sent: Saturday, September 22, 2018 12:55 PM > To: dev@dpdk.org > Cc: Pattan, Reshma ; rsanf...@akamai.com; > Parthasarathy, JananeeX M > Subject: [PATCH] test: reduce duration for timer autotest > > > /* pick random time

Re: [dpdk-dev] [PATCH] app/testpmd: fix flow list command

2018-10-10 Thread Mordechay Haimovsky
Hi Adrien, You are correct, the bug is not where we thought it is, moreover the fix breaks the CLI and should be rejected. We investigated more and found that the bug is in the port_flow_query routine Which passes an incorrect argument to rte_flow_conv as follows: ret = rte_flow_conv(

Re: [dpdk-dev] [PATCH v3 0/3] ethdev: add generic L2/L3 tunnel encapsulation actions

2018-10-10 Thread Adrien Mazarguil
On Wed, Oct 10, 2018 at 01:17:01PM +, Ori Kam wrote: > > -Original Message- > > From: Adrien Mazarguil > > On Wed, Oct 10, 2018 at 09:00:52AM +, Ori Kam wrote: > > > > > > On 10/7/2018 1:57 PM, Ori Kam wrote: > > > > In addtion the parameter to to the encap action is a list of

Re: [dpdk-dev] [dpdk-announce] DPDK Summit North America

2018-10-10 Thread O'Driscoll, Tim
Just a quick reminder that the CFP deadline for this event is October 22nd, so if you're planning to submit a proposal you have less than 2 weeks left now. You can submit proposals at: https://events.linuxfoundation.org/events/dpdknorthamerica2018/dpdk-na-program/cfp/. If you're attending, you

Re: [dpdk-dev] [PATCH v2] ethdev: complete closing of port

2018-10-10 Thread Andrew Rybchenko
On 10/10/18 11:39 AM, Thomas Monjalon wrote: 10/10/2018 09:50, Andrew Rybchenko: On 10/10/18 10:44 AM, Thomas Monjalon wrote: 10/10/2018 08:15, Andrew Rybchenko: On 10/10/18 1:17 AM, Thomas Monjalon wrote: After closing a port, it cannot be restarted. So there is no reason to not free all ass

Re: [dpdk-dev] [PATCH v3 0/6] kni: add API to set link status on kernel interface

2018-10-10 Thread Dan Gora
On Wed, Oct 10, 2018 at 11:16 AM Ferruh Yigit wrote: > > On 9/27/2018 1:32 AM, Dan Gora wrote: > > Hi All, > > > > Attached is version 3 of a patchset to add a new API function to > > set the link status on kernel interfaces created with the KNI kernel > > module. > > > > v3 > > > > * Use sep

Re: [dpdk-dev] [PATCH v2 1/5] kni: add API to set link status on kernel interface

2018-10-10 Thread Dan Gora
On Wed, Oct 10, 2018 at 11:09 AM Ferruh Yigit wrote: > > Yes, I understand that.. As I pointed out previously, if there is no > > physical device which corresponds to this KNI interface, the > > application can: > > > > 1) Not use this API at all, just as they do now. > > This API has nothing wit

Re: [dpdk-dev] [PATCH v3 1/4] config: use one single config option for C11 memory model

2018-10-10 Thread Ferruh Yigit
On 10/8/2018 10:11 AM, phil.y...@arm.com wrote: > Keep only single config option RTE_USE_C11_MEM_MODEL for C11 memory > model, so all modules can leverage C11 atomic extension by enable this > option. > > Signed-off-by: Phil Yang > Reviewed-by: Honnappa Nagarahalli > Reviewed-by: Gavin Hu > Ack

[dpdk-dev] [PATCH v3] net/mlx5: support e-switch TCP-flags flow filter

2018-10-10 Thread Mordechay Haimovsky
This patch adds support for offloading flow rules with TCP-flags filter to mlx5 eswitch Hardwrae. With mlx5 it is possible to offload a limited set of flow rules to the mlxsw (or e-switch) using the DPDK flow commands using the "transfer" attribute. This set of flow rules also supports filtering a

Re: [dpdk-dev] [PATCH] check-experimental-syms.sh: prevent symbol matches on substrings

2018-10-10 Thread Thomas Monjalon
10/10/2018 16:29, Neil Horman: > Thomas attempted to submit this: > https://patches.dpdk.org/patch/46311/ > > The other day, because the other patches being submitted with it were > breaking on a false positive from the check-experimental-syms check. > > The problem was that the experimental symb

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

2018-10-10 Thread Ferruh Yigit
On 10/10/2018 11:06 AM, Gavin Hu (Arm Technology China) wrote: > > >> -Original Message- >> From: Phil Yang (Arm Technology China) >> Sent: Wednesday, October 10, 2018 5:59 PM >> To: Stephen Hemminger >> Cc: dev@dpdk.org; jerin.ja...@caviumnetworks.com; Gavin Hu (Arm >> Technology China)

Re: [dpdk-dev] [PATCH v5 1/3] net/tap: add queue and port ids in Rx/Tx queues structures

2018-10-10 Thread Raslan Darawsheh
Hi, Just sent a new version with the commit log reworded to answer the "why" question you mentioned. Thx for your reviews. Kindest regards, Raslan Darawsheh > -Original Message- > From: Thomas Monjalon > Sent: Wednesday, October 10, 2018 5:08 PM > To: Wiles, Keith ; Raslan Darawsheh >

[dpdk-dev] [PATCH v6 3/3] net/tap: allow secondary process to access primary device queues

2018-10-10 Thread Raslan Darawsheh
In the case the device is created by the primary process, the secondary must request some file descriptors to attach the queues. The file descriptors are shared via IPC Unix socket. Thanks to the IPC synchronization, the secondary process is now able to do Rx/Tx on a TAP created by the primary pro

Re: [dpdk-dev] [PATCH v5 3/3] net/tap: add queues when attaching from secondary process

2018-10-10 Thread Raslan Darawsheh
Just sent a new Version with the commit log reworded as mentioned. Kindest regards, Raslan Darawsheh > -Original Message- > From: Wiles, Keith > Sent: Wednesday, October 10, 2018 3:48 PM > To: Raslan Darawsheh > Cc: Thomas Monjalon ; dev@dpdk.org; Shahaf > Shuler ; Ori Kam ; Yigit, > F

[dpdk-dev] [PATCH v6 1/3] net/tap: add queue and port ids in Rx/Tx queues structures

2018-10-10 Thread Raslan Darawsheh
Port and queue ids are added to easily map the file descriptors stored in each process private. --- changes in v6: - reword the commit log Signed-off-by: Raslan Darawsheh --- drivers/net/tap/rte_eth_tap.c | 3 +++ drivers/net/tap/rte_eth_tap.h | 3 +++ 2 files changed, 6 insertions(+) diff

[dpdk-dev] [PATCH v6 2/3] net/tap: move fds of Rx/Tx queues to be in process private

2018-10-10 Thread Raslan Darawsheh
fd's cannot be shared between processes, and each process need to have it's own fd's pointer. Signed-off-by: Raslan Darawsheh --- drivers/net/tap/rte_eth_tap.c | 93 +-- drivers/net/tap/rte_eth_tap.h | 7 +++- drivers/net/tap/tap_flow.c| 3 +- driver

[dpdk-dev] [PATCH] check-experimental-syms.sh: prevent symbol matches on substrings

2018-10-10 Thread Neil Horman
Thomas attempted to submit this: https://patches.dpdk.org/patch/46311/ The other day, because the other patches being submitted with it were breaking on a false positive from the check-experimental-syms check. The problem was that the experimental symbol check script matched on the regexs "\.text

Re: [dpdk-dev] [PATCH v3 0/6] kni: add API to set link status on kernel interface

2018-10-10 Thread Ferruh Yigit
On 9/27/2018 1:32 AM, Dan Gora wrote: > Hi All, > > Attached is version 3 of a patchset to add a new API function to > set the link status on kernel interfaces created with the KNI kernel > module. > > v3 > > * Use separate function to test rte_kni_update_link() in 'test' app. > > * Separat

[dpdk-dev] [PATCH v2] doc: note min required kernel version increase for 19.02

2018-10-10 Thread Kevin Traynor
Updating docs to reflect decision made at the techboard that the min kernel version should be bumped from 3.2 to the latest longterm stable release (3.16), but that compatiblity for commonly used distribution kernels should be kept also. Signed-off-by: Kevin Traynor Acked-by: Maxime Coquelin Ack

[dpdk-dev] [PATCH v4 2/2] drivers/net: use sleep delay by default for intel NICs

2018-10-10 Thread Ilya Maximets
NICs uses different delays up to a second during their configuration. It makes no sense to busy-wait so long wasting CPU cycles and preventing any other threads to execute on the same CPU core. These busy polling are the rudiments that came from the kernel drivers where you can not sleep in interru

[dpdk-dev] [PATCH v4 0/2] CPU non-blocking delay

2018-10-10 Thread Ilya Maximets
For meson build without deprecation warnings following patch should be applied first: http://patches.dpdk.org/patch/46064/ Version 4: * Fixed return value checking for nanosleep(). It doesn't return EINTR, it sets the errno. Version 3: * Minor rebase on top of curren

[dpdk-dev] [PATCH v4 1/2] eal: add nanosleep based delay function

2018-10-10 Thread Ilya Maximets
Add a new rte_delay_us_sleep() function that uses nanosleep(). This function can be used by applications to not implement their own nanosleep() based callback and by internal DPDK code if CPU non-blocking delay needed. Signed-off-by: Ilya Maximets --- lib/librte_eal/common/eal_common_timer.c

Re: [dpdk-dev] [PATCH v2 1/5] kni: add API to set link status on kernel interface

2018-10-10 Thread Ferruh Yigit
On 10/3/2018 8:07 PM, Dan Gora wrote: > On Fri, Sep 28, 2018 at 5:03 AM Ferruh Yigit wrote: >> >> On 9/28/2018 12:51 AM, Dan Gora wrote: >>> On Thu, Sep 27, 2018 at 8:44 PM, Ferruh Yigit >>> wrote: > Well, yes the link_status (link up, link down) _is_ applied to the KNI > interface. Whe

Re: [dpdk-dev] [PATCH v5 1/3] net/tap: add queue and port ids in Rx/Tx queues structures

2018-10-10 Thread Thomas Monjalon
10/10/2018 14:50, Wiles, Keith: > > > On Oct 10, 2018, at 2:03 AM, Raslan Darawsheh wrote: > > > > Signed-off-by: Raslan Darawsheh > > This title for the patch is the what we did not why we did it, should that be > changed? To me it does not convey the reason or we would need to add a more >

Re: [dpdk-dev] [PATCH v4 20/22] net/atlantic: LED control DPDK and private APIs

2018-10-10 Thread Ferruh Yigit
On 10/10/2018 2:35 PM, Igor Russkikh wrote: > Hi Ferruh, > >>> +int rte_pmd_atl_dev_led_control(int port, int control); >> >> What is the intention here, making PMD specific public API? >> If so .map file is missing but we discourage using PMD specific APIs, >> >> can't it be possible to extend ex

Re: [dpdk-dev] [PATCH v4 20/22] net/atlantic: LED control DPDK and private APIs

2018-10-10 Thread Igor Russkikh
Hi Ferruh, >> +int rte_pmd_atl_dev_led_control(int port, int control); > > What is the intention here, making PMD specific public API? > If so .map file is missing but we discourage using PMD specific APIs, > > can't it be possible to extend exiting led related dev_ops in a generic way to > cove

Re: [dpdk-dev] [PATCH] app/testpmd: display devargs in port info output

2018-10-10 Thread Iremonger, Bernard
> -Original Message- > From: Yigit, Ferruh > Sent: Wednesday, October 10, 2018 12:42 PM > To: Lu, Wenzhuo ; Wu, Jingjing > ; Iremonger, Bernard > Cc: dev@dpdk.org; Yigit, Ferruh > Subject: [PATCH] app/testpmd: display devargs in port info output > > Devargs may affect how device works bu

Re: [dpdk-dev] [PATCH v4 00/22] net/atlantic: Aquantia aQtion 10G NIC Family DPDK PMD driver

2018-10-10 Thread Igor Russkikh
On 10.10.2018 13:32, Ferruh Yigit wrote: > Hi Igor, > > I put some comments on individual patches, please check them. > > Also can you please run "./devtools/check-git-log.sh -22" and fix reported > warnings there? Hi Ferruh, Thanks alot for the detailed review and comments, we'll rework the

[dpdk-dev] [PATCH] test: reduce test time for func reentrancy ut

2018-10-10 Thread Naga Suresh Somarowthu
Reduced test duration for func_reentrancy_autotest. Reduced MAX_LPM_ITER_TIMES, introduced new macro MAX_ITER_ONCE to reduce the unique key check and altered the macro MAX_ITER_TIMES to MAX_ITER_MULTI. Combined for loops thereby reduced snprintf calls and repeated iterations. Such that the duration

Re: [dpdk-dev] [PATCH v3 0/3] ethdev: add generic L2/L3 tunnel encapsulation actions

2018-10-10 Thread Ori Kam
Hi PSB. > -Original Message- > From: Adrien Mazarguil > Sent: Wednesday, October 10, 2018 3:02 PM > To: Ori Kam > Cc: Andrew Rybchenko ; Ferruh Yigit > ; step...@networkplumber.org; Declan Doherty > ; dev@dpdk.org; Dekel Peled > ; Thomas Monjalon ; Nélio > Laranjeiro ; Yongseok Koh > ; S

Re: [dpdk-dev] [PATCH] maintainers: use registered name for OCTEON TX references

2018-10-10 Thread Jerin Jacob
-Original Message- > Date: Wed, 10 Oct 2018 08:20:56 +0530 > From: Anoob Joseph > To: Ferruh Yigit , Jerin Jacob > , Thomas Monjalon > Cc: Anoob Joseph , Narayana Prasad > , Shally Verma > , dev@dpdk.org > Subject: [PATCH] maintainers: use registered name for OCTEON TX references > X-M

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

2018-10-10 Thread Remy Horton
On 09/10/2018 16:11, Stephen Hemminger wrote: On Tue, 09 Oct 2018 16:31:24 +0200 [..] This is getting complex enough that doing a real parser maybe necessary. I thought the same thing back in April with the port representor patchsets. Quickly run out of things to use as delimiters otherwis

[dpdk-dev] [PATCH v2 3/3] net/mlx5: rewrite MAC address by E-Switch

2018-10-10 Thread Jack Min
Offload following modify MAC address actions to E-Switch via TC-Flower driver - RTE_FLOW_ACTION_TYPE_SET_MAC_SRC - RTE_FLOW_ACTION_TYPE_SET_MAC_DST The corresponding rte_flow_item_eth must be present in rte_flow pattern Only support modify outer layer MAC address The example testpmd command is:

[dpdk-dev] [PATCH v2 1/3] ethdev: add generic MAC address rewrite actions

2018-10-10 Thread Jack Min
rte_flow actions: - RTE_FLOW_ACTION_TYPE_SET_MAC_SRC - RTE_FLOW_ACTION_TYPE_SET_MAC_DST added in order to offload to NIC The rte_flow_itme_eth must be present in rte_flow pattern Signed-off-by: Xiaoyu Min Acked-by: Yongseok Koh Acked-by: Andrew Rybchenko --- doc/guides/prog_guide/rte_flow.rst

[dpdk-dev] [PATCH v2 2/3] app/testpmd: add commands of modify MAC address

2018-10-10 Thread Jack Min
add commands to support following actions: - RTE_FLOW_ACTION_TYPE_SET_MAC_SRC - RTE_FLOW_ACTION_TYPE_SET_MAC_DST Signed-off-by: Xiaoyu Min Acked-by: Yongseok Koh --- app/test-pmd/cmdline_flow.c | 50 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 8 2

[dpdk-dev] [PATCH v2 0/3] ethdev: add generic MAC address rewrite actions

2018-10-10 Thread Jack Min
This series is for RFC[1] and depends on patch[2] Patch 1 adds generic MAC address rewrite actions to flow API Patch 2 adds testpmd commands for that Patch 3 offloads these actions on Mellanox MLX5 by using E-Switch rule [1]: https://patches.dpdk.org/patch/44005/ [2]: https://patches.dpdk.org/pat

[dpdk-dev] [PATCH v3 1/3] ethdev: add generic TTL rewrite actions

2018-10-10 Thread Jack Min
rewrite TTL by decrease or just set it directly it's not necessary to check if the final result is zero or not This is slightly different from the one defined by openflow and more generic Signed-off-by: Xiaoyu Min Acked-by: Yongseok Koh --- doc/guides/prog_guide/rte_flow.rst | 30 +

[dpdk-dev] [PATCH v3 2/3] app/testpmd: add commands of modify TTL

2018-10-10 Thread Jack Min
add commands which supports following TTL actions: - RTE_FLOW_ACTION_TYPE_DEC_TTL - RTE_FLOW_ACTION_TYPE_SET_TTL Signed-off-by: Xiaoyu Min Acked-by: Yongseok Koh --- app/test-pmd/cmdline_flow.c | 34 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 5 +++ 2 f

[dpdk-dev] [PATCH v3 3/3] net/mlx5: rewrite TTL by E-Switch

2018-10-10 Thread Jack Min
Offload following modify TTL actions to E-Switch via TC-Flower driver - RTE_FLOW_ACTION_TYPE_SET_TTL - RTE_FLOW_ACTION_TYPE_DEC_TTL The corresponding IP protocol rte_flow_item_ipv[4|6] must be present in rte_flow pattern otherwith PMD return error The example testpmd commands are: flow crea

  1   2   >