Re: [dpdk-dev] [PATCH v2 0/9] rxq interrupt mode for virtio PMD

2016-12-28 Thread Tan, Jianfeng
Forget to mention a key part, when we bind virtio to vfio-pci driver in the VM, we need to insert vfio kernel module like this: $ modprobe vfio enable_unsafe_noiommu_mode=1 $ modprobe vfio-pci Thanks, Jianfeng > -Original Message- > From: Tan, Jianfeng > Sent: Thursday, December 29, 201

[dpdk-dev] [PATCH v2 7/9] net/virtio: unmapping queue/irq when close device

2016-12-28 Thread Jianfeng Tan
When closing virtio devices, close eventfds, free the struct to store queue/irq mapping. Signed-off-by: Jianfeng Tan --- drivers/net/virtio/virtio_ethdev.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/driver

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

2016-12-28 Thread Jianfeng Tan
To support those devices that do not provide packet type info when receiving packets, add a new option, --parse-ptype, to analyze packet type in the Rx callback. Signed-off-by: Jianfeng Tan --- examples/l3fwd-power/main.c | 60 - 1 file changed, 59 ins

[dpdk-dev] [PATCH v2 9/9] examples/l3fwd-power: fix not stop and close device

2016-12-28 Thread Jianfeng Tan
As it gets killed, in SIGINT signal handler, device is not stopped and closed. In virtio's case, vector assignment in the KVM is not deassigned. This patch will invoke dev_stop() and dev_close() in signal handler. Fixes: d7937e2e3d12 ("power: initial import") Signed-off-by: Jianfeng Tan --- ex

[dpdk-dev] [PATCH v2 6/9] net/virtio: unbind intr/eventfd when stop device

2016-12-28 Thread Jianfeng Tan
When virtio devices get stopped, we just tell the kernel to unbind the mapping between interrupts and eventfds. Note: it behaves differently from other NICs which close eventfds, free struct. In virtio, we do those things when close device in following patch. Signed-off-by: Jianfeng Tan --- dri

[dpdk-dev] [PATCH v2 4/9] net/virtio: add Rx queue intr enable/disable functions

2016-12-28 Thread Jianfeng Tan
This patch implements interrupt enable/disable functions for each Rx queue. And we rely on flags of avail queue as the hint for virtio device to interrupt virtio driver or not. Signed-off-by: Jianfeng Tan --- drivers/net/virtio/virtio_ethdev.c | 22 ++ drivers/net/virtio/virt

[dpdk-dev] [PATCH v2 5/9] net/virtio: setup rxq interrupts

