[dpdk-dev] [PATCH 3/3] examples/ip_pipeline: add sample config file with TAP port usage

2016-08-05 Thread Jasvinder Singh
To illustrate the TAP port usage, the sample configuration file with passthrough pipeline connected to TAP interface is added. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config/tap.cfg | 64 + 1 file changed, 64 inse

[dpdk-dev] [PATCH 2/3] examples/ip_pipeline: integrate TAP port

2016-08-05 Thread Jasvinder Singh
The TAP port support is added to ip_pipeline app. To parse configuration file with TAP port entries, parsing function is implemented. The TAP ports configuration check and initialization routines have been included in application code. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu

[dpdk-dev] [PATCH 1/3] lib/librte_port: enable file descriptor port support

2016-08-05 Thread Jasvinder Singh
This patch adds File Descriptor(FD) port type (e.g. TAP port) to the packet framework library that allows interface with the kernel network stack. The FD port APIs are defined that allow port creation, writing and reading packet from the kernel interface. Signed-off-by: Jasvinder Singh Acked-by:

[dpdk-dev] [PATCH v2] app/testpmd: fix RSS-hash-key size

2016-08-05 Thread Mohammad Abdul Awal
RSS hash-key-size is retrieved from device configuration instead of using a fixed size of 40 bytes. Fixes: f79959ea1504 ("app/testpmd: allow to configure RSS hash key") Signed-off-by: Mohammad Abdul Awal --- v2: * Used macro instead of hard-coded value. * Some nits as per comments. app/test-pm

[dpdk-dev] DPDK support for on system bus connected embedded MAC

2016-08-05 Thread Venkat Karthik K
Hello, I am planning to develop Poll Mode Driver for new embedded MAC which is connected on system bus .I am looking into available poll mode drivers support for different Network cards in DPDK 16.07 package but all of them are connected and managed by PCI bus. Is there DPDK support for embedded

[dpdk-dev] [RFC 0/4] Use Google Test as DPDK unit test framework

2016-08-05 Thread Remy Horton
On 05/08/2016 13:59, Neil Horman wrote: > On Fri, Aug 05, 2016 at 10:11:56AM +0100, Remy Horton wrote: [..] >> Cmocka's mocking relies on Gnu ld's --wrap feature, which has problems if >> the function being mocked is defined in the same compilation unit that it is >> used. Pity really as otherwise

[dpdk-dev] [PATCH 7/7] netdev-dpdk: add support for Jumbo Frames

2016-08-05 Thread Mark Kavanagh
Add support for Jumbo Frames to DPDK-enabled port types, using single-segment-mbufs. Using this approach, the amount of memory allocated to each mbuf to store frame data is increased to a value greater than 1518B (typical Ethernet maximum frame length). The increased space available in the mbuf me

[dpdk-dev] [PATCH 6/7] netdev: Make netdev_set_mtu() netdev parameter non-const.

2016-08-05 Thread Mark Kavanagh
From: Daniele Di Proietto Every provider silently drops the const attribute when converting the parameter to the appropriate subclass. Might as well drop the const attribute from the parameter, since this is a "set" function. Signed-off-by: Daniele Di Proietto --- v2->v1: add missing 'Signed-o

[dpdk-dev] [PATCH 5/7] tests: Add a new MTU test.

2016-08-05 Thread Mark Kavanagh
From: Daniele Di Proietto Also, netdev-dummy needs to call netdev_change_seq_changed() in set_mtu(). Signed-off-by: Daniele Di Proietto --- lib/netdev-dummy.c| 5 - tests/ofproto-dpif.at | 30 ++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git

[dpdk-dev] [PATCH 4/7] netdev-dummy: Add dummy-internal class.

2016-08-05 Thread Mark Kavanagh
From: Daniele Di Proietto "internal" netdevs are treated specially in OVS (e.g. for MTU), but the dummy datapath remaps both "system" and "internal" devices to the same "dummy" netdev class, so there's no way to discern those in tests. This commit adds a new "dummy-internal" netdev type, which w

[dpdk-dev] [PATCH 3/7] netdev: Pass 'netdev_class' to ->run() and ->wait().

2016-08-05 Thread Mark Kavanagh
From: Daniele Di Proietto This will allow run() and wait() methods to be shared between different classes and still perform class-specific work. Signed-off-by: Daniele Di Proietto --- lib/netdev-bsd.c | 6 +++--- lib/netdev-dummy.c| 4 ++-- lib/netdev-linux.c| 6 +++--- lib/net

[dpdk-dev] [PATCH 2/7] vswitchd: Introduce 'mtu_request' column in Interface.

2016-08-05 Thread Mark Kavanagh
From: Daniele Di Proietto The 'mtu_request' column can be used to set the MTU of a specific interface. This column is useful because it will allow changing the MTU of DPDK devices (implemented in a future commit), which are not accessible outside the ovs-vswitchd process, but it can be used for

[dpdk-dev] [PATCH 1/7] ofproto: Consider datapath_type when looking for internal ports.

2016-08-05 Thread Mark Kavanagh
From: Daniele Di Proietto Interfaces with type "internal" end up having a netdev with type "tap" in the dpif-netdev datapath, so a strcmp will fail to match internal interfaces. We can translate the types with ofproto_port_open_type() before calling strcmp to fix this. This fixes a minor issue

[dpdk-dev] [PATCH 3/3] eal: remove rte_pci_dev_ids.h

2016-08-05 Thread Ferruh Yigit
All PCI device ids moved to drivers, it is safe to delete rte_pci_dev_ids.h Signed-off-by: Ferruh Yigit --- doc/guides/prog_guide/dev_kit_build_system.rst | 28 +-- lib/librte_eal/common/Makefile | 2 +- lib/librte_eal/common/include/rte_pci_dev_ids.h | 63

[dpdk-dev] [PATCH 2/3] net/igb: move PCI device ids to the driver

2016-08-05 Thread Ferruh Yigit
PCI device ids moved from common header into igb driver itself. KNI starts using pci_device_id from kni/ethtool/igb driver, this is only for KNI ethtool support, KNI data path is not effected. Signed-off-by: Ferruh Yigit --- drivers/net/e1000/igb_ethdev.c | 55 +--

[dpdk-dev] [PATCH 1/3] net/ixgbe: move PCI device ids to the driver

2016-08-05 Thread Ferruh Yigit
PCI device ids moved from common header into ixgbe driver itself. KNI starts using pci_device_id from kni/ethtool/ixgbe driver, this is only for KNI ethtool support, KNI data path is not effected. Signed-off-by: Ferruh Yigit --- drivers/net/ixgbe/ixgbe_ethdev.c| 79 ++--

[dpdk-dev] [PATCH 0/3] remove rte_pci_dev_ids.h

2016-08-05 Thread Ferruh Yigit
This patchset moves remaining PCI device ids for ixgbe and igb drivers, updates KNI code which uses these ids to use pci_device_ids from kni/ethtool drivers, and finally removes the rte_pci_dev_ids.h and updates document refers it. Ferruh Yigit (3): net/ixgbe: move PCI device ids to the driver

[dpdk-dev] [PATCH 1/7] ofproto: Consider datapath_type when looking for internal ports.

2016-08-05 Thread Kavanagh, Mark B
Please disregard this patchset - it was sent erroneously to the incorrect mailing list. I've already removed the related patches from Patchwork. Cheers, Mark >-Original Message- >From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Mark Kavanagh >Sent: Friday, August 5, 2016 3:30 PM

[dpdk-dev] [PATCH v3] i40e: enable i40e pmd on ARM platform

2016-08-05 Thread Jianbo Liu
And add read memory barrier to avoid status inconsistency between two RX descriptors readings. Signed-off-by: Jianbo Liu --- config/defconfig_arm64-armv8a-linuxapp-gcc | 2 +- doc/guides/nics/features/i40e.ini | 1 + drivers/net/i40e/i40e_rxtx.c | 2 ++ 3 files changed, 4

[dpdk-dev] [RFC] vhost: Add indirect descriptors support to the TX path

2016-08-05 Thread Maxime Coquelin
On 08/03/2016 04:03 PM, Yuanhan Liu wrote: > On Tue, Jul 12, 2016 at 04:32:12PM +0200, Maxime Coquelin wrote: >> Indirect descriptors are usually supported by virtio-net devices, >> allowing to dispatch a large number of large requests. >> >> When the virtio device sends a packet using indirect d

[dpdk-dev] [RFC 0/4] Use Google Test as DPDK unit test framework

2016-08-05 Thread Yerden Zhumabekov
On 03.08.2016 15:57, Doherty, Declan wrote: > Some of the things I've come across include: > No standard output format to integrated with continuous regression systems > No ability to specify specific unit tests or groups of tests to run from the > command line > No standard set of test assertion

[dpdk-dev] rte_eth_dev_attach returns 0, although device is not attached

2016-08-05 Thread Bruce Richardson
On Thu, Aug 04, 2016 at 04:47:25PM +0100, Ferruh Yigit wrote: > On 8/4/2016 3:54 PM, Igor Ryzhov wrote: > > > >> 4 ???. 2016 ?., ? 16:21, Ferruh Yigit >> > ???(?): > >> > >> On 8/4/2016 12:51 PM, Igor Ryzhov wrote: > >>> Hello Ferruh, > >>> > 4 ???. 2016

[dpdk-dev] [PATCH] app/testpmd: fix DCB config issue on ixgbe

2016-08-05 Thread Wenzhuo Lu
An issue is found that DCB cannot be configured on ixgbe NICs. It's said the TX queue number is not right. On ixgbe the max TX queue number is not fixed, it depends on the multi-queue mode. This patch adds the device configuration before getting info in the DCB configuration process. So the right

[dpdk-dev] [PATCH 3/3] net/virtio_user: fix dev not freed after init error

2016-08-05 Thread Jianfeng Tan
Currently, when virtio_user device fails to be started (e.g., vhost unix socket does not exit), the init function does not return struct rte_eth_dev (and some other structs) back to ether layer. And what's more, it does not report the error to upper layer. The fix is to free those structs and repo

[dpdk-dev] [PATCH 2/3] net/virtio_user: fix wrong sequence of messages

2016-08-05 Thread Jianfeng Tan
When virtio_user is used with VPP's native vhost user, it cannot send/receive any packets. The root cause is that vpp-vhost-user translates the message VHOST_USER_SET_FEATURES as puting this device into init state, aka, zero all related structures. However, previous code puts this message at last

[dpdk-dev] [PATCH 1/3] net/virtio_user: fix queue pair not enabled

2016-08-05 Thread Jianfeng Tan
When virtio_user is used with OVS-DPDK (with mq disabled), it cannot receive any packets. It's because when vhost provides VHOST_USER_GET_PROTOCOL_FEATURES, all queue pairs are initialized in the disabled state. Quote QEMU/docs/specs/vhost-user.txt: If VHOST_USER_F_PROTOCOL_FEATURES has not be

[dpdk-dev] [PATCH 0/3] fix virtio_user issues

2016-08-05 Thread Jianfeng Tan
Patch 1: fix issue when using virtio_user with OVS-DPDK. Patch 2: fix issue when using virtio_user with VPP. Patch 3: fix issue when failing to start virtio_user devices. Signed-off-by: Jianfeng Tan Jianfeng Tan (3): net/virtio_user: fix queue pair not enabled net/virtio_user: fix wrong sequ

[dpdk-dev] [PATCH] net/fm10k: fix MAC address remnant in switch

2016-08-05 Thread Xiao Wang
When testpmd quits with two ports, the second port's MAC address remains in the MAC table of switch manager. There should be some time for HW to quiesce when closing a port, otherwise the subsequent port close won't be handled correctly. This patch adds some delay after turning off a logic port,

[dpdk-dev] [RFC 0/4] Use Google Test as DPDK unit test framework

2016-08-05 Thread Remy Horton
On 05/08/2016 08:41, Yerden Zhumabekov wrote: [..] > We use cmocka.org for tests. Written in C. It has support for: > * mocking; > * setup/teardown; > * asserts; > * test groups. > > Output is nicely formatted. Cmocka's mocking relies on Gnu ld's --wrap feature, which has problems if the functio

[dpdk-dev] test: failed to clone dpdk source in windows

2016-08-05 Thread linhaifeng
hi,thomas Could you change the name of file in directory app/test/test_pci_sysfs/bus/pci/devices/ ? I think somebody like us also cann't access internet in liunux.Windows not support file name include ':'. thanks linhaifeng

[dpdk-dev] test: failed to clone dpdk source in windows

2016-08-05 Thread Thomas Monjalon
2016-08-05 09:44, Thomas Monjalon: > 2016-08-05 10:09, linhaifeng: > > hi,thomas > > > > Could you change the name of file in directory > > app/test/test_pci_sysfs/bus/pci/devices/ ? > > I think somebody like us also cann't access internet in liunux.Windows not > > support file name > > include

[dpdk-dev] test: failed to clone dpdk source in windows

2016-08-05 Thread Thomas Monjalon
2016-08-05 10:09, linhaifeng: > hi,thomas > > Could you change the name of file in directory > app/test/test_pci_sysfs/bus/pci/devices/ ? > I think somebody like us also cann't access internet in liunux.Windows not > support file name > include ':'. Not sure to understand the use case. This is

[dpdk-dev] [RFC 0/4] Use Google Test as DPDK unit test framework

2016-08-05 Thread Thomas Monjalon
2016-08-04 19:55, Wiles, Keith: > > > On Aug 4, 2016, at 2:47 PM, Jim Murphy wrote: > > > > Hi, > > > > We are looking at using our existing test environment for our DPDK > > applications that will run on our build servers. Hughpages therefore is an > > issue. What is involved in running DPDK w

[dpdk-dev] [PATCH 2/3] net/virtio_user: fix wrong sequence of messages

2016-08-05 Thread Stephen Hemminger
On Fri, 5 Aug 2016 11:36:42 + Jianfeng Tan wrote: > When virtio_user is used with VPP's native vhost user, it cannot > send/receive any packets. > > The root cause is that vpp-vhost-user translates the message > VHOST_USER_SET_FEATURES as puting this device into init state, > aka, zero all

[dpdk-dev] [PATCH 3/3] net/virtio_user: fix dev not freed after init error

2016-08-05 Thread Stephen Hemminger
On Fri, 5 Aug 2016 11:36:43 + Jianfeng Tan wrote: > diff --git a/drivers/net/virtio/virtio_user_ethdev.c > b/drivers/net/virtio/virtio_user_ethdev.c > index daef09b..62ccb0b 100644 > --- a/drivers/net/virtio/virtio_user_ethdev.c > +++ b/drivers/net/virtio/virtio_user_ethdev.c > @@ -313,6 +3

[dpdk-dev] [RFC 0/4] Use Google Test as DPDK unit test framework

2016-08-05 Thread Neil Horman
On Fri, Aug 05, 2016 at 10:11:56AM +0100, Remy Horton wrote: > > On 05/08/2016 08:41, Yerden Zhumabekov wrote: > [..] > > We use cmocka.org for tests. Written in C. It has support for: > > * mocking; > > * setup/teardown; > > * asserts; > > * test groups. > > > > Output is nicely formatted. > >

[dpdk-dev] [PATCH] net/fm10k: fix MAC address remnant in switch

2016-08-05 Thread Chen, Jing D
Hi, > -Original Message- > From: Wang, Xiao W > Sent: Friday, August 05, 2016 11:18 AM > To: Chen, Jing D ; Lin, Xueqin intel.com> > Cc: dev at dpdk.org; Wang, Xiao W > Subject: [PATCH] net/fm10k: fix MAC address remnant in switch > > When testpmd quits with two ports, the second port's

[dpdk-dev] Mbuf leak issue with IXGBE in vector mod

2016-08-05 Thread Lu, Wenzhuo
Hi Ori, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Ori Zakin > Sent: Thursday, August 4, 2016 11:38 PM > To: Zhang, Helin; Ananyev, Konstantin; dev at dpdk.org > Subject: [dpdk-dev] Mbuf leak issue with IXGBE in vector mod > > Hi, > > > 1. When cal