Re: [dpdk-dev] [PATCH v2 14/29] eal/arm64: change barrier definitions to macros

2017-01-02 Thread Jianbo Liu
On 27 December 2016 at 17:49, Jerin Jacob wrote: > Change rte_?wb definitions to macros in order to use rte_*mb? > keep consistent with other barrier definitions in > the file. > > Suggested-by: Jianbo Liu > Signed-off-by: Jerin Jacob > --- > .../common/include/arch/arm/rte_atomic_64.h

Re: [dpdk-dev] [PATCH v2 09/29] eal/arm64: define I/O device memory barriers for arm64

2017-01-02 Thread Jianbo Liu
On 27 December 2016 at 17:49, Jerin Jacob wrote: > CC: Jianbo Liu > Signed-off-by: Jerin Jacob > --- > lib/librte_eal/common/include/arch/arm/rte_atomic_64.h | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h > b/lib/librte_eal

Re: [dpdk-dev] [PATCH v2 07/29] eal/arm64: fix memory barrier definition for arm64

2017-01-02 Thread Jianbo Liu
On 27 December 2016 at 17:49, Jerin Jacob wrote: > dsb instruction based barrier is used for non smp > version of memory barrier. > > Fixes: d708f01b7102 ("eal/arm: add atomic operations for ARMv8") > > CC: Jianbo Liu > CC: sta...@dpdk.org > Signed-off-by: Jerin Jacob > --- > lib/librte_eal/com

Re: [dpdk-dev] reassembly app doesn't send pkt

2017-01-02 Thread 陆秋文
Hi, I have the same problem using 82599. When I sent a mbuf with multi-segment, the 82599 driver's tx_burst fuction will return 0, which means no packet sent. I have no solution. Some 82599 NICs can send these packet successfully, but some will fail. ?? I think this problem may related to vendor

[dpdk-dev] Deadlock in rte_mempool using multi-process shared memory

2017-01-02 Thread 陆秋文
Hi, I have some process running in DPDK which uses DPDK multi-process feature to communicate. Master process captures packets from NIC and put them to a ring buffer, which is shared between master and slave process. Sometimes, slave process use rte_pktmbuf_alloc() to alloc pktmbuf from the shared

[dpdk-dev] [PATCH v7 27/27] app/testpmd: add command to configure VMDq

2017-01-02 Thread Wenzhuo Lu
From: Bernard Iremonger Add the following command to configure VMDq: port config vmdq Add new command to testpmd user guide. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 60 + app/test-pmd/testpmd.c | 126 +++

Re: [dpdk-dev] [PATCH v2 8/9] examples/l3fwd: add parse-ptype option

2017-01-02 Thread Yuanhan Liu
On Fri, Dec 30, 2016 at 07:30:19AM +, Tan, Jianfeng wrote: > Hi, > > > -Original Message- > > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > > Sent: Friday, December 30, 2016 2:40 PM > > To: Tan, Jianfeng > > Cc: dev@dpdk.org; step...@networkplumber.org > > Subject: Re: [PATC

[dpdk-dev] [PATCH v7 25/27] net/i40e: set/clear VF stats from PF

2017-01-02 Thread Wenzhuo Lu
From: Qi Zhang This patch add support to get/clear VF statistics from PF side. Two APIs are added: rte_pmd_i40e_get_vf_stats. rte_pmd_i40e_reset_vf_stats. Signed-off-by: Qi Zhang --- drivers/net/i40e/i40e_ethdev.c| 81 +++ drivers/net/i40e/rte_pmd_i40e.h

[dpdk-dev] [PATCH v7 26/27] net/i40e: fix segmentation fault in close

2017-01-02 Thread Wenzhuo Lu
From: Bernard Iremonger The vsi's have already been released, so the second call to i40e_vsi_release results in a segmentation fault. The second call to i40e_vsi_release has been removed. Fixes: 3cb446b4aeb2 ("i40e: free vmdq vsi when closing") CC: sta...@dpdk.org Signed-off-by: Bernard Iremon

[dpdk-dev] [PATCH v7 24/27] net/i40e: enhance in sanity check of MAC

2017-01-02 Thread Wenzhuo Lu
From: "Chen Jing D(Mark)" When VF sends request to add a new MAC address, PF host will check if it's a non-zero or unicast address, or it will return with error. In fact, VF still can set multicast address. This change remove to check if it's a unicast address. Signed-off-by: Chen Jing D(Mark)

[dpdk-dev] [PATCH v7 22/27] app/testpmd: add command to test VF VLAN tag on i40e

2017-01-02 Thread Wenzhuo Lu
From: Bernard Iremonger command is: set vf vlan tag port_id vf_id on|off Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 98 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 2 files changed, 105 insertions(+) diff --git a/a

[dpdk-dev] [PATCH v7 19/27] app/testpmd: use unicast promiscuous mode on i40e

2017-01-02 Thread Wenzhuo Lu
Add testpmd CLI to set VF unicast promiscuous mode on i40e. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 93 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 9 +++ 2 files changed, 102 insertions(+) diff --git a/app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v7 21/27] app/testpmd: add command to test VF broadcast mode on i40e

2017-01-02 Thread Wenzhuo Lu
From: Bernard Iremonger Add command to call rte_pmd_i40e_set_vf_broadcast. Add set vf broadcast in testpmd_funcs.rst file. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 92 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++

[dpdk-dev] [PATCH v7 23/27] app/testpmd: handle i40e in VF VLAN filter command

2017-01-02 Thread Wenzhuo Lu
From: Bernard Iremonger modify set_vf_rx_vlan function to handle the i40e PMD. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 41 ++--- app/test-pmd/config.c | 13 - app/test-pmd/testpmd.h | 2 -- 3 files changed, 34 insertions(+

[dpdk-dev] [PATCH v7 18/27] app/testpmd: use VFD APIs on i40e

2017-01-02 Thread Wenzhuo Lu
The new VF Daemon (VFD) APIs is implemented on i40e. Change testpmd code to use them, including VF MAC anti-spoofing, VF VLAN anti-spoofing, TX loopback, VF VLAN strip, VF VLAN insert. Signed-off-by: Wenzhuo Lu Signed-off-by: Chen Jing D(Mark) Signed-off-by: Bernard Iremonger --- app/test-pmd/

[dpdk-dev] [PATCH v7 20/27] app/testpmd: use multicast promiscuous mode on i40e

2017-01-02 Thread Wenzhuo Lu
Add testpmd CLI to set VF multicast promiscuous mode on i40e. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 93 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 9 +++ 2 files changed, 102 insertions(+) diff --git a/app/test-pmd/cmdline.

[dpdk-dev] [PATCH v7 17/27] net/i40e: set VF VLAN filter from PF

2017-01-02 Thread Wenzhuo Lu
From: Bernard Iremonger add rte_pmd_i40e_set_vf_vlan_filter API. User can call the API on PF to enable/disable a set of VF's VLAN filters. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 52 +++ drivers/net/i40e/rte_pmd_i40e.h

[dpdk-dev] [PATCH v7 16/27] net/i40e: set VF VLAN tag from PF

2017-01-02 Thread Wenzhuo Lu
From: Bernard Iremonger Add rte_pmd_i40e_set_vf_vlan_tag API. User can call the API on PF to enable/disable a specific VF's VLAN tag. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 59 +++ drivers/net/i40e/rte_pmd_i40e.h |

[dpdk-dev] [PATCH v7 12/27] net/i40e: fix VF MAC address assignment

2017-01-02 Thread Wenzhuo Lu
From: Ferruh Yigit If PF sets vf->mac_addr, in VF initialization hw->mac.addr will be set to that same value. It is possible to check if PF set a MAC address or not through the hw->mac.addr variable. hw->mac.addr set by i40e_vf_parse_hw_config(), call stack is: In PF side i40e_pf_host_process_c

[dpdk-dev] [PATCH v7 15/27] net/i40e: set VF broadcast mode from PF

2017-01-02 Thread Wenzhuo Lu
From: Bernard Iremonger Support enabling/disabling VF broadcast mode from PF. User can call the API on PF to enable/disable a specific VF's broadcast mode. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 47 +++ drivers/net/i40e/rte_

[dpdk-dev] [PATCH v7 14/27] net/i40e: set VF VLAN insertion from PF

2017-01-02 Thread Wenzhuo Lu
From: Bernard Iremonger Support inserting VF VLAN id from PF. User can call the API on PF to insert a VLAN id to a specific VF. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 56 +++ drivers/net/i40e/rte_pmd_i40e.h | 19 ++

[dpdk-dev] [PATCH v7 11/27] net/i40e: set VF MAC from VF support

2017-01-02 Thread Wenzhuo Lu
From: Ferruh Yigit Support changing VF default MAC address. This function is not supported if PF set the MAC address for the PF. Signed-off-by: Ferruh Yigit --- drivers/net/i40e/i40e_ethdev.h| 4 +++- drivers/net/i40e/i40e_ethdev_vf.c | 49 +-- 2 files

[dpdk-dev] [PATCH v7 13/27] net/i40e: set VF VLAN strip from PF

2017-01-02 Thread Wenzhuo Lu
From: "Chen Jing D(Mark)" Add a function to configure vlan strip enable/disable for specific SRIOV VF device. Signed-off-by: Chen Jing D(Mark) --- drivers/net/i40e/i40e_ethdev.c| 26 ++ drivers/net/i40e/rte_pmd_i40e.h | 19 +++ driv

[dpdk-dev] [PATCH v7 10/27] net/i40e: set VF MAC from PF support

2017-01-02 Thread Wenzhuo Lu
From: Ferruh Yigit Support setting VF MAC address from PF. User can call the API on PF to set a specific VF's MAC address. This will remove all existing MAC filters. Signed-off-by: Ferruh Yigit --- drivers/net/i40e/i40e_ethdev.c| 42 +++ drivers/net/i40

[dpdk-dev] [PATCH v7 09/27] net/i40e: fix VF reset flow

2017-01-02 Thread Wenzhuo Lu
From: Qi Zhang Add missing step during VF reset: PF should set I40E_VFGEN_RSTAT to ACTIVE at end of the VF reset operation or VF driver may not able to detect that reset is already completed. This patch also remove the unnecessary enum for vfr state. Fixes: 4861cde46116 ("i40e: new poll mode dri

[dpdk-dev] [PATCH v7 06/27] net/i40e: set VF unicast promisc mode from PF

2017-01-02 Thread Wenzhuo Lu
Support enabling/disabling VF unicast promiscuous mode from PF. User can call the API on PF to enable/disable a specific VF's unicast promiscuous mode. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 39 +++ drivers/net/i40e/rte_pmd_i40e.h

[dpdk-dev] [PATCH v7 08/27] net/i40e: enable VF MTU change

2017-01-02 Thread Wenzhuo Lu
From: Qi Zhang This patch implement mtu_set ops for i40e VF. Signed-off-by: Qi Zhang --- drivers/net/i40e/i40e_ethdev_vf.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index 12da0ec

[dpdk-dev] [PATCH v7 07/27] net/i40e: set VF multicast promisc mode from PF

2017-01-02 Thread Wenzhuo Lu
Support enabling/disabling VF multicast promiscuous mode from PF. User can call the API on PF to enable/disable a specific VF's multicast promiscuous mode. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 39 +++ drivers/net/i40e/rte_pmd_i40e.

[dpdk-dev] [PATCH v7 04/27] net/i40e: set VF VLAN anti-spoofing from PF

2017-01-02 Thread Wenzhuo Lu
Support enabling/disabling VF VLAN anti-spoofing from PF. User can call the API on PF to enable/disable a specific VF's VLAN anti-spoofing. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 116 +- drivers/net/i40e/i40e_ethdev.h|

[dpdk-dev] [PATCH v7 01/27] net/i40e: support link status notification

2017-01-02 Thread Wenzhuo Lu
Add an API to expose the ability, that PF can notify VF when link status changes, to APP. So if PF APP doesn't want to enable interruption but check link status by itself, PF APP can let VF know link status changed. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/Makefile | 4 ++-

[dpdk-dev] [PATCH v7 05/27] net/i40e: set Tx loopback from PF

2017-01-02 Thread Wenzhuo Lu
Support enabling/disabling TX loopback from PF. User can call the API on PF to enable/disable TX loopback for all the PF and VFs. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 222 ++ drivers/net/i40e/rte_pmd_i40e.h | 16 +++ dri

[dpdk-dev] [PATCH v7 02/27] net/i40e: add callback to user on VF to PF mbox msg

2017-01-02 Thread Wenzhuo Lu
The callback asks the user application if it is allowed to perform the mailbox messages. If the return value from user is RTE_PMD_I40E_MB_EVENT_PROCEED then continue. If ACK or NACK, do nothing and send not_supported to VF. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_pf.c | 230 +++

[dpdk-dev] [PATCH v7 03/27] net/i40e: set VF MAC anti-spoofing from PF

2017-01-02 Thread Wenzhuo Lu
Support enabling/disabling VF MAC anti-spoofing from PF. User can call the API on PF to enable/disable a specific VF's MAC anti-spoofing. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 63 +++ drivers/net/i40e/rte_pmd_i40e.h | 19 +

[dpdk-dev] [PATCH v7 00/27] Support VFD on i40e

2017-01-02 Thread Wenzhuo Lu
1, VF Daemon (VFD) VFD is an idea to control all the VFs from PF. As we need to support the scenario kernel PF + DPDK VF, DPDK follows the interface between kernel PF + kernel VF. We don't want to introduce too many new messages between PF and VF. So this patch set adds some new APIs to control VFs

Re: [dpdk-dev] [PATCH v4 0/7] Add MACsec offload support for ixgbe

2017-01-02 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: Bie, Tiwei > Sent: Wednesday, December 28, 2016 11:41 PM > To: dev@dpdk.org > Cc: adrien.mazarg...@6wind.com; Lu, Wenzhuo; Mcnamara, John; > olivier.m...@6wind.com; thomas.monja...@6wind.com; Ananyev, Konstantin; > Zhang, Helin; Dai, Wei; Wang, Xiao W > Su

Re: [dpdk-dev] [PATCH v2 16/18] net/ixgbe: create consistent filter

2017-01-02 Thread Xing, Beilei
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wei Zhao > Sent: Friday, December 30, 2016 3:53 PM > To: dev@dpdk.org > Cc: Zhao1, Wei ; Lu, Wenzhuo > > Subject: [dpdk-dev] [PATCH v2 16/18] net/ixgbe: create consistent filter > > This patch adds a function to

Re: [dpdk-dev] [PATCH v4 17/17] net/i40e: flush tunnel filters

2017-01-02 Thread Xing, Beilei
Hi Jeff, > -Original Message- > From: Guo, Jia > Sent: Tuesday, January 3, 2017 11:25 AM > To: Xing, Beilei ; Wu, Jingjing > ; Zhang, Helin > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v4 17/17] net/i40e: flush tunnel filters > > > > On 12/30/2016 11:25 AM, Beilei Xing wrote: >

Re: [dpdk-dev] [PATCH v4 17/17] net/i40e: flush tunnel filters

2017-01-02 Thread Guo, Jia
On 12/30/2016 11:25 AM, Beilei Xing wrote: This patch adds i40e_tunnel_filter_flush function to flush all tunnel filters, including filters in SW and HW. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 37 + 1 file changed, 37 insertions(+)

Re: [dpdk-dev] [PATCH v2 15/18] net/ixgbe: parse flow director filter

2017-01-02 Thread Zhao1, Wei
Hi, beilei > -Original Message- > From: Xing, Beilei > Sent: Monday, January 2, 2017 11:24 PM > To: Zhao1, Wei ; dev@dpdk.org > Cc: Zhao1, Wei ; Lu, Wenzhuo > > Subject: RE: [dpdk-dev] [PATCH v2 15/18] net/ixgbe: parse flow director filter > > > > -Original Message- > > From: de

Re: [dpdk-dev] [PATCH v2 02/18] net/ixgbe: store flow director filter

2017-01-02 Thread Zhao1, Wei
Hi, beilei > -Original Message- > From: Xing, Beilei > Sent: Monday, January 2, 2017 5:59 PM > To: Zhao1, Wei ; dev@dpdk.org > Cc: Lu, Wenzhuo ; Zhao1, Wei > > Subject: RE: [dpdk-dev] [PATCH v2 02/18] net/ixgbe: store flow director filter > > > From: dev [mailto:dev-boun...@dpdk.org] On

Re: [dpdk-dev] [PATCH v2 16/18] net/ixgbe: create consistent filter

2017-01-02 Thread Zhao1, Wei
Hi,beilei > -Original Message- > From: Xing, Beilei > Sent: Tuesday, January 3, 2017 10:04 AM > To: Zhao1, Wei ; dev@dpdk.org > Cc: Zhao1, Wei ; Lu, Wenzhuo > > Subject: RE: [dpdk-dev] [PATCH v2 16/18] net/ixgbe: create consistent filter > > > > > -Original Message- > > From: d

Re: [dpdk-dev] [PATCH v2 16/18] net/ixgbe: create consistent filter

2017-01-02 Thread Zhao1, Wei
Hi ,beilei > -Original Message- > From: Xing, Beilei > Sent: Tuesday, January 3, 2017 10:34 AM > To: Zhao1, Wei > Subject: RE: [dpdk-dev] [PATCH v2 16/18] net/ixgbe: create consistent filter > > > -Original Message- > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wei Zha

[dpdk-dev] [WARNING: A/V UNSCANNABLE][PATCH v3 6/6] doc: distributor library changes for new burst api

2017-01-02 Thread David Hunt
Signed-off-by: David Hunt --- doc/guides/prog_guide/packet_distrib_lib.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/prog_guide/packet_distrib_lib.rst b/doc/guides/prog_guide/packet_distrib_lib.rst index b5bdabb..dffd4ad 100644 --- a/doc/guides/prog_guide/packet_distrib_

Re: [dpdk-dev] [PATCH v2 15/18] net/ixgbe: parse flow director filter

2017-01-02 Thread Zhao1, Wei
Hi, beilei > -Original Message- > From: Xing, Beilei > Sent: Monday, January 2, 2017 11:24 PM > To: Zhao1, Wei ; dev@dpdk.org > Cc: Zhao1, Wei ; Lu, Wenzhuo > > Subject: RE: [dpdk-dev] [PATCH v2 15/18] net/ixgbe: parse flow director filter > > > > -Original Message- >

[dpdk-dev] [WARNING: A/V UNSCANNABLE][PATCH v3 5/6] example: distributor app showing burst api

2017-01-02 Thread David Hunt
Signed-off-by: David Hunt --- examples/distributor/main.c | 508 ++-- 1 file changed, 390 insertions(+), 118 deletions(-) diff --git a/examples/distributor/main.c b/examples/distributor/main.c index e7641d2..eebfb74 100644 --- a/examples/distributor/main.c

[dpdk-dev] [WARNING: A/V UNSCANNABLE][PATCH v3 4/6] test: add distributor_perf autotest

2017-01-02 Thread David Hunt
Signed-off-by: David Hunt --- app/test/test_distributor_perf.c | 148 --- 1 file changed, 137 insertions(+), 11 deletions(-) diff --git a/app/test/test_distributor_perf.c b/app/test/test_distributor_perf.c index 7947fe9..b273bf9 100644 --- a/app/test/test_dist

Re: [dpdk-dev] [PATCH] net/i40e: fix wrong return value when handling PF message

2017-01-02 Thread Lu, Wenzhuo
Hi Ferruh, > -Original Message- > From: Yigit, Ferruh > Sent: Friday, December 23, 2016 12:59 AM > To: Lu, Wenzhuo; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix wrong return value when handling > PF message > > On 12/21/2016 8:29 AM, Wenzhuo Lu wrote: > > When VF receives

[dpdk-dev] [WARNING: A/V UNSCANNABLE][PATCH v3 3/6] test: unit tests for new distributor burst api

2017-01-02 Thread David Hunt
Signed-off-by: David Hunt --- app/test/test_distributor.c | 501 ++-- 1 file changed, 392 insertions(+), 109 deletions(-) diff --git a/app/test/test_distributor.c b/app/test/test_distributor.c index 85cb8f3..3871f86 100644 --- a/app/test/test_distributor.c

[dpdk-dev] [WARNING: A/V UNSCANNABLE][PATCH v3 1/6] lib: distributor performance enhancements

2017-01-02 Thread David Hunt
Now sends bursts of up to 8 mbufs to each worker, and tracks the in-flight flow-ids (atomic scheduling) New file with a new api, similar to the old API except with _burst at the end of the function names Signed-off-by: David Hunt --- lib/librte_distributor/Makefile| 2 + lib/l

[dpdk-dev] [WARNING: A/V UNSCANNABLE][PATCH v3 2/6] lib: add distributor vector flow matching

2017-01-02 Thread David Hunt
Signed-off-by: David Hunt --- lib/librte_distributor/Makefile| 4 + lib/librte_distributor/rte_distributor_burst.c | 11 +- lib/librte_distributor/rte_distributor_match_sse.c | 113 + lib/librte_distributor/rte_distributor_priv.h | 6 ++ 4 fil

[dpdk-dev] [WARNING: A/V UNSCANNABLE][PATCH v3 0/6] distributor-performance-improvements

2017-01-02 Thread David Hunt
This patch aims to improve the throughput of the distributor library. It uses a similar handshake mechanism to the previous version of the library, in that bits are used to indicate when packets are ready to be sent to a worker and ready to be returned from a worker. One main difference is that in

Re: [dpdk-dev] [PATCH v2 16/18] net/ixgbe: create consistent filter

2017-01-02 Thread Xing, Beilei
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wei Zhao > Sent: Friday, December 30, 2016 3:53 PM > To: dev@dpdk.org > Cc: Zhao1, Wei ; Lu, Wenzhuo > > Subject: [dpdk-dev] [PATCH v2 16/18] net/ixgbe: create consistent filter > > This patch adds a function to

[dpdk-dev] [PATCH 6/6] eal: VMBUS infrastructure

2017-01-02 Thread Stephen Hemminger
Add support for VMBUS on Hyper-V/Azure. VMBUS is similar to PCI but has different addressing and internal API's. Signed-off-by: Stephen Hemminger --- lib/librte_eal/common/Makefile | 2 +- lib/librte_eal/common/eal_common_devargs.c | 7 + lib/librte_eal/common/eal_common_option

[dpdk-dev] [PATCH 5/6] ethdev: break ethernet driver and pci_driver connection

2017-01-02 Thread Stephen Hemminger
There are multiple buses and device types now. Therefore it no longer makes sense that PCI driver information is part of the Ethernet driver structure. This patch removes pci_driver from eth_driver and introduces a new combined structure for use in all existing PMD's. The rationale is that althoug

[dpdk-dev] [PATCH 4/6] cxgbe: don't refer to eth_dev->pci_dev

2017-01-02 Thread Stephen Hemminger
Later patches remove pci_dev from the ethernet device structure. Fix the cxgbe code to just use it's own name when forming zone name. Signed-off-by: Stephen Hemminger --- drivers/net/cxgbe/sge.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/net/cxgbe/sge.c

[dpdk-dev] [PATCH 2/6] i40e: don't refer to eth_dev->pci_dev

2017-01-02 Thread Stephen Hemminger
Later patches remove pci_dev from the ethernet device structure. Fix the i40e code to just use it's own name when forming zone name. Signed-off-by: Stephen Hemminger --- drivers/net/i40e/i40e_fdir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_fdir.

[dpdk-dev] [PATCH 3/6] vmxnet3: don't refer to eth_dev->pci_dev

2017-01-02 Thread Stephen Hemminger
Fix the vmxnet3 code to just use it's own name when forming zone name. Signed-off-by: Stephen Hemminger --- drivers/net/vmxnet3/vmxnet3_rxtx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/vmxnet3/vmxnet3_rxtx.c b/drivers/net/vmxnet3/vmxnet3_rxtx.c index b

[dpdk-dev] [PATCH 1/6] ethdev: increase length ethernet device internal name

2017-01-02 Thread Stephen Hemminger
Allow sufficicent space for UUID in string form (36+1) which is necessary with VMBUS. Signed-off-by: Stephen Hemminger --- doc/guides/rel_notes/deprecation.rst | 3 +++ lib/librte_ether/rte_ethdev.h| 6 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_

[dpdk-dev] [PATCH 0/6] VMBUS and driver infrastructure

2017-01-02 Thread Stephen Hemminger
These are the patches to allow building drivers on VMBUS with DPDK. The Hyper-V PMD (later patch set) builds on this. Most of the infrastructure for the bus and device model is already done, the one missing piece was that the eth_driver structure still assumed all devices were PCI. Stephen Hemmi

Re: [dpdk-dev] DPDK Acceleartion Enhancement - compression

2017-01-02 Thread Stephen Hemminger
On Tue, 27 Dec 2016 16:08:04 + (UTC) Ant loves honey wrote: > Is this the correct forum to ask question about adding code for DPDK > Acceleration Enhancement?  Or this is strictly for code review? If so, please > direct me to the correct forum. > I have already read these 2 documents: >

Re: [dpdk-dev] [PATCH v1 2/2] Test cases for rte_memcmp functions

2017-01-02 Thread Thomas Monjalon
2016-06-07 11:09, Wang, Zhihong: > From: Ravi Kerur [mailto:rke...@gmail.com] > > Zhilong, Thomas, > > > > If there is enough interest within DPDK community I can work on adding > > support > > for 'unaligned access' and 'test cases' for it. Please let me know either > > way. > > Hi Ravi, > >

Re: [dpdk-dev] Running DPDK as an unprivileged user

2017-01-02 Thread Stephen Hemminger
On Mon, 02 Jan 2017 15:32:08 +0100 Thomas Monjalon wrote: > 2016-12-29 17:14, Stephen Hemminger: > > On Thu, 29 Dec 2016 20:41:21 + > > "Walker, Benjamin" wrote: > > > My second question is whether the user should be allowed to > > > mix uio and vfio usage simultaneously. For vfio, the > >

Re: [dpdk-dev] [PATCH v2 3/5] test: add distributor_perf autotest

2017-01-02 Thread Hunt, David
On 22/12/2016 12:19 PM, Jerin Jacob wrote: On Thu, Dec 22, 2016 at 04:37:06AM +, David Hunt wrote: + struct rte_distributor_burst *d = arg; + unsigned int count = 0; + unsigned int num = 0; + unsigned int id = __sync_fetch_and_add(&worker_idx, 1); Use rte_atomic eq

Re: [dpdk-dev] DPDK Accelaration Enhancement

2017-01-02 Thread Thomas Monjalon
2016-12-26 06:19, Ant loves honey: > I am trying to figure out what it takes to have compression > support on DPDK such as new PMD driver, additional defines > and/or API or chipset initialization since the Intel QAT can > support compression. You need to solve 2 new things in DPDK: - introduce a

Re: [dpdk-dev] [PATCH RFC 0/2] Allow vectorized Rx with 4096 desc ring size on Intel NICs.

2017-01-02 Thread Thomas Monjalon
2016-12-27 08:03, Ilya Maximets: > Hello. > Ferruh, Thomas, is there a chance for this to be accepted to 17.02? > Maybe I should resend this patch-set without 'RFC' tag? Yes it should be integrated in 17.02. Ferruh, any news?

Re: [dpdk-dev] [PATCH v3 1/4] ethdev: add firmware information get

2017-01-02 Thread Thomas Monjalon
2016-12-27 20:30, Qiming Yang: > /** > + * Retrieve the firmware version of a device. > + * > + * @param port_id > + * The port identifier of the device. > + * @param fw_major > + * A array pointer to store the major firmware version of a device. > + * @param fw_minor > + * A array pointer t

Re: [dpdk-dev] [PATCH v2 15/18] net/ixgbe: parse flow director filter

2017-01-02 Thread Xing, Beilei
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wei Zhao > Sent: Friday, December 30, 2016 3:53 PM > To: dev@dpdk.org > Cc: Zhao1, Wei ; Lu, Wenzhuo > Subject: [dpdk-dev] [PATCH v2 15/18] net/ixgbe: parse flow director filter > > check if the rule is a flow di

Re: [dpdk-dev] DPDK Acceleartion Enhancement - compression

2017-01-02 Thread Thomas Monjalon
2016-12-27 16:08, Ant loves honey: > I am interested in making DPDK able to to use the Intel QuickAssist > Technology for data compression. I think this will help IP payload > compression and save bandwidth. We could add a new driver type for compression: drivers/compress/qat/

Re: [dpdk-dev] DPDK Acceleartion Enhancement - compression

2017-01-02 Thread Thomas Monjalon
Hi, 2016-12-27 16:08, Ant loves honey: > Is this the correct forum to ask question about adding code for DPDK > Acceleration Enhancement? Or this is strictly for code review? If so, please > direct me to the correct forum. > I have already read these 2 documents: > >- http://dpdk.org/do

Re: [dpdk-dev] Running DPDK as an unprivileged user

2017-01-02 Thread Thomas Monjalon
2016-12-29 17:14, Stephen Hemminger: > On Thu, 29 Dec 2016 20:41:21 + > "Walker, Benjamin" wrote: > > My second question is whether the user should be allowed to > > mix uio and vfio usage simultaneously. For vfio, the > > physical addresses are really DMA addresses and are best > > when arbit

Re: [dpdk-dev] [RFC 00/23] Refactor eal_init to remove panic() calls

2017-01-02 Thread Thomas Monjalon
Hi Aaron, 2016-12-30 10:25, Aaron Conole: > In many cases, it's enough to simply let the application know that the > call to initialize DPDK has failed. A complete halt can then be > decided by the application based on error returned (and the app could > even attempt a possible re-attempt after s

Re: [dpdk-dev] [PATCH v2 11/18] net/ixgbe: parse n-tuple filter

2017-01-02 Thread Xing, Beilei
> + > + filter->dst_port_mask = tcp_mask->hdr.dst_port; > + filter->src_port_mask = tcp_mask->hdr.src_port; > + if (tcp_mask->hdr.tcp_flags == 0xFF) { It's better to use UINT8_MAX here. > + filter->flags |= RTE_NTUPLE_FLAGS_TCP_FLAG; > +

Re: [dpdk-dev] [PATCH v2 11/18] net/ixgbe: parse n-tuple filter

2017-01-02 Thread Xing, Beilei
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wei Zhao > Sent: Friday, December 30, 2016 3:53 PM > To: dev@dpdk.org > Cc: Zhao1, Wei ; Lu, Wenzhuo > Subject: [dpdk-dev] [PATCH v2 11/18] net/ixgbe: parse n-tuple filter > > Add rule validate function and check

Re: [dpdk-dev] [PATCH v2 09/18] net/ixgbe: store and restore L2 tunnel configuration

2017-01-02 Thread Xing, Beilei
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wei Zhao > Sent: Friday, December 30, 2016 3:53 PM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; Zhao1, Wei > Subject: [dpdk-dev] [PATCH v2 09/18] net/ixgbe: store and restore L2 tunnel > configuration > > Add support f

Re: [dpdk-dev] [PATCH v2 03/18] net/ixgbe: store L2 tunnel filter

2017-01-02 Thread Xing, Beilei
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wei Zhao > Sent: Friday, December 30, 2016 3:53 PM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; Zhao1, Wei > Subject: [dpdk-dev] [PATCH v2 03/18] net/ixgbe: store L2 tunnel filter > > Add support for storing L2 tunnel

Re: [dpdk-dev] [PATCH v2 02/18] net/ixgbe: store flow director filter

2017-01-02 Thread Xing, Beilei
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wei Zhao > Sent: Friday, December 30, 2016 3:53 PM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; Zhao1, Wei > Subject: [dpdk-dev] [PATCH v2 02/18] net/ixgbe: store flow director filter > > Add support for storing flow director filter in SW. > > Sig

Re: [dpdk-dev] [PATCH v2 2/3] crypto/aesni_gcm: fix iv size in PMD capabilities

2017-01-02 Thread Azarewicz, PiotrX T
> Subject: Re: [dpdk-dev] [PATCH v2 2/3] crypto/aesni_gcm: fix iv size in PMD > capabilities > > > Subject: [dpdk-dev] [PATCH v2 2/3] crypto/aesni_gcm: fix iv size in > > PMD capabilities > > > > This patch sets iv size in aesni gcm PMD to 12 bytes to be conformant > > with nist SP800-38D. > > > >

Re: [dpdk-dev] [PATCH v2 1/3] crypto/aesni_gcm: fix J0 padding bytes for GCM

2017-01-02 Thread Azarewicz, PiotrX T
Hi Arek, > > Subject: [dpdk-dev] [PATCH v2 1/3] crypto/aesni_gcm: fix J0 padding > > bytes for GCM > > > > This commit fixes pre-counter block (J0) padding by clearing four most > > significant bytes before setting initial counter value. > > > > Fixes: b2bb3597470c ("crypto/aesni_gcm: move pre-cou