2016-12-28 Thread Jianfeng Tan
This patch mainly allocates structure to store queue/irq mapping, and configure queue/irq mapping down through PCI ops. It also creates eventfds for each Rx queue and tell the kernel about the eventfd/intr binding. Mostly importantly, different from previous NICs (usually implements these logic in

[dpdk-dev] [PATCH v2 3/9] net/virtio: add PCI ops for queue/irq binding

2016-12-28 Thread Jianfeng Tan
Add handler in virtio_pci_ops to set queue/irq bind. Signed-off-by: Jianfeng Tan --- drivers/net/virtio/virtio_pci.c | 29 + drivers/net/virtio/virtio_pci.h | 5 + 2 files changed, 34 insertions(+) diff --git a/drivers/net/virtio/virtio_pci.c b/drivers/net/virti

[dpdk-dev] [PATCH v2 0/9] rxq interrupt mode for virtio PMD

2016-12-28 Thread Jianfeng Tan
v2: - Add PCI queue/irq config ops. - Move rxq interrupt settings before sending DRIVER OK. Historically, virtio PMD can only be binded to igb_uio or uio_pci_generic, and not for vfio-pci. Besides, quote from http://dpdk.org/doc/guides-16.11/rel_notes/release_2_1.html: "Per queue RX interrup

[dpdk-dev] [PATCH v2 1/9] net/virtio: fix rewriting LSC flag

2016-12-28 Thread Jianfeng Tan
The LSC flag is decided according to if VIRTIO_NET_F_STATUS feature is negotiated. Copy the PCI info after the judgement will rewrite the correct result. Fixes: 198ab33677c9 ("net/virtio: move device initialization in a function") CC: sta...@dpdk.org Signed-off-by: Jianfeng Tan --- drivers/net

[dpdk-dev] [PATCH v2 2/9] net/virtio: add Rx descriptor check

2016-12-28 Thread Jianfeng Tan
Under interrupt mode, rx_descriptor_done is used as an indicator for applications to check if some number of packets are ready to be received. This patch enables this by checking used ring's local consumed idx with shared (with backend) idx. Signed-off-by: Jianfeng Tan --- drivers/net/virtio/vi

Re: [dpdk-dev] [PATCH v3 16/33] drivers/pool/dpaa2: adding hw offloaded mempool

2016-12-28 Thread Santosh Shukla
Hi Shreyansh, On Thu, Dec 29, 2016 at 10:46:35AM +0530, Shreyansh Jain wrote: > From: Hemant Agrawal > > Adding NXP DPAA2 architecture specific mempool support > Each mempool instance is represented by a DPBP object > from the FSL-MC bus. > > This patch also registers a dpaa2 type MEMPOOL OPS >

[dpdk-dev] [PATCH v3 30/33] net/dpaa2: add support for non hw buffer pool packet transmit

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_rxtx.c | 74 -- 1 file changed, 72 insertions(+), 2 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index 7d73bde..55068e5 100644 ---

[dpdk-dev] [PATCH v3 33/33] drivers/common/dpaa2: frame queue based dq storage alloc

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal This patch adds generic functions for allowing dq storage for the frame queues. As the frame queues are common resource for different drivers this is helpful. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 32 ++

[dpdk-dev] [PATCH v3 32/33] bus/fslmc: add support for dmamap to ARM SMMU

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_vfio.c | 97 ++ drivers/bus/fslmc/fslmc_vfio.h | 1 + drivers/bus/fslmc/rte_pmd_fslmcbus_version.map | 1 + drivers/net/dpaa2/dpaa2_ethdev.c |

[dpdk-dev] [PATCH v3 31/33] net/dpaa2: enabling the use of physical addresses

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal DPAA2 - ARM support both physical and virtual addressing. This patch enables the compile time usages of physical address instead of virtual address. The current usages are also set to default as Physical Address. Signed-off-by: Hemant Agrawal --- config/common_base

[dpdk-dev] [PATCH v3 29/33] net/dpaa2: enable stashing for LS2088A devices

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal As the hardware determines which core will process which packet, performance is boosted by direct cache warming/stashing as well as by providing biasing for core-to-flow affinity, which ensures that flow-specific data structures can remain in the core’s cache. This patch ena

[dpdk-dev] [PATCH v3 21/33] net/dpaa2: attach the buffer pool to dpni

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal This patch configures a MC-DPNI based DPAA2 PMD network port with a DPBP based buffer pool. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 10 ++ drivers/net/dpaa2/Makefile | 3 ++ drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 57

[dpdk-dev] [PATCH v3 28/33] net/dpaa2: basic stats support

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c | 86 ++ 2 files changed, 87 insertions(+) diff --git a/doc/guides/nics/features/dpaa2.ini b/doc/guides/nics/features/dpaa2.

[dpdk-dev] [PATCH v3 20/33] net/dpaa2: configure mac address at init

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 28 drivers/net/dpaa2/dpaa2_ethdev.h | 3 +++ 2 files changed, 31 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 9066aa5

[dpdk-dev] [PATCH v3 27/33] net/dpaa2: link status update

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c | 107 + 2 files changed, 108 insertions(+) diff --git a/doc/guides/nics/features/dpaa2.ini b/doc/guides/nics/features/dpaa

[dpdk-dev] [PATCH v3 26/33] net/dpaa2: rx packet parsing and packet type support

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/base/dpaa2_hw_dpni_annot.h | 257 +++ drivers/net/dpaa2/dpaa2_ethdev.c | 23 +++ drivers/net/dpaa2/dpaa2_rxtx.c | 91

[dpdk-dev] [PATCH v3 24/33] net/dpaa2: add mtu config support

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 4 drivers/net/dpaa2/dpaa2_ethdev.c| 34 + 3 files changed, 39 insertions(+) diff --git a/doc/guides/ni

[dpdk-dev] [PATCH v3 25/33] net/dpaa2: add packet rx and tx support

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 54 +++ drivers/net/dpaa2/Makefile | 1 + drivers/net/dpaa2/dpaa2_ethdev.c| 4 + drivers/net/dpaa2/dpaa2_ethdev.h| 3 + drivers/net/dpaa2/dpaa2_rxtx.c

[dpdk-dev] [PATCH v3 23/33] net/dpaa2: add support for promiscuous mode

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c | 41 ++ 2 files changed, 42 insertions(+) diff --git a/doc/guides/nics/features/dpaa2.ini b/doc/guides/nics/features/dpaa2.

[dpdk-dev] [PATCH v3 22/33] net/dpaa2: add support for l3 and l4 checksum offload

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 2 + drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 6 +++ drivers/net/dpaa2/dpaa2_ethdev.c| 72 +++-- 3 files changed, 76 insertions(+), 4 deletions(-) diff --git

[dpdk-dev] [PATCH v3 19/33] net/dpaa2: add rss flow distribution

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/Makefile | 1 + drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 287 + drivers/net/dpaa2/dpaa2_ethdev.c | 31 +++- drivers/net/d

[dpdk-dev] [PATCH v3 18/33] net/dpaa2: adding eth ops to dpaa2

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 20 ++ drivers/net/dpaa2/Makefile | 3 + drivers/net/dpaa2/dpaa2_ethdev.c| 412 +++- drivers/net/

[dpdk-dev] [PATCH v3 17/33] drivers/common/dpaa2: dpio routine to affine to crypto threads

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 45 ++ drivers/bus/fslmc/portal/dpaa2_hw_dpio.h | 3 ++ drivers/bus/fslmc/rte_pmd_fslmcbus_version.map | 1 + 3 files changed, 49 insertions(+) diff --git a/d

[dpdk-dev] [PATCH v3 15/33] drivers/common/dpaa2: dpio portal driver

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal The portal driver is bound to DPIO objects discovered on the fsl-mc bus and provides services that: - allow other drivers, such as the Ethernet driver, to enqueue and dequeue frames for their respective objects A system will typically allocate 1 DPIO object per CPU to allo

[dpdk-dev] [PATCH v3 16/33] drivers/pool/dpaa2: adding hw offloaded mempool

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal Adding NXP DPAA2 architecture specific mempool support Each mempool instance is represented by a DPBP object from the FSL-MC bus. This patch also registers a dpaa2 type MEMPOOL OPS Signed-off-by: Hemant Agrawal --- config/common_base| 1 +

[dpdk-dev] [PATCH v3 14/33] bus/fslmc: add debug log message support

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal Signed-off-by: Hemant Agrawal --- config/common_base| 7 +++ config/defconfig_arm64-dpaa2-linuxapp-gcc | 5 ++ drivers/bus/fslmc/Makefile| 5 ++ drivers/bus/fslmc/fslmc_logs.h| 76 +++ driver

[dpdk-dev] [PATCH v3 13/33] net/dpaa2: introducing NXP dpaa2 pmd driver

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal add support for fsl-mc bus based dpaa2 pmd driver. Signed-off-by: Hemant Agrawal --- config/common_base | 4 + config/defconfig_arm64-dpaa2-linuxapp-gcc | 5 + drivers/bus/Makefile| 2 + drivers/common/Makefile

[dpdk-dev] [PATCH v3 12/33] bus/fslmc: scan for net and sec devices

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal This patch will add support in fslmc vfio process to scan and parse the dpni and dpseci object for net and crypto devices. It will add the scanned devices to the fslmc bus. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_bus.c | 2 +- drivers/bus/fslmc/fslmc_vf

[dpdk-dev] [PATCH v3 11/33] bus/fslmc: add vfio support

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal Add support for using VFIO for dpaa2 based fsl-mc bus. There are some differences in the way vfio used for fsl-mc bus from the eal vfio. - The scanning of bus for individual objects on the basis of the DPRC container. - The use and mapping of MC portal for object access

[dpdk-dev] [PATCH v3 10/33] bus/fslmc: add mc dpseci object support

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal dpseci represent a instance of SEC HW in DPAA2. Signed-off-by: Cristian Sovaiala Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/Makefile | 1 + drivers/bus/fslmc/mc/dpseci.c | 527 drivers/bus/fslmc/mc/fsl_d

[dpdk-dev] [PATCH v3 09/33] bus/fslmc: add mc dpbp object support

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal DPBP object represent a hw based buffer pool instance in the DPAA2 hardware. Signed-off-by: Alex Marginean Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/Makefile | 1 + drivers/bus/fslmc/mc/dpbp.c| 230 ++

[dpdk-dev] [PATCH v3 07/33] bus/fslmc: add mc dpni object support

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal This patch add support for dpni object support in MC driver. DPNI represent a network interface object in DPAA2. Signed-off-by: Alex Marginean Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/Makefile |1 + drivers/bus/fslmc/mc/dpni.c

[dpdk-dev] [PATCH v3 08/33] bus/fslmc: add mc dpio object support

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal This patch adds the DPIO object support in MC driver. DPIO - Data Path Input Output represent the processing context to access the QBMAN HW for packet I/O. Signed-off-by: Alex Marginean Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/Makefile |

[dpdk-dev] [PATCH v3 06/33] bus/fslmc: introduce mc object functions

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal This patch intoduces the DPAA2 MC(Management complex Driver). This is a minimal set of low level functions to send and receive commands to the fsl-mc. It includes support for basic management commands and commands to manipulate MC objects. This is common to be used by vario

[dpdk-dev] [PATCH v3 05/33] bus/fslmc: introducing fsl-mc bus driver

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal The fslmc bus driver is a rte_bus driver which scans the fsl-mc bus for NXP DPAA2 SoCs. Signed-off-by: Hemant Agrawal --- config/common_base | 6 ++ config/defconfig_arm64-dpaa2-linuxapp-gcc | 5 ++ drivers/Makefile

[dpdk-dev] [PATCH v3 03/33] doc: add dpaa2 nic details

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal This patch adds the NXP dpaa2 architecture and pmd details in the Network interfaces section. Signed-off-by: Hemant Agrawal --- MAINTAINERS| 8 + doc/guides/nics/dpaa2.rst | 594 + doc/guides/nics/f

[dpdk-dev] [PATCH v3 02/33] eal/vfio: adding vfio utility functions in map file

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal adding extra vfio utility functions to map file. They will be used by other vfio supported buses like fslmc bus for NXP DPAA2 devices Signed-off-by: Hemant Agrawal --- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 3 +++ 1 file changed, 3 insertions(+) diff --git a/li

[dpdk-dev] [PATCH v3 01/33] mk/dpaa2: add the crc support to the machine type

2016-12-28 Thread Shreyansh Jain
From: Hemant Agrawal Signed-off-by: Hemant Agrawal Acked-by: Jerin Jacob --- mk/machine/dpaa2/rte.vars.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mk/machine/dpaa2/rte.vars.mk b/mk/machine/dpaa2/rte.vars.mk index 8541633..e4735c2 100644 --- a/mk/machine/dpaa2/rt

[dpdk-dev] [PATCH v3 00/33] NXP DPAA2 PMD

2016-12-28 Thread Shreyansh Jain
** Sending v3 on behalf of Hemant Agrawal ** The patch series adds NXP’s QorIQ-Layerscape DPAA2 Architecture based fsl-mc bus driver and network SoC PMD. This version of the driver supports NXP LS208xA, LS204xA and LS108x families Network SoCs. DPAA2, or Data Path Acceleration Architecture, is

Re: [dpdk-dev] [PATCH v2 01/17] net/i40e: store ethertype filter

2016-12-28 Thread Xing, Beilei
> -Original Message- > From: Xing, Beilei > Sent: Thursday, December 29, 2016 12:03 PM > To: Wu, Jingjing ; Zhang, Helin > > Cc: dev@dpdk.org > Subject: RE: [PATCH v2 01/17] net/i40e: store ethertype filter > > > -Original Message- > > From: Wu, Jingjing > > Sent: Wednesday, Dec

Re: [dpdk-dev] [PATCH v2 01/17] net/i40e: store ethertype filter

2016-12-28 Thread Xing, Beilei
> -Original Message- > From: Wu, Jingjing > Sent: Wednesday, December 28, 2016 10:22 AM > To: Xing, Beilei ; Zhang, Helin > > Cc: dev@dpdk.org > Subject: RE: [PATCH v2 01/17] net/i40e: store ethertype filter > > > + > > +/* Delete ethertype filter in SW list */ static int > > +i40e_sw_eth

[dpdk-dev] [PATCH 2/2] vhost: start vhost servers once

2016-12-28 Thread Charles (Chas) Williams
Start a vhost server once during devinit instead of during device start and stop. Some vhost clients, QEMU, don't re-attaching to sockets when the vhost server is stopped and later started. Preserve existing behavior for vhost clients. Fixes: ee584e9710b9 ("vhost: add driver on top of the librar

[dpdk-dev] [PATCH 1/2] vhost: reference count fix for nb_started_ports

2016-12-28 Thread Charles (Chas) Williams
From: Wen Chiu Only increment and decrement nb_started_ports on the first and last device start and stop. Otherwise, nb_started_ports can become negative if a device is stopped multiple times. Fixes: ee584e9710b9 ("vhost: add driver on top of the library") Signed-off-by: Wen Chiu Reviewed-by:

[dpdk-dev] [PATCH v2] examples/ip_pipeline: fix coremask limitation

2016-12-28 Thread Sankar Chokkalingam
v2: Fixed coding style errors. v1: Issue: coremask used in IP Pipeline is limited to 64 cores. Solution: Modified coremask as an array of uint64_t to support RTE_MAX_LCORE Fixes: 7f64b9c004aa ("examples/ip_pipeline: rework config file syntax") Fixes: eb32fe7c5574 ("examples/ip_pipeline: rework i

Re: [dpdk-dev] [PATCH] examples/ip_pipeline: fix load balancing function in pass-through pipeline

2016-12-28 Thread Dumitrescu, Cristian
> -Original Message- > From: Singh, Jasvinder > Sent: Monday, November 21, 2016 1:38 PM > To: dev@dpdk.org > Cc: Dumitrescu, Cristian > Subject: [PATCH] examples/ip_pipeline: fix load balancing function in pass- > through pipeline > > This patch fixes the configuration file parsing erro

[dpdk-dev] [PATCH v4 6/7] doc: add ixgbe specific APIs

2016-12-28 Thread Tiwei Bie
Add information about the new ixgbe PMD APIs in the release note. Signed-off-by: Tiwei Bie --- doc/guides/rel_notes/release_17_02.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/doc/guides/rel_notes/release_17_02.rst b/doc/guides/rel_notes/release_17_02.rst index 180af82..34dba45

[dpdk-dev] [PATCH v4 7/7] doc: update the release notes for the reserved flags

2016-12-28 Thread Tiwei Bie
Add information about the reserved flags for PMD-specific API in the release note. Signed-off-by: Tiwei Bie --- doc/guides/rel_notes/release_17_02.rst | 12 1 file changed, 12 insertions(+) diff --git a/doc/guides/rel_notes/release_17_02.rst b/doc/guides/rel_notes/release_17_02.rs

[dpdk-dev] [PATCH v4 5/7] app/testpmd: add MACsec offload commands

2016-12-28 Thread Tiwei Bie
Below MACsec offload commands are added: - set macsec offload on encrypt on|off replay-protect on|off - set macsec offload off - set macsec sc tx|rx - set macsec sa tx|rx Also update the testpmd user guide. Signed-off-by: Tiwei Bie --- app/test-pmd/cmdline.c | 38

[dpdk-dev] [PATCH v4 4/7] net/ixgbe: add MACsec offload support

2016-12-28 Thread Tiwei Bie
MACsec (or LinkSec, 802.1AE) is a MAC level encryption/authentication scheme defined in IEEE 802.1AE that uses symmetric cryptography. This commit adds the MACsec offload support for ixgbe. Signed-off-by: Tiwei Bie --- drivers/net/ixgbe/ixgbe_ethdev.c| 481 +++

[dpdk-dev] [PATCH v4 3/7] ethdev: reserve capability flags for PMD-specific API

2016-12-28 Thread Tiwei Bie
Reserve a Tx capability flag and a Rx capability flag, that can be used by PMD to define its own capability flags when implementing the PMD-specific API. Suggested-by: Adrien Mazarguil Signed-off-by: Tiwei Bie --- lib/librte_ether/rte_ethdev.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[dpdk-dev] [PATCH v4 2/7] ethdev: reserve an event type for PMD-specific API

2016-12-28 Thread Tiwei Bie
Reserve an event type, that can be used by PMD to define its own event type when implementing the PMD-specific API. Suggested-by: Adrien Mazarguil Signed-off-by: Tiwei Bie --- lib/librte_ether/rte_ethdev.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib

[dpdk-dev] [PATCH v4 1/7] mbuf: reserve a Tx offload flag for PMD-specific API

2016-12-28 Thread Tiwei Bie
Reserve a Tx offload flag in mbuf, that can be used by PMD to define its own Tx offload flag when implementing the PMD-specific API. Suggested-by: Adrien Mazarguil Signed-off-by: Tiwei Bie --- lib/librte_mbuf/rte_mbuf.c | 2 ++ lib/librte_mbuf/rte_mbuf.h | 5 + 2 files changed, 7 insertions

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

2016-12-28 Thread Tiwei Bie
This patch set adds the MACsec offload support for ixgbe. The testpmd is also updated to support MACsec cmds. v2: - Update the documents for testpmd; - Update the release notes; - Reuse the functions provided by base code; v3: - Add the missing parts of MACsec mbuf flag and reorganize the patch s

Re: [dpdk-dev] DPDK v16.07 Build Failure with Unsupported OS CentOS 6.8

2016-12-28 Thread Shepard Siegel
Follow-Up: We're all set, thanks John Miller; and my apologies for incorrectly posting this to "dev" as opposed to "users" mailing list. -Shep On Wed, Dec 28, 2016 at 9:13 AM, Shepard Siegel < shepard.sie...@atomicrules.com> wrote: > A client of ours shipped us an IBM x3650 with CentOS 6.8 insta

[dpdk-dev] DPDK v16.07 Build Failure with Unsupported OS CentOS 6.8

2016-12-28 Thread Shepard Siegel
A client of ours shipped us an IBM x3650 with CentOS 6.8 installed. Our software team is off for the holidays. We use DPDK 16.07 and have had no issues with supported OSs. We understand that CentOS 6.8 is not supported for DPDK v16.07. Still, since IBM doesn't support CentOS 7 on the x3650, I figur

Re: [dpdk-dev] Packet is not being sent

2016-12-28 Thread Wiles, Keith
> On Dec 27, 2016, at 11:38 PM, April Teodoro wrote: > > > > > > From: April Teodoro > Sent: Wednesday, December 28, 2016 1:36 PM > To: dev@dpdk.org > Subject: Packet is not being sent > > > i, I am wondering what is causing the packet to be dropped. Please

Re: [dpdk-dev] DPDK: Inter VM communication of iperf3 TCP throughput is very low on same host compare to non DPDK throughput

2016-12-28 Thread Bodireddy, Bhanuprakash
>-Original Message- >From: Rajalakshmi Prabhakar [mailto:krajalaks...@tataelxsi.co.in] >Sent: Tuesday, December 27, 2016 9:52 AM >To: dev@dpdk.org; us...@dpdk.org >Cc: Bodireddy, Bhanuprakash >Subject: DPDK: Inter VM communication of iperf3 TCP throughput is very low >on same host compare

Re: [dpdk-dev] [PATCH v2 5/6] net/virtio: fix multiple process support

2016-12-28 Thread Yuanhan Liu
On Wed, Dec 28, 2016 at 07:02:41PM +0800, Yuanhan Liu wrote: ... > Cc: sta...@kernel.org I knew I would make a mistake like this some day :/ Not my first time typing wrong, but it's the first time sending it out. Sorry for that. Fixed in this reply. --yliu

[dpdk-dev] [PATCH v2 5/6] net/virtio: fix multiple process support

2016-12-28 Thread Yuanhan Liu
The introduce of virtio 1.0 support brings yet another set of ops, badly, it's not handled correctly, that it breaks the multiple process support. The issue is the data/function pointer may vary from different processes, and the old used to do one time set (for primary process only). That said, th

[dpdk-dev] [PATCH v2 4/6] net/virtio: store IO port info locally

2016-12-28 Thread Yuanhan Liu
Like vtpci_ops, the rte_pci_ioport has to store in local memory. This is basically for the rte_pci_device field is allocated from process local memory, but not from shared memory. Signed-off-by: Yuanhan Liu --- drivers/net/virtio/virtio_pci.c | 49 ++--- drive

[dpdk-dev] [PATCH v2 6/6] net/virtio: remove dead structure field

2016-12-28 Thread Yuanhan Liu
Actually, virtio_hw->dev is not used since the beginning when it's introduced. Remove it. Signed-off-by: Yuanhan Liu --- drivers/net/virtio/virtio_pci.c | 2 -- drivers/net/virtio/virtio_pci.h | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/net/virtio/virtio_pci.c b/drivers/net/virt

[dpdk-dev] [PATCH v2 3/6] net/virtio: store PCI operators pointer locally

2016-12-28 Thread Yuanhan Liu
We used to store the vtpci_ops at virtio_hw structure. The struct, however, is stored in shared memory. That means only one value is allowed. For the multiple process model, however, the address of vtpci_ops should be different among different processes. Take virtio PMD as example, the vtpci_ops i

[dpdk-dev] [PATCH v2 2/6] net/virtio: fix wrong Rx/Tx method for secondary process

2016-12-28 Thread Yuanhan Liu
If the primary enables the vector Rx/Tx path, the current code would let the secondary always choose the non vector Rx/Tx path. This results to a Rx/Tx method mismatch between primary and secondary process. Werid errors then may happen, something like: PMD: virtio_xmit_pkts() tx: virtqueue_enq

[dpdk-dev] [PATCH v2 1/6] ethdev: fix port data mismatched in multiple process model

2016-12-28 Thread Yuanhan Liu
Assume we have two virtio ports, 00:03.0 and 00:04.0. The first one is managed by the kernel driver, while the later one is managed by DPDK. Now we start the primary process. 00:03.0 will be skipped by DPDK virtio PMD driver (since it's being used by the kernel). 00:04.0 would be successfully init

[dpdk-dev] [PATCH v2 0/6] net/virtio: fix several multiple process issues

2016-12-28 Thread Yuanhan Liu
This patch series fixes few crash issues regarding to multiple process model. In my limited fuzzy test, now it works for both virtio 0.95 and 1.0, as well as for the case some virtio-net devices are managed by kernel device while some others are managed by DPDK. --- Maintaining the multiple proces

[dpdk-dev] [PATCH v4 5/6] net/mlx5: support mark flow action

2016-12-28 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_flow.c | 78 drivers/net/mlx5/mlx5_prm.h | 70 ++- drivers/net/mlx5/mlx5_rxtx.c | 12 ++- drivers/net/mlx5/mlx5_rxtx.h | 3 +

[dpdk-dev] [PATCH v4 6/6] net/mlx5: extend IPv4 flow item

2016-12-28 Thread Nelio Laranjeiro
This commits adds: - Type of service - Next protocol ID Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_flow.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_fl

[dpdk-dev] [PATCH v4 4/6] net/mlx5: support VXLAN flow item

2016-12-28 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_flow.c | 72 1 file changed, 66 insertions(+), 6 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 549da6c..1ec0ef5 100644

[dpdk-dev] [PATCH v4 0/6] net/mlx5: support flow API

2016-12-28 Thread Nelio Laranjeiro
Changes in v4: - Simplify flow parsing by using a graph. - Add VXLAN flow item. - Add mark flow action. - Extend IPv4 filter item (Type of service, Next Protocol ID). Changes in v3: - Fix Ethernet ether type issue. Changes in v2: - Fix several issues. - Support VLAN filtering. Nelio L

[dpdk-dev] [PATCH v4 1/6] net/mlx5: add preliminary flow API support

2016-12-28 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/Makefile| 1 + drivers/net/mlx5/mlx5.h | 16 ++ drivers/net/mlx5/mlx5_fdir.c | 15 ++ drivers/net/mlx5/mlx5_flow.c | 124 +++ 4 files changed, 156 insertio

[dpdk-dev] [PATCH v4 2/6] net/mlx5: support basic flow items and actions

2016-12-28 Thread Nelio Laranjeiro
Introduce initial software for rte_flow rules. VLAN, VXLAN are still not supported. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.h | 3 + drivers/net/mlx5/mlx5_flow.c| 928 ++-- drivers/net/mlx5/mlx5_trig

[dpdk-dev] [PATCH v4 3/6] net/mlx5: support VLAN flow item

2016-12-28 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_flow.c | 54 +++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index ebae2b5..549da6c 100644 -

Re: [dpdk-dev] [PATCH v2 07/17] net/i40e: add flow validate function

2016-12-28 Thread Xing, Beilei
> -Original Message- > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] > Sent: Wednesday, December 28, 2016 5:30 PM > To: Xing, Beilei > Cc: Wu, Jingjing ; Zhang, Helin > ; dev@dpdk.org; Lu, Wenzhuo > > Subject: Re: [dpdk-dev] [PATCH v2 07/17] net/i40e: add flow validate > fu

[dpdk-dev] [PATCH] net/mlx5: fix RSS hash result for flows

2016-12-28 Thread Nelio Laranjeiro
Flows redirected to a specific queue do not have a valid RSS hash result and the related mbuf flag must not be set. Fixes: ecf60761fc2a ("net/mlx5: return RSS hash result in mbuf") CC: sta...@dpdk.org Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_rxtx.c |

Re: [dpdk-dev] [PATCH v2 07/17] net/i40e: add flow validate function

2016-12-28 Thread Adrien Mazarguil
Hi Beilei, On Wed, Dec 28, 2016 at 09:00:03AM +, Xing, Beilei wrote: > > > > -Original Message- > > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] > > Sent: Tuesday, December 27, 2016 8:40 PM > > To: Xing, Beilei > > Cc: Wu, Jingjing ; Zhang, Helin > > ; dev@dpdk.org > >

Re: [dpdk-dev] [PATCH v2 07/17] net/i40e: add flow validate function

2016-12-28 Thread Xing, Beilei
> -Original Message- > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] > Sent: Tuesday, December 27, 2016 8:40 PM > To: Xing, Beilei > Cc: Wu, Jingjing ; Zhang, Helin > ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 07/17] net/i40e: add flow validate > function > > Hi Bei

Re: [dpdk-dev] [PATCH v2 15/17] net/i40e: add flow flush function

2016-12-28 Thread Xing, Beilei
> -Original Message- > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] > Sent: Tuesday, December 27, 2016 8:40 PM > To: Xing, Beilei > Cc: Wu, Jingjing ; Zhang, Helin > ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 15/17] net/i40e: add flow flush function > > Hi Beilei,