[dpdk-dev] dpdk16.07 and virtio "Cannot mmap IO port resource"

2016-12-09 Thread Gopakumar Choorakkot Edakkunni
I tried to load up dpdk (bound to uio_pci_generic, tried igb_uio also!) on a virtio interface. Dpdk exits with the "Cannot mmap IO port resource" complaint - the call chain is legacy_virtio_resource_init()-->pci_uio_ioport_map(). If anyone can give any clues/pointers as to what might be wrong, tha

Re: [dpdk-dev] After a port is bound to dpdk, when 'ip addr' or 'ip link add ~vlan' command against non-dpdk port , Linux kernel hangs

2016-12-09 Thread Joo Kim
This issue(https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1570195 )seems to be some similar to what I am facing. So, I tried its fix patches ( https://github.com/openstack/fuel-plugin-ovs/blob/master/ovs_build/dpdk_2.2.0/debian/patches/ubuntu-backport-36-pci-identify-devices-not-managed-by-a

[dpdk-dev] After a port is bound to dpdk, when 'ip addr' or 'ip link add ~vlan' command against non-dpdk port , Linux kernel hangs

2016-12-09 Thread Joo Kim
Hello, I am using dpdk 2.2.0 in this VM where several NIC ports are available. Also, uio, kni drivers are installed. [root@mylinux]# lsmod | grep uio igb_uio13224 0 uio19259 1 igb_uio [root@mylinux]# lsmod | grep kni rte_kni 294375 0 i2c_core

[dpdk-dev] Linux dcbnl like support for dpdk

2016-12-09 Thread Ram pratap Yadav
Hi DEV, Are we planning to support Linux dcbnl like interface for dpdk to configure NIC Dcb using ixgbe according to IEEE 802.1Qaz? Thanks, Ram

[dpdk-dev] [PATCH v11] drivers/net:new TUN/TAP device PMD

2016-12-09 Thread Keith Wiles
The PMD allows for DPDK and the host to communicate using a raw device interface on the host and in the DPDK application. The device created is a Tap device with a L2 packet header. v11- Add the tap.rst to the nic/index.rst file v10- Change the string name used to allow for multiple devices. v9 -

Re: [dpdk-dev] [PATCH v10] drivers/net:new TUN/TAP device PMD

2016-12-09 Thread Ferruh Yigit
On 12/7/2016 7:38 PM, Keith Wiles wrote: > The PMD allows for DPDK and the host to communicate using a raw > device interface on the host and in the DPDK application. The device > created is a Tap device with a L2 packet header. > > v10- Change the string name used to allow for multiple devices. >

Re: [dpdk-dev] [PATCH v2 8/9] librte_ether: remove the set VF API's

2016-12-09 Thread Ferruh Yigit
On 12/9/2016 5:26 PM, Bernard Iremonger wrote: > remove the following API's: > > rte_eth_dev_set_vf_rxmode > rte_eth_dev_set_vf_rx > rte_eth_dev_set_vf_tx > rte_eth_dev_set_vf_vlan_filter > rte_eth_dev_set_vf_rate_limit This patch should also remove above function definitions from rte_ethdev.h an

Re: [dpdk-dev] [PATCH 00/25] net/qede: update qede pmd to 2.0.0.1

2016-12-09 Thread Mody, Rasesh
Hi Ferruh, > From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] > Sent: Friday, December 09, 2016 8:53 AM > > On 12/3/2016 9:11 AM, Rasesh Mody wrote: > > Hi, > > > > This patch set consists of enhancements, new 8.14.x.x firmware support > > and semantic changes. It update the QEDE PMD version to

Re: [dpdk-dev] [PATCH v1 0/4] app: make python apps python2/3 compliant

2016-12-09 Thread Mcnamara, John
> -Original Message- > From: Neil Horman [mailto:nhor...@tuxdriver.com] > Sent: Friday, December 9, 2016 5:06 PM > To: Mcnamara, John > Cc: dev@dpdk.org; mklet...@redhat.com > Subject: Re: [dpdk-dev] [PATCH v1 0/4] app: make python apps python2/3 > compliant > > On Fri, Dec 09, 2016 at

Re: [dpdk-dev] [PATCH 00/31] Support more features in Solarflare PMD

2016-12-09 Thread Ferruh Yigit
On 12/2/2016 7:44 AM, Andrew Rybchenko wrote: > The patch series adds a number of features to Solarflare libefx-based > PMD. Basically one patch per feature. > > The patches are grouped into one series since they touch nearby lines > in either PMD feature list, or dev_ops structure, or documentati

[dpdk-dev] [PATCH v2 9/9] doc: remove deprecation notice

2016-12-09 Thread Bernard Iremonger
remove deprecation notice for removing rte_eth_dev_set_vf_* API's. Signed-off-by: Bernard Iremonger --- doc/guides/rel_notes/deprecation.rst | 13 - 1 file changed, 13 deletions(-) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 2d17bc

[dpdk-dev] [PATCH v2 8/9] librte_ether: remove the set VF API's

2016-12-09 Thread Bernard Iremonger
remove the following API's: rte_eth_dev_set_vf_rxmode rte_eth_dev_set_vf_rx rte_eth_dev_set_vf_tx rte_eth_dev_set_vf_vlan_filter rte_eth_dev_set_vf_rate_limit Signed-off-by: Bernard Iremonger --- lib/librte_ether/rte_ethdev.c | 129 -- lib/librte_ether/rt

[dpdk-dev] [PATCH v2 6/9] examples/ethtool: use ixgbe public function

2016-12-09 Thread Bernard Iremonger
Replace rte_eth_dev_set_vf_rxmode with rte_pmd_ixgbe_set_vf_rx_mode. Signed-off-by: Bernard Iremonger --- examples/ethtool/lib/rte_ethtool.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/ethtool/lib/rte_ethtool.c b/examples/ethtool/lib/rte_ethtool.c index a1f

[dpdk-dev] [PATCH v2 7/9] net/ixgbe: remove static set VF functions

2016-12-09 Thread Bernard Iremonger
remove the following static functions: ixgbe_set_pool_rx_mode ixgbe_set_pool_rx ixgbe_set_pool_tx ixgbe_set_pool_vlan_filter ixgbe_set_vf_rate_limit Signed-off-by: Bernard Iremonger --- drivers/net/ixgbe/ixgbe_ethdev.c | 193 --- 1 file changed, 193 deletions

[dpdk-dev] [PATCH v2 5/9] app/testpmd: add command for set VF transmit

2016-12-09 Thread Bernard Iremonger
add the following command to testpmd: set vf tx on|off add command to the testpmd user guide. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 85 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 2 files changed, 92 inserti

[dpdk-dev] [PATCH v2 3/9] app/testpmd: add command for set VF VLAN filter

2016-12-09 Thread Bernard Iremonger
Add the following command to testpmd: set vf vlan filteron|off Add command to the testpmd user guide. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 98 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 2 files changed, 1

[dpdk-dev] [PATCH v2 4/9] app/testpmd: add command for set VF receive

2016-12-09 Thread Bernard Iremonger
add the following command to testpmd: set vf rx on|off add command to the testpmd user guide. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 85 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 2 files changed, 92 inserti

[dpdk-dev] [PATCH v2 1/9] net/ixgbe: move set VF functions from the ethdev

2016-12-09 Thread Bernard Iremonger
Move the following functions from eth_dev_ops to the ixgbe PMD and rename: ixgbe_set_pool_rx_mode ixgbe_set_pool_rx ixgbe_set_pool_tx ixgbe_set_pool_vlan_filter ixgbe_set_vf_rate_limit Rename the functions to the following: rte_pmd_ixgbe_set_vf_rxmode rte_pmd_ixgbe_set_vf_rx rte_pmd_ixgbe_set_vf

[dpdk-dev] [PATCH v2 2/9] app/testpmd: use ixgbe public functions

2016-12-09 Thread Bernard Iremonger
Use the the following ixgbe public functions: rte_pmd_ixgbe_set_vf_rate_limit rte_pmd_ixgbe_set_vf_rx rte_pmd_ixgbe_set_vf_rxmode rte_pmd_ixgbe_set_vf_tx rte_pmd_ixgbe_set_vf_vlan_filter Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 2 +- app/test-pmd/config.c | 31 +++

[dpdk-dev] [PATCH v2 0/9] net/ixgbe: move set VF functions.

2016-12-09 Thread Bernard Iremonger
This patchset implements the following deprecation notice: [PATCH v1] doc: announce API and ABI change for librte_ether Changes in V2: Update testpmd set vf commands help messages. Updated ethtool to use the ixgbe public API's. Removed the ixgbe_set_pool_* and ixgbe_set_vf_rate_limit functions. Re

Re: [dpdk-dev] [PATCH v12 1/6] ethdev: add Tx preparation

2016-12-09 Thread Kulasek, TomaszX
Hi Oliver, My 5 cents below: > -Original Message- > From: Olivier Matz [mailto:olivier.m...@6wind.com] > Sent: Thursday, December 8, 2016 18:24 > To: Ananyev, Konstantin > Cc: Thomas Monjalon ; Kulasek, TomaszX > ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v12 1/6] ethdev: add Tx pre

Re: [dpdk-dev] [PATCH v1 0/4] app: make python apps python2/3 compliant

2016-12-09 Thread Neil Horman
On Fri, Dec 09, 2016 at 05:00:19PM +, Mcnamara, John wrote: > > > > -Original Message- > > From: Neil Horman [mailto:nhor...@tuxdriver.com] > > Sent: Friday, December 9, 2016 3:29 PM > > To: Mcnamara, John > > Cc: dev@dpdk.org; mklet...@redhat.com > > Subject: Re: [dpdk-dev] [PATCH v

Re: [dpdk-dev] [PATCH v1 0/4] app: make python apps python2/3 compliant

2016-12-09 Thread Mcnamara, John
> -Original Message- > From: Neil Horman [mailto:nhor...@tuxdriver.com] > Sent: Friday, December 9, 2016 3:29 PM > To: Mcnamara, John > Cc: dev@dpdk.org; mklet...@redhat.com > Subject: Re: [dpdk-dev] [PATCH v1 0/4] app: make python apps python2/3 > compliant > > On Thu, Dec 08, 2016 at

Re: [dpdk-dev] [PATCH 00/25] net/qede: update qede pmd to 2.0.0.1

2016-12-09 Thread Ferruh Yigit
On 12/3/2016 9:11 AM, Rasesh Mody wrote: > Hi, > > This patch set consists of enhancements, new 8.14.x.x firmware support > and semantic changes. It update the QEDE PMD version to 2.0.0.1. > > Please include in DPDK 17.02 release. Hi Rasesh, This patchset seems depends to both [1] and [2], can

Re: [dpdk-dev] dpdk/vpp and cross-version migration for vhost

2016-12-09 Thread Daniel P. Berrange
On Fri, Dec 09, 2016 at 05:45:13PM +0100, Maxime Coquelin wrote: > > > On 12/09/2016 03:42 PM, Daniel P. Berrange wrote: > > On Fri, Dec 09, 2016 at 02:35:58PM +0100, Maxime Coquelin wrote: > > > ++Daniel for libvirt > > > > > > On 11/24/2016 07:31 AM, Yuanhan Liu wrote: > > > > > > > > > > > As

Re: [dpdk-dev] dpdk/vpp and cross-version migration for vhost

2016-12-09 Thread Maxime Coquelin
On 12/09/2016 03:42 PM, Daniel P. Berrange wrote: On Fri, Dec 09, 2016 at 02:35:58PM +0100, Maxime Coquelin wrote: ++Daniel for libvirt On 11/24/2016 07:31 AM, Yuanhan Liu wrote: As version here is an opaque string for libvirt and qemu, anything can be used - but I suggest either a list of

Re: [dpdk-dev] [PATCH 01/22] ethdev: introduce generic flow API

2016-12-09 Thread Adrien Mazarguil
Hi Sugesh, On Fri, Dec 09, 2016 at 12:18:03PM +, Chandran, Sugesh wrote: [...] > > > Are you going to provide any control over the initialization of NIC > > > to define the capability matrices For eg; To operate in a L3 router mode, > > software wanted to initialize the NIC port only to consid

Re: [dpdk-dev] [PATCH v2 00/31] net/i40e: base code update

2016-12-09 Thread Ferruh Yigit
On 12/9/2016 2:38 PM, Jingjing Wu wrote: > i40e base code upate. The main changes are: > - add clause22 and clause45 implementation for PHY registers accessing > - replace existing legacy memcpy() calls with i40e_memcpy() calls. > - use BIT() macro instead of bit fields > - add clear all WoL fi

[dpdk-dev] [PATCH v2] crypto/qat: fix to avoid buffer overwrite in OOP case

2016-12-09 Thread Fiona Trahe
In out-of-place operation, data is DMAed from source mbuf to destination mbuf. To avoid header data in dest mbuf being overwritten, the minimal data-set should be DMAed. Fixes: 39e0bee48e81 ("crypto/qat: rework request builder for performance") Signed-off-by: Fiona Trahe CC: sta...@dpdk.org ---

Re: [dpdk-dev] [PATCH v1 0/4] app: make python apps python2/3 compliant

2016-12-09 Thread Neil Horman
On Thu, Dec 08, 2016 at 03:51:01PM +, John McNamara wrote: > These patches refactor the DPDK Python applications to make them Python 2/3 > compatible. > > In order to do this the patchset starts by making the apps PEP8 compliant in > accordance with the DPDK Coding guidelines: > > http://

Re: [dpdk-dev] [PATCH v4] eal: restrict cores auto detection

2016-12-09 Thread Bruce Richardson
On Thu, Dec 08, 2016 at 07:19:41PM +0100, Thomas Monjalon wrote: > 2016-12-02 17:48, Jianfeng Tan: > > This patch uses pthread_getaffinity_np() to narrow down used > > cores when none of below options is specified: > > * coremask (-c) > > * corelist (-l) > > * and coremap (--lcores) > > > >

Re: [dpdk-dev] [PATCH v2 1/6] eventdev: introduce event driven programming model

2016-12-09 Thread Bruce Richardson
On Fri, Dec 09, 2016 at 02:11:15AM +0530, Jerin Jacob wrote: > On Thu, Dec 08, 2016 at 09:30:49AM +, Bruce Richardson wrote: > > On Thu, Dec 08, 2016 at 12:23:03AM +0530, Jerin Jacob wrote: > > > On Tue, Dec 06, 2016 at 04:51:19PM +, Bruce Richardson wrote: > > > > On Tue, Dec 06, 2016 at 0

Re: [dpdk-dev] dpdk/vpp and cross-version migration for vhost

2016-12-09 Thread Daniel P. Berrange
On Fri, Dec 09, 2016 at 02:35:58PM +0100, Maxime Coquelin wrote: > ++Daniel for libvirt > > On 11/24/2016 07:31 AM, Yuanhan Liu wrote: > > > > > > > > > As version here is an opaque string for libvirt and qemu, > > > > > > > > > > > > > > >>anything can be used - but I suggest either a list > > >

[dpdk-dev] [PATCH v2 31/31] net/i40e: remove unused macro from PMD

2016-12-09 Thread Jingjing Wu
Signed-off-by: Jingjing Wu --- drivers/net/i40e/Makefile | 2 +- drivers/net/i40e/i40e_ethdev.c | 40 2 files changed, 1 insertion(+), 41 deletions(-) diff --git a/drivers/net/i40e/Makefile b/drivers/net/i40e/Makefile index 13085fb..66997b6 100644 -

[dpdk-dev] [PATCH v2 30/31] net/i40e/base: remove unused macro

2016-12-09 Thread Jingjing Wu
remove X722_SUPPORT and I40E_NDIS_SUPPORT MACROs Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_adminq_cmd.h | 14 --- drivers/net/i40e/base/i40e_common.c | 18 +- drivers/net/i40e/base/i40e_devids.h | 2 -- drivers/net/i40e/base/i40e_nvm.c| 16 ---

[dpdk-dev] [PATCH v2 28/31] net/i40e/base: avoid division by zero

2016-12-09 Thread Jingjing Wu
For some cases when reading from device are incorrect or image is incorrect, this part of code causes crash due to division by zero. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_common.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/base/

[dpdk-dev] [PATCH v2 29/31] net/i40e/base: fix byte order

2016-12-09 Thread Jingjing Wu
Big Endian platform will accidentally send the wrong data to the firmware command. This patch fixes the issue. Fixes: 788fc17b2dec ("i40e/base: support proxy config for X722") Fixes: 3c89193a36fd ("i40e/base: support WOL config for X722") Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e

[dpdk-dev] [PATCH v2 27/31] net/i40e/base: add broadcast promiscuous control per VLAN

2016-12-09 Thread Jingjing Wu
Add a new adminq function that allows driver to configure per-VLAN broadcast promiscuous mode, similar to how we handle unicast and multicast promiscuous modes. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_common.c| 34 ++ drivers/net/i40e/base/i4

[dpdk-dev] [PATCH v2 26/31] net/i40e/base: add ERROR state for NVM update state machine

2016-12-09 Thread Jingjing Wu
This patch adds I40E_NVMUPD_STATE_ERROR state for NVM update. Without this patch driver has no possibility to return NVM image write failure.This state is being set when ARQ rises error. arq_last_status is also updated every time when ARQ event comes, not only on error cases. Signed-off-by: Jingji

[dpdk-dev] [PATCH v2 25/31] net/i40e/base: remove duplicate definitions

2016-12-09 Thread Jingjing Wu
We already define I40E_AQ_PHY_TYPE_EXT_25G* flags in the response adminq structure above, and do not need to re-define these. While we are here, replace 0X with 0x as normal style. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_adminq_cmd.h | 8 ++-- 1 file changed, 2 insertions(

[dpdk-dev] [PATCH v2 24/31] net/i40e/base: comment that udp port must be in Host order

2016-12-09 Thread Jingjing Wu
The firmware expects the Port number to be in Little Endian format, and the i40e_aq_add_udp_tunnel command clearly expects the udp_port variable to be in Host order, as it uses CPU_TO_LE16(). It was recently discovered in the Linux driver that we were passing a Big Endian port number, which was the

[dpdk-dev] [PATCH v2 23/31] net/i40e/base: change shift values to hex

2016-12-09 Thread Jingjing Wu
Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_type.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h index 99e080e..3784c8f 100644 --- a/drivers/net/i40e/base/i40e_type.h +++ b/drivers/net

Re: [dpdk-dev] [PATCH v12 0/6] add Tx preparation

2016-12-09 Thread Jan Mędala
Hello, Sorry for late response. >From ENA perspective, we need to dig deeper about the requirements and use cases, but I'm pretty confident (95%) that ena will need to implement tx_prep() API. There is at least one scenario, when HW relay on partial checksum. Jan

[dpdk-dev] [PATCH v2 20/31] net/i40e/base: add defines for new aq command

2016-12-09 Thread Jingjing Wu
By default the device clears all MAC filter information on PF Reset. However, this will cause Wake-On-LAN to fail because the wake filters are deleted on transition to D3 power state. To get around this, firmware is adding functionality to preserve certain MAC filters during PFR. These bits allow t

[dpdk-dev] [PATCH v2 22/31] net/i40e/base: acquire NVM lock before reads on all devices

2016-12-09 Thread Jingjing Wu
Acquire NVM lock before reads on all devices. Previously, locks were only used for X722 and later. Fixes an issue where simultaneous X710 NVM accesses were interfering with each other. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_nvm.c | 16 1 file changed, 8 inse

[dpdk-dev] [PATCH v2 21/31] net/i40e/base: save link FEC info from link up event

2016-12-09 Thread Jingjing Wu
Store the FEC status bits from the link up event into the hw_link_info structure. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_common.c | 2 ++ drivers/net/i40e/base/i40e_type.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/ne

[dpdk-dev] [PATCH v2 18/31] net/i40e/base: implement clear all WoL filters

2016-12-09 Thread Jingjing Wu
This patch implements the clear Wake on LAN (WoL) filters admin queue function which clears out ALL WoL patterns programmed into the flex filters. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_adminq_cmd.h | 1 + drivers/net/i40e/base/i40e_common.c | 20 dri

[dpdk-dev] [PATCH v2 19/31] net/i40e/base: implement set VSI full promisc mode

2016-12-09 Thread Jingjing Wu
This patch implements a function to set a VSI to broadcast, multicast, and unicast promiscuous mode all at once. This is specifically needed to set the WoL/Proxy VSI created by FW to full promiscuous mode during power down for WoL patterns and protocol offloads to function properly. Signed-off-by:

[dpdk-dev] [PATCH v2 17/31] net/i40e/base: adjust 25G PHY type values

2016-12-09 Thread Jingjing Wu
Define the values for the 25G PHY type bit-fields that match reported values from firmware. There was a gap in the bit fields but no corresponding gap i40e_aq_phy_type enum. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_type.h | 20 1 file changed, 16 insertions(

[dpdk-dev] [PATCH v2 16/31] net/i40e/base: use BIT() macro instead of bit fields

2016-12-09 Thread Jingjing Wu
Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_adminq_cmd.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/i40e/base/i40e_adminq_cmd.h b/drivers/net/i40e/base/i40e_adminq_cmd.h index 1884758..cef02b1 100644 --- a/drivers/net/i40e/base/i40e_a

[dpdk-dev] [PATCH v2 13/31] net/i40e/base: deprecating unused macro

2016-12-09 Thread Jingjing Wu
I40E_MAC_X710 was supposed to be for 10G and I40E_MAC_XL710 was supposed to be for 40G. But i40e_set_mac_type() sets I40E_MAC_XL710 for all device IDS. I40E_MAC_X710 is not used at all. Thus deprecating this extra macro. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_type.h | 1 - 1 f

[dpdk-dev] [PATCH v2 15/31] net/i40e/base: add FEC bits to PHY capabilities

2016-12-09 Thread Jingjing Wu
Add FEC bits to the PHY capabilities AQ command struct. This is required for 25GbE support. Change the name of the generic mod_type_ext field to indicate that it is now used for handling FEC. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_adminq_cmd.h | 13 - drivers/net/i

[dpdk-dev] [PATCH v2 14/31] net/i40e/base: remove FPK HyperV VF device ID

2016-12-09 Thread Jingjing Wu
Microsoft recently removed the requirement for VFs to use the VMBus. The Fort Park Windows VF has been changed to use only the hardware mailbox, so the Hyper-V VF device ID can be removed. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_common.c | 1 - drivers/net/i40e/base/i40e_devids

[dpdk-dev] [PATCH v2 12/31] net/i40e/base: replace memcpy

2016-12-09 Thread Jingjing Wu
To align with current memcpy use, replace existing legacy memcpy() calls with i40e_memcpy() calls. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_common.c | 13 - drivers/net/i40e/base/i40e_nvm.c| 7 --- 2 files changed, 12 insertions(+), 8 deletions(-) diff --gi

[dpdk-dev] [PATCH v2 11/31] net/i40e/base: pass unknown PHY type for unknown PHYs

2016-12-09 Thread Jingjing Wu
The PHY type value for unrecognized PHYs and cables was changed based on firmware version number. Newer hardware use lower firmware version numbers and this was causing some PHYs to be identified as type 0x16 instead of 0xe (unknown). Without this patch, newer card will incorrectly identify unknow

[dpdk-dev] [PATCH v2 10/31] net/i40e/base: add protocols when discover capabilities

2016-12-09 Thread Jingjing Wu
Add logical_id to I40E_AQ_CAP_ID_MNG_MODE capability starting from major version 2. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_common.c | 8 drivers/net/i40e/base/i40e_type.h | 4 2 files changed, 12 insertions(+) diff --git a/drivers/net/i40e/base/i40e_common.c

[dpdk-dev] [PATCH v2 09/31] net/i40e/base: add bus number info

2016-12-09 Thread Jingjing Wu
Currently i40e_bus_info has PCI device and function info only. However in log messages slot number (i.e hw->bus.device) is being printed as bus number. Another field should be added to provide bus number info and preserve existing information. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base

[dpdk-dev] [PATCH v2 07/31] net/i40e/base: add media type detection for 25G link

2016-12-09 Thread Jingjing Wu
Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_common.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c index 2ad9448..7eea189 100644 --- a/drivers/net/i40e/base/i40e_common.c +++ b/drivers/net/i40e/base

[dpdk-dev] [PATCH v2 08/31] net/i40e/base: add clause22 and clause45 implementation

2016-12-09 Thread Jingjing Wu
Some external PHYs require Clause22 and Clause45 method for accessing registers. Mostly used for X722 support. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_common.c| 245 +++-- drivers/net/i40e/base/i40e_prototype.h | 16 ++- drivers/net/i40e/base/i4

[dpdk-dev] [PATCH v2 05/31] net/i40e/base: group base mode VF offload flags

2016-12-09 Thread Jingjing Wu
Group together the minimum set of offload capabilities that are always supported by VF in base mode. This define would be used by PF to make sure VF in base mode gets minimum of base capabilities. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_virtchnl.h | 4 1 file changed, 4 in

[dpdk-dev] [PATCH v2 06/31] net/i40e/base: fix long link down notification time

2016-12-09 Thread Jingjing Wu
This patch fixes a problem where it could take a very long time (>100 msec) to print the link down notification. This problem is fixed by changing how often we update link info from fw, when link is down. Without this patch, it can take over 100msec to notify user link is down. Fixes: e6691b428eb1

[dpdk-dev] [PATCH v2 04/31] net/i40e/base: fix bit test mask

2016-12-09 Thread Jingjing Wu
Incorrect bit mask was used for testing "get link status" response. Instead of I40E_AQ_LSE_ENABLE (which is actually 0x03) it should be I40E_AQ_LSE_IS_ENABLED (which is defined as 0x01). Fixes: 8db9e2a1b232 ("i40e: base driver") Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_common.c

[dpdk-dev] [PATCH v2 03/31] net/i40e/base: remove unnecessary code

2016-12-09 Thread Jingjing Wu
This patch changes some assignments and removing the unnecessary code to avoid error reported by static analysis tools. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_common.c | 4 drivers/net/i40e/base/i40e_lan_hmc.c | 5 - 2 files changed, 9 deletions(-) diff --git a/driv

[dpdk-dev] [PATCH v2 02/31] net/i40e/base: preserve extended PHY type field

2016-12-09 Thread Jingjing Wu
Prevents 25G PHY types from being disabled when setting the flow control modes. Signed-off-by: Jingjing Wu --- drivers/net/i40e/base/i40e_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c index 9a6b3ed..d67ad90

[dpdk-dev] [PATCH v2 01/31] net/i40e/base: add encap csum VF offload flag

2016-12-09 Thread Jingjing Wu
Add ENCAP_CSUM offload negotiation flag. Currently VF assumes checksum offload for encapsulated packets is supported by default. Going forward, this feature needs to be negotiated with PF before advertising to the stack. Hence, we need a flag to control it. Signed-off-by: Jingjing Wu --- drivers

[dpdk-dev] [PATCH v2 00/31] net/i40e: base code update

2016-12-09 Thread Jingjing Wu
i40e base code upate. The main changes are: - add clause22 and clause45 implementation for PHY registers accessing - replace existing legacy memcpy() calls with i40e_memcpy() calls. - use BIT() macro instead of bit fields - add clear all WoL filters implementation - add ERROR state for NVM upd

[dpdk-dev] [dev] hi all,can memnic pmd be used in linux container

2016-12-09 Thread zheng jie

Re: [dpdk-dev] [PATCH v1] net/i40e: set no drop for traffic class

2016-12-09 Thread Sexton, Rory
Hi Jingjing, Yes PRTDCB_TC2PFC is used to control pfc for each TC however we have noticed other advantages of using the register. By setting the register explicitly by doing the "I40E_WRITE_REG(hw, 0x1c0980, 0xff);" it allows for packets to be temporarily stored on the NICs RX SRAM until there

Re: [dpdk-dev] dpdk/vpp and cross-version migration for vhost

2016-12-09 Thread Maxime Coquelin
++Daniel for libvirt On 11/24/2016 07:31 AM, Yuanhan Liu wrote: As version here is an opaque string for libvirt and qemu, > > > > > >>anything can be used - but I suggest either a list > > > > > >>of values defining the interface, e.g. > > > > > >>any_layout=on,max_ring=256 > > > > > >>or a vers

Re: [dpdk-dev] [PATCH 1/8] net/qede: fix to get vendor/device id info

2016-12-09 Thread Ferruh Yigit
Hi Rasesh, On 12/3/2016 6:35 AM, Rasesh Mody wrote: > Fixes: ec94dbc5 ("qede: add base driver") > > Signed-off-by: Rasesh Mody Related to the commit logs of this patchset. Many people, including me, won't know technical details of your driver as you do. >From below patch, I also can see vendor

[dpdk-dev] [PATCH] net/mlx5: fix Tx doorbell

2016-12-09 Thread Nelio Laranjeiro
Too much data is uselessly written to the Tx doorbell. Fixes: 1d88ba171942 ("net/mlx5: refactor Tx data path") Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- This patch should be applied on top of [1] or [2]. [1] http://dpdk.org/ml/archives/dev/2016-November/050716.html [2] h

Re: [dpdk-dev] [PATCH v12 1/6] ethdev: add Tx preparation

2016-12-09 Thread Kulasek, TomaszX
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monja...@6wind.com] > Sent: Friday, December 2, 2016 00:51 > To: Kulasek, TomaszX > Cc: dev@dpdk.org; Ananyev, Konstantin ; > olivier.m...@6wind.com; Richardson, Bruce > Subject: Re: [dpdk-dev] [PATCH v12 1/6] ethdev:

Re: [dpdk-dev] [PATCH v1 0/5] net/ixgbe: move set VF functions.

2016-12-09 Thread Iremonger, Bernard
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monja...@6wind.com] > Sent: Friday, December 9, 2016 1:05 PM > To: Iremonger, Bernard > Cc: Yigit, Ferruh ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v1 0/5] net/ixgbe: move set VF functions. > > 2016-12-09 12:00,

Re: [dpdk-dev] [PATCH v1 0/5] net/ixgbe: move set VF functions.

2016-12-09 Thread Thomas Monjalon
2016-12-09 12:00, Iremonger, Bernard: > From: Yigit, Ferruh > > Why this patchset doesn't remove ethdev updates for these functions? > > > > ixgbe is the only user for these eth-dev_ops, since code moved to ixgbe > > driver, they and relevant rte_eth_xx functions (and deprecation notice) can > > b

Re: [dpdk-dev] [PATCH 01/22] ethdev: introduce generic flow API

2016-12-09 Thread Chandran, Sugesh
Hi Adrien, Thank you for your comments, Please see the reply below. Regards _Sugesh > -Original Message- > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] > Sent: Thursday, December 8, 2016 3:09 PM > To: Chandran, Sugesh > Cc: Kevin Traynor ; dev@dpdk.org; Thomas > Monjalon ;

Re: [dpdk-dev] [PATCH v2 02/12] lib: add cryptodev type for the upcoming ARMv8 PMD

2016-12-09 Thread Declan Doherty
On 07/12/16 20:09, Thomas Monjalon wrote: 2016-12-07 20:04, Zbigniew Bodek: On 06.12.2016 21:27, Thomas Monjalon wrote: 2016-12-06 18:32, zbigniew.bo...@caviumnetworks.com: From: Zbigniew Bodek Add type and name for ARMv8 crypto PMD Signed-off-by: Zbigniew Bodek [...] --- a/lib/librte_cr

Re: [dpdk-dev] [PATCH v1 3/5] app/testpmd: add command for set VF VLAN filter

2016-12-09 Thread Iremonger, Bernard
Hi Ferruh, > -Original Message- > From: Yigit, Ferruh > Sent: Friday, December 9, 2016 12:03 PM > To: Iremonger, Bernard ; > thomas.monja...@6wind.com; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v1 3/5] app/testpmd: add command for set > VF VLAN filter > > On 12/9/2016 11:27 AM, Bernar

Re: [dpdk-dev] [PATCH v1 2/5] app/testpmd: use ixgbe public functions

2016-12-09 Thread Iremonger, Bernard
Hi Ferruh, > -Original Message- > From: Yigit, Ferruh > Sent: Friday, December 9, 2016 11:57 AM > To: Iremonger, Bernard ; > thomas.monja...@6wind.com; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v1 2/5] app/testpmd: use ixgbe public > functions > > On 12/9/2016 11:27 AM, Bernard Iremon

Re: [dpdk-dev] [PATCH v2] cryptodev: fix crash on null dereference

2016-12-09 Thread De Lara Guarch, Pablo
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Saturday, December 03, 2016 6:34 PM > To: dev@dpdk.org > Cc: Doherty, Declan; De Lara Guarch, Pablo; Jerin Jacob; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH v2] cryptodev: fix crash on null derefere

Re: [dpdk-dev] [PATCH] crypto/qat: fix to avoid buffer overwrite in OOP case

2016-12-09 Thread De Lara Guarch, Pablo
Hi Fiona, > -Original Message- > From: Trahe, Fiona > Sent: Thursday, November 24, 2016 11:18 AM > To: dev@dpdk.org > Cc: De Lara Guarch, Pablo; Trahe, Fiona; Griffin, John; Kusztal, ArkadiuszX > Subject: [PATCH] crypto/qat: fix to avoid buffer overwrite in OOP case > > In out-of-place op

Re: [dpdk-dev] [PATCH v1 3/5] app/testpmd: add command for set VF VLAN filter

2016-12-09 Thread Ferruh Yigit
On 12/9/2016 11:27 AM, Bernard Iremonger wrote: > Add the following command to testpmd: > set vf vlan filter > > Add command to the testpmd user guide. > > Signed-off-by: Bernard Iremonger > --- <...> > + > +cmdline_parse_inst_t cmd_set_vf_vlan_filter = { > + .f = cmd_set_vf_vlan_filte

Re: [dpdk-dev] [PATCH v1 0/5] net/ixgbe: move set VF functions.

2016-12-09 Thread Iremonger, Bernard
Hi Ferruh, > -Original Message- > From: Yigit, Ferruh > Sent: Friday, December 9, 2016 11:54 AM > To: Iremonger, Bernard ; > thomas.monja...@6wind.com; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v1 0/5] net/ixgbe: move set VF functions. > > On 12/9/2016 11:27 AM, Bernard Iremonger wrot

Re: [dpdk-dev] [PATCH v1 2/5] app/testpmd: use ixgbe public functions

2016-12-09 Thread Ferruh Yigit
On 12/9/2016 11:27 AM, Bernard Iremonger wrote: > Use the the following ixgbe public functions: > > rte_pmd_ixgbe_set_vf_rate_limit > rte_pmd_ixgbe_set_vf_rx > rte_pmd_ixgbe_set_vf_rxmode > rte_pmd_ixgbe_set_vf_tx > rte_pmd_ixgbe_set_vf_vlan_filter > > Signed-off-by: Bernard Iremonger <...> >

Re: [dpdk-dev] [PATCH v1 0/5] net/ixgbe: move set VF functions.

2016-12-09 Thread Ferruh Yigit
On 12/9/2016 11:27 AM, Bernard Iremonger wrote: > This patchset implements the following deprecation notice: > [PATCH v1] doc: announce API and ABI change for librte_ether > > The following functions from eth_dev_ops have been moved to the ixgbe PMD > and renamed: > > ixgbe_set_pool_rx_mode > ixg

Re: [dpdk-dev] [PATCH v2] doc: fix mistakes in contribution guide

2016-12-09 Thread Mcnamara, John
> -Original Message- > From: Yong Wang [mailto:wang.yon...@zte.com.cn] > Sent: Friday, December 9, 2016 11:52 AM > To: Mcnamara, John > Cc: dev@dpdk.org; Yong Wang > Subject: [PATCH v2] doc: fix mistakes in contribution guide > > Signed-off-by: Yong Wang > --- > v2: > * modify some re

Re: [dpdk-dev] [PATCH] nfp: add doc about supported features

2016-12-09 Thread Ferruh Yigit
On 12/9/2016 10:00 AM, Alejandro Lucero wrote: > That's fine. Applied to dpdk-next-net/master, thanks. > > Thank you > > On Tue, Dec 6, 2016 at 4:01 PM, Ferruh Yigit > wrote: > > On 12/6/2016 2:51 PM, Alejandro Lucero wrote: > > Then I guess I should sen

[dpdk-dev] [PATCH v1 5/5] app/testpmd: add command for set VF transmit

2016-12-09 Thread Bernard Iremonger
add the following command to testpmd: set vf tx add command to the testpmd user guide. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 85 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 2 files changed, 92 insertions(+)

[dpdk-dev] [PATCH v1 3/5] app/testpmd: add command for set VF VLAN filter

2016-12-09 Thread Bernard Iremonger
Add the following command to testpmd: set vf vlan filter Add command to the testpmd user guide. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 98 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 2 files changed, 105 ins

[dpdk-dev] [PATCH v1 2/5] app/testpmd: use ixgbe public functions

2016-12-09 Thread Bernard Iremonger
Use the the following ixgbe public functions: rte_pmd_ixgbe_set_vf_rate_limit rte_pmd_ixgbe_set_vf_rx rte_pmd_ixgbe_set_vf_rxmode rte_pmd_ixgbe_set_vf_tx rte_pmd_ixgbe_set_vf_vlan_filter Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 2 +- app/test-pmd/config.c | 31 +++

[dpdk-dev] [PATCH v1 1/5] net/ixgbe: move set VF functions from the ethdev

2016-12-09 Thread Bernard Iremonger
Move the following functions from eth_dev_ops to the ixgbe PMD and rename: ixgbe_set_pool_rx_mode ixgbe_set_pool_rx ixgbe_set_pool_tx ixgbe_set_pool_vlan_filter ixgbe_set_vf_rate_limit Rename the functions to the following: rte_pmd_ixgbe_set_vf_rxmode rte_pmd_ixgbe_set_vf_rx rte_pmd_ixgbe_set_vf

[dpdk-dev] [PATCH v1 4/5] app/testpmd: add command for set VF receive

2016-12-09 Thread Bernard Iremonger
add the following command to testpmd: set vf rx add command to the testpmd user guide. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 85 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 2 files changed, 92 insertions(+)

[dpdk-dev] [PATCH v1 0/5] net/ixgbe: move set VF functions.

2016-12-09 Thread Bernard Iremonger
This patchset implements the following deprecation notice: [PATCH v1] doc: announce API and ABI change for librte_ether The following functions from eth_dev_ops have been moved to the ixgbe PMD and renamed: ixgbe_set_pool_rx_mode ixgbe_set_pool_rx ixgbe_set_pool_tx ixgbe_set_pool_vlan_filter ixgb

[dpdk-dev] [PATCH v1 5/5] app/testpmd: add command for set VF transmit

2016-12-09 Thread Bernard Iremonger
add the following command to testpmd: set vf tx add command to the testpmd user guide. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 85 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 2 files changed, 92 insertions(+)

[dpdk-dev] [PATCH v1 4/5] app/testpmd: add command for set VF receive

2016-12-09 Thread Bernard Iremonger
add the following command to testpmd: set vf rx add command to the testpmd user guide. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 85 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 2 files changed, 92 insertions(+)

[dpdk-dev] [PATCH v1 3/5] app/testpmd: add command for set VF VLAN filter

2016-12-09 Thread Bernard Iremonger
Add the following command to testpmd: set vf vlan filter Add command to the testpmd user guide. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 98 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 2 files changed, 105 ins

[dpdk-dev] [PATCH v1 1/5] net/ixgbe: move set VF functions from the ethdev

2016-12-09 Thread Bernard Iremonger
Move the following functions from eth_dev_ops to the ixgbe PMD and rename: ixgbe_set_pool_rx_mode ixgbe_set_pool_rx ixgbe_set_pool_tx ixgbe_set_pool_vlan_filter ixgbe_set_vf_rate_limit Rename the functions to the following: rte_pmd_ixgbe_set_vf_rxmode rte_pmd_ixgbe_set_vf_rx rte_pmd_ixgbe_set_vf

[dpdk-dev] [PATCH v1 2/5] app/testpmd: use ixgbe public functions

2016-12-09 Thread Bernard Iremonger
Use the the following ixgbe public functions: rte_pmd_ixgbe_set_vf_rate_limit rte_pmd_ixgbe_set_vf_rx rte_pmd_ixgbe_set_vf_rxmode rte_pmd_ixgbe_set_vf_tx rte_pmd_ixgbe_set_vf_vlan_filter Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 2 +- app/test-pmd/config.c | 31 +++

[dpdk-dev] [PATCH v1 0/5] net/ixgbe: move set VF functions.

2016-12-09 Thread Bernard Iremonger
This patchset implements the following deprecation notice: [PATCH v1] doc: announce API and ABI change for librte_ether The following functions from eth_dev_ops have been moved to the ixgbe PMD and renamed: ixgbe_set_pool_rx_mode ixgbe_set_pool_rx ixgbe_set_pool_tx ixgbe_set_pool_vlan_filter ixgb

[dpdk-dev] [PATCH v2] doc: fix mistakes in contribution guide

2016-12-09 Thread Yong Wang
Signed-off-by: Yong Wang --- v2: * modify some redundant descriptions. --- doc/guides/contributing/documentation.rst | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/guides/contributing/documentation.rst b/doc/guides/contributing/documentation.rst index 5ec0675..f90

Re: [dpdk-dev] [PATCH v2] doc: introduce PVP reference benchmark

2016-12-09 Thread Mcnamara, John
> -Original Message- > From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] > Sent: Friday, December 9, 2016 6:30 AM > To: Mcnamara, John ; yuanhan@linux.intel.com; > thomas.monja...@6wind.com; Yang, Zhiyong ; > ktray...@redhat.com; dev@dpdk.org > Subject: Re: [PATCH v2] doc: int

  1   2   >