[dpdk-dev] [PATCH v5 1/3] vhost: Add callback and private data for vhost PMD

2015-12-21 Thread Tetsuya Mukawa
On 2015/12/18 19:03, Xie, Huawei wrote: > On 12/18/2015 12:15 PM, Yuanhan Liu wrote: >> On Fri, Dec 18, 2015 at 12:15:42PM +0900, Tetsuya Mukawa wrote: >>> On 2015/12/17 20:42, Yuanhan Liu wrote: On Tue, Nov 24, 2015 at 06:00:01PM +0900, Tetsuya Mukawa wrote: > The vhost PMD will be a wrap

[dpdk-dev] [PATCH v5 1/3] vhost: Add callback and private data for vhost PMD

2015-12-21 Thread Tetsuya Mukawa
On 2015/12/19 3:01, Rich Lane wrote: > I'm using the vhost callbacks and struct virtio_net with the vhost PMD in a > few ways: > > 1. new_device/destroy_device: Link state change (will be covered by the > link status interrupt). > 2. new_device: Add first queue to datapath. > 3. vring_state_changed

[dpdk-dev] [PATCH 0/3] i40e: enable extended tag

2015-12-21 Thread Helin Zhang
'extended tag' is important for XL710 performance, while might not be neccessary for other NICs. It adds the enabling 'extended tag' into i40e PMD specifically, then the sys files of 'extended_tag' and 'max_read_request_size', and all of their relavant operations are removed as they are not necces

[dpdk-dev] [PATCH 2/3] eal: remove pci config of extended tag

2015-12-21 Thread Helin Zhang
Remove pci configuration of 'extended tag' and 'max read request size', as they are not required by all devices and it lets PMD to configure them if neccessary. In addition, 'pci_config_space_set()' is deprecated. Signed-off-by: Helin Zhang --- config/common_linuxapp | 7 --- l

[dpdk-dev] [PATCH 1/3] i40e: enable extended tag

2015-12-21 Thread Helin Zhang
PCIe feature of 'Extended Tag' is important for 40G performance. It adds its enabling during each port initialization, to ensure the high performance. Signed-off-by: Helin Zhang --- doc/guides/rel_notes/release_2_3.rst | 5 +++ drivers/net/i40e/i40e_ethdev.c | 67 +

[dpdk-dev] [PATCH 3/3] igb_uio: remove sys files for setting pci config space

2015-12-21 Thread Helin Zhang
Sys files of 'extended_tag' and 'max_read_request_size' are useless, as nobody will use them for setting pci config space. Signed-off-by: Helin Zhang --- doc/guides/linux_gsg/enable_func.rst | 22 -- doc/guides/rel_notes/deprecation.rst | 3 + doc/guides/rel_notes/release_2_3.rs

[dpdk-dev] [PATCH] Unlink existing unused sockets at start up

2015-12-21 Thread Wang, Zhihong
> -Original Message- > From: Ilya Maximets [mailto:i.maximets at samsung.com] > Sent: Friday, December 18, 2015 2:18 PM > To: Wang, Zhihong ; dev at dpdk.org > Cc: p.fedin at samsung.com; yuanhan.liu at linux.intel.com; s.dyasly at > samsung.com; > Xie, Huawei > Subject: Re: [PATCH] Unl

[dpdk-dev] [PATCH v6 1/4] vhost/lib: add vhost TX offload capabilities in vhost lib

2015-12-21 Thread Jijiang Liu
Add vhost TX offload(CSUM and TSO) support capabilities in vhost lib. Refer to feature bits in Virtual I/O Device (VIRTIO) Version 1.0 below, VIRTIO_NET_F_CSUM (0) Device handles packets with partial checksum. This "checksum offload" is a common feature on modern network cards. VIRTIO_NET_F_HOST

[dpdk-dev] [PATCH v6 0/4] add virtio offload support in us-vhost

2015-12-21 Thread Jijiang Liu
Adds virtio offload support in us-vhost. The patch set adds the feature negotiation of checksum and TSO between us-vhost and vanilla Linux virtio guest, and add these offload features support in the vhost lib, and change vhost sample to test them. In short, this patch set supports the following

[dpdk-dev] [PATCH v6 2/4] vhost/lib: add guest offload setting

2015-12-21 Thread Jijiang Liu
Add guest offload setting in vhost lib. Refer to the feature bits description in the Virtual I/O Device (VIRTIO) Version 1.0 below, 1. VIRTIO_NET_F_GUEST_CSUM (1) Driver handles packets with partial checksum. 2. If the VIRTIO_NET_F_GUEST_CSUM feature was negotiated, the VIRTIO_NET_HDR_F_NEEDS

[dpdk-dev] [PATCH v6 4/4] example/vhost: add virtio offload test in vhost sample

2015-12-21 Thread Jijiang Liu
Change the codes in vhost sample to test virtio offload feature. These changes include, 1. add two test options: tx-csum and tso. 2. add virtio_tx_offload() function to test vhost TX offload feature for VM to NIC case; however, for VM to VM case, it doesn't need to call this function, the reas

[dpdk-dev] [PATCH v6 3/4] sample/vhost: remove the ipv4_hdr structure defination

2015-12-21 Thread Jijiang Liu
Remove the ipv4_hdr structure defination in vhost sample. The same structure has already defined in the rte_ip.h file, so we remove the defination from the sample, and include that header file. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 15 +-- 1 files changed, 1 inse

[dpdk-dev] [PATCH] ixgbe: fix link down issue on x550em_x

2015-12-21 Thread Wenzhuo Lu
Normally the auto-negotiation is supported by FW. But on X550EM_X_10G_T it's not supported by FW. As the port of X550EM_X_10G_T is 10G. If we connect the port with a peer which is 1G. The link is always down. We have to supprted auto-neg by SW to avoid such link down issue. Signed-off-by: root --

[dpdk-dev] [PATCH v2 0/6] vhost-user live migration support

2015-12-21 Thread Pavel Fedin
Works fine. Tested-by: Pavel Fedin Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia > -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Thursday, December 17, 2015 6:12 AM > To: dev at dpdk.org > Cc: huawei.xie a

[dpdk-dev] [PATCH v3] mem: calculate space left in a hugetlbfs

2015-12-21 Thread Qiu, Michael
On 2015/11/18 17:42, Jianfeng Tan wrote: > Currently DPDK does not respect the quota of a hugetblfs mount. > It will fail to init the EAL because it tries to map the number of > free hugepages in the system rather than using the number specified > in the quota for that mount. > > To solve this issu

[dpdk-dev] [PATCH] librte_ether: fix crashes in rte_ethdev functions.

2015-12-21 Thread Qiu, Michael
On 2015/12/18 1:24, Bernard Iremonger wrote: > The nb_rx_queues and nb_tx_queues are initialised before > the tx_queue and rx_queue arrays are allocated. The arrays > are allocated when the ethdev port is started. > > If any of the following functions are called before the ethdev > port is started

[dpdk-dev] [PATCH v4 0/6] interrupt mode for fm10k

2015-12-21 Thread Shaopeng He
This patch series adds interrupt mode support for fm10k, contains four major parts: 1. implement rx_descriptor_done function in fm10k 2. add rx interrupt support in fm10k PF and VF 3. make sure default VID available in dev_init in fm10k 4. fix a memory leak for non-ip packet in l3fwd-power, whi

[dpdk-dev] [PATCH v4 1/6] fm10k: implement rx_descriptor_done function

2015-12-21 Thread Shaopeng He
rx_descriptor_done is used by interrupt mode example application (l3fwd-power) to check rxd DD bit to decide the RX trend, then l3fwd-power will adjust the cpu frequency according to the result. Signed-off-by: Shaopeng He Acked-by: Jing Chen --- drivers/net/fm10k/fm10k.h| 3 +++ driver

[dpdk-dev] [PATCH v4 2/6] fm10k: setup rx queue interrupts for PF and VF

2015-12-21 Thread Shaopeng He
In interrupt mode, each rx queue can have one interrupt to notify the up layer application when packets are available in that queue. Some queues also can share one interrupt. Currently, fm10k needs one separate interrupt for mailbox. So, only those drivers which support multiple interrupt vectors e

[dpdk-dev] [PATCH v4 3/6] fm10k: remove rx queue interrupts when dev stops

2015-12-21 Thread Shaopeng He
Previous dev_stop function stops the rx/tx queues. This patch adds logic to disable rx queue interrupt, clean the datapath event and queue/vec map. Signed-off-by: Shaopeng He Acked-by: Jing Chen --- drivers/net/fm10k/fm10k_ethdev.c | 22 ++ 1 file changed, 22 insertions(+)

[dpdk-dev] [PATCH v4 4/6] fm10k: add rx queue interrupt en/dis functions

2015-12-21 Thread Shaopeng He
Interrupt mode framework has enable/disable functions for individual rx queue, this patch implements these two functions. Signed-off-by: Shaopeng He Acked-by: Jing Chen --- drivers/net/fm10k/fm10k_ethdev.c | 33 + 1 file changed, 33 insertions(+) diff --git a/dr

[dpdk-dev] [PATCH v4 5/6] fm10k: make sure default VID available in dev_init

2015-12-21 Thread Shaopeng He
When PF establishes a connection with Switch Manager, it receives a logic port range from SM, and registers certain logic ports from that range, then a default VID will be send back from SM. This whole transaction needs to be finished in dev_init, otherwise, in dev_start the interrupt setting will

[dpdk-dev] [PATCH v4 6/6] l3fwd-power: fix a memory leak for non-ip packet

2015-12-21 Thread Shaopeng He
Previous l3fwd-power only processes IP and IPv6 packet, other packet's mbuf is not released, and causes a memory leak. This patch fixes this issue. Signed-off-by: Shaopeng He Acked-by: Jing Chen --- doc/guides/rel_notes/release_2_3.rst | 6 ++ examples/l3fwd-power/main.c | 3 ++- 2

[dpdk-dev] [PATCH 1/2] testpmd: optimize tx_vlan_set and tx_qinq_set function

2015-12-21 Thread Wang Xiao W
Now in cmd_tx_vlan_set_parsed function, we check the vlan_offload capability first, if it's a invalid port we'll get a prompt saying "Error, as QinQ has been enabled.". So we should always make sure that we get a valid port_id first before we check other information. It's the same problem for cmd_t

[dpdk-dev] [PATCH] librte_ether: fix crashes in rte_ethdev functions.

2015-12-21 Thread Iremonger, Bernard
Hi Michael, > -Original Message- > From: Qiu, Michael > Sent: Monday, December 21, 2015 9:03 AM > To: Iremonger, Bernard ; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] librte_ether: fix crashes in rte_ethdev > functions. > > On 2015/12/18 1:24, Bernard Iremonger wrote: > > The nb_rx_

[dpdk-dev] VFIO no-iommu

2015-12-21 Thread Yigit, Ferruh
On Fri, Dec 18, 2015 at 02:50:17PM -0700, Alex Williamson wrote: > On Fri, 2015-12-18 at 07:38 -0700, Alex Williamson wrote: > > On Fri, 2015-12-18 at 10:43 +, Yigit, Ferruh wrote: > > > On Thu, Dec 17, 2015 at 09:43:59AM -0700, Alex Williamson wrote: > > > <...> > > > > > > > > > > > > > > >

[dpdk-dev] [PATCH] librte_ether: fix crashes in rte_ethdev functions.

2015-12-21 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Iremonger, Bernard > Sent: Monday, December 21, 2015 11:40 AM > To: Qiu, Michael; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] librte_ether: fix crashes in rte_ethdev > functions. > > Hi Michael, > > >

[dpdk-dev] [PATCH] vfio: add no-iommu support

2015-12-21 Thread Ferruh Yigit
This is based on patch from Alex Williamson: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=033291eccbdb plus http://dpdk.org/dev/patchwork/patch/9598/ This patch is intended to test above patches on DPDK rather than official patch to DPDK. Test result is DPDK successf

[dpdk-dev] [PATCH v2 1/2] mbuf: provide rte_pktmbuf_alloc_bulk API

2015-12-21 Thread Xie, Huawei
On 12/19/2015 1:32 AM, Stephen Hemminger wrote: > On Fri, 18 Dec 2015 10:44:02 + > "Ananyev, Konstantin" wrote: > >> >>> -Original Message- >>> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Stephen Hemminger >>> Sent: Friday, December 18, 2015 5:01 AM >>> To: Xie, Huawei >>>

[dpdk-dev] [PATCH 1/3] version: switch to year/month version numbers

2015-12-21 Thread Bruce Richardson
As discussed on list, switch numbering scheme to be based on year/month. Release 2.3 then becomes 16.04. Ref: http://dpdk.org/ml/archives/dev/2015-December/030336.html Signed-off-by: Bruce Richardson --- lib/librte_eal/common/include/rte_version.h | 4 ++-- 1 file changed, 2 insertions(+), 2 de

[dpdk-dev] [PATCH 2/3] version: adjust printing for new version scheme

2015-12-21 Thread Bruce Richardson
Since we are now using a year-month numbering scheme, adjust the printing of the version to always use 2-digits for YY.MM format. Also omit the patch version unless there is a patch version present, since patches for releases are rare on DPDK. This means that the final release of 16.04 will report

[dpdk-dev] [PATCH 3/3] doc: rename release 2.3 to 16.04

2015-12-21 Thread Bruce Richardson
Update documentation to reflect new numbering scheme Signed-off-by: Bruce Richardson --- doc/guides/rel_notes/index.rst | 2 +- doc/guides/rel_notes/release_16_04.rst | 83 ++ doc/guides/rel_notes/release_2_3.rst | 76 --- 3

[dpdk-dev] [PATCH 0/3] switch to using YY.MM version numbers

2015-12-21 Thread Bruce Richardson
As discussed on the list, e.g. on threads: http://dpdk.org/ml/archives/dev/2015-December/030336.html http://dpdk.org/ml/archives/dev/2015-December/030551.html switch the release number from 2.3 to 16.04 to have a month/year based numbering scheme. Bruce Richardson (3): version: switch to yea

[dpdk-dev] [PATCH] librte_ether: fix crashes in rte_ethdev functions.

2015-12-21 Thread Iremonger, Bernard
Hi Konstantin, > -Original Message- > From: Ananyev, Konstantin > Sent: Monday, December 21, 2015 12:02 PM > To: Iremonger, Bernard ; Qiu, Michael > ; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH] librte_ether: fix crashes in rte_ethdev > functions. > > > > > -Original Message--

[dpdk-dev] [PATCH v2 2/6] vhost: introduce vhost_log_write

2015-12-21 Thread Xie, Huawei
On 12/17/2015 11:11 AM, Yuanhan Liu wrote: > Introduce vhost_log_write() helper function to log the dirty pages we > touched. Page size is harded code to 4096 (VHOST_LOG_PAGE), and each > log is presented by 1 bit. > > Therefore, vhost_log_write() simply finds the right bit for related > page we ar

[dpdk-dev] [PATCH] vfio: add no-iommu support

2015-12-21 Thread Burakov, Anatoly
Hi Ferruh, > This is based on patch from Alex Williamson: > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=03 > 3291eccbdb > plus > http://dpdk.org/dev/patchwork/patch/9598/ > > This patch is intended to test above patches on DPDK rather than official > patch to DPDK.

[dpdk-dev] [PATCH v2 1/2] mbuf: provide rte_pktmbuf_alloc_bulk API

2015-12-21 Thread Xie, Huawei
On 12/19/2015 3:27 AM, Wiles, Keith wrote: > On 12/18/15, 11:32 AM, "dev on behalf of Stephen Hemminger" dpdk.org on behalf of stephen at networkplumber.org> wrote: > >> On Fri, 18 Dec 2015 10:44:02 + >> "Ananyev, Konstantin" wrote: >> >>> -Original Message- From: dev [mailt

[dpdk-dev] [PATCH] vfio: add no-iommu support

2015-12-21 Thread Yigit, Ferruh
On Mon, Dec 21, 2015 at 03:15:46PM +, Burakov, Anatoly wrote: > > This is based on patch from Alex Williamson: > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=03 > > 3291eccbdb > > plus > > http://dpdk.org/dev/patchwork/patch/9598/ > > > > This patch is intended

[dpdk-dev] [PATCH] vfio: add no-iommu support

2015-12-21 Thread Burakov, Anatoly
Hi Ferruh, > On Mon, Dec 21, 2015 at 03:15:46PM +, Burakov, Anatoly wrote: > > > This is based on patch from Alex Williamson: > > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/comm > > > it/?id=03 > > > 3291eccbdb > > > plus > > > http://dpdk.org/dev/patchwork/patch/9598/ >

[dpdk-dev] [PATCH v2 1/6] vhost: handle VHOST_USER_SET_LOG_BASE request

2015-12-21 Thread Xie, Huawei
On 12/17/2015 11:11 AM, Yuanhan Liu wrote: > VHOST_USER_SET_LOG_BASE request is used to tell the backend (dpdk > vhost-user) where we should log dirty pages, and how big the log > buffer is. > > This request introduces a new payload: > > typedef struct VhostUserLog { > uint64_t mmap

[dpdk-dev] tcpdump support in DPDK 2.3

2015-12-21 Thread Bruce Richardson
On Wed, Dec 16, 2015 at 01:15:57PM -0500, Matthew Hall wrote: > On Wed, Dec 16, 2015 at 11:56:11AM +, Bruce Richardson wrote: > > Having this work with any application is one of our primary targets here. > > The app author should not have to worry too much about getting basic debug > > suppor

[dpdk-dev] tcpdump support in DPDK 2.3

2015-12-21 Thread Morten Brørup
Bruce, Please reconsider your interpretation of the word "debuggability". Debugging is not only something that R&D staff does in a lab. Debuggability can also be interpreted as a network engineer's ability to debug what is happening in a production network. Referring to the link you kindly pro

[dpdk-dev] tcpdump support in DPDK 2.3

2015-12-21 Thread Gray, Mark D
> This is something also being looked for by folks such as those > working on OVS e.g. called out at > http://openvswitch.org/pipermail/dev/2015-August/058814.html > > "- Insight into the system and debuggability: nothing beats tcpdump for the > kernel datapath. Can something similar be don

[dpdk-dev] tcpdump support in DPDK 2.3

2015-12-21 Thread Gray, Mark D
> Bruce, > > Please reconsider your interpretation of the word "debuggability". > Debugging is not only something that R&D staff does in a lab. Debuggability > can also be interpreted as a network engineer's ability to debug what is > happening in a production network. Is tcpdump used in large pr

[dpdk-dev] [PATCH v2 1/2] mbuf: provide rte_pktmbuf_alloc_bulk API

2015-12-21 Thread Wiles, Keith
On 12/21/15, 9:21 AM, "Xie, Huawei" wrote: >On 12/19/2015 3:27 AM, Wiles, Keith wrote: >> On 12/18/15, 11:32 AM, "dev on behalf of Stephen Hemminger" > dpdk.org on behalf of stephen at networkplumber.org> wrote: >> >>> On Fri, 18 Dec 2015 10:44:02 + >>> "Ananyev, Konstantin" wrote: >>>

[dpdk-dev] tcpdump support in DPDK 2.3

2015-12-21 Thread Matthew Hall
On Mon, Dec 21, 2015 at 04:17:26PM +, Gray, Mark D wrote: > Is tcpdump used in large production cloud environments? I would have > thought other less intrusive (and less manual) tools would be used? Isn't > that one of the benefits of SDN. tcpdump, tshark, wireshark, libpcap, etc. have been u

[dpdk-dev] building LIBRTE_PMD_XENVIRT in 32bit triggers some errors

2015-12-21 Thread Martinx - ジェームズ
On 10 December 2015 at 02:45, Xie, Huawei wrote: > On 12/10/2015 6:49 AM, Martinx - ? wrote: >> On 9 December 2015 at 18:05, Thomas Monjalon >> wrote: >>> 2015-12-09 15:54, Martinx - ?: Sorry to insist on this subject but, the time for releasing DPDK 2.2 is near and DPDK build

[dpdk-dev] [PATCH 3/3] igb_uio: remove sys files for setting pci config space

2015-12-21 Thread Stephen Hemminger
On Mon, 21 Dec 2015 10:38:06 +0800 Helin Zhang wrote: > Sys files of 'extended_tag' and 'max_read_request_size' are > useless, as nobody will use them for setting pci config space. > > Signed-off-by: Helin Zhang > --- > doc/guides/linux_gsg/enable_func.rst | 22 -- > doc/guides/rel_n

[dpdk-dev] VFIO no-iommu

2015-12-21 Thread Alex Williamson
On Mon, 2015-12-21 at 11:46 +, Yigit, Ferruh wrote: > On Fri, Dec 18, 2015 at 02:50:17PM -0700, Alex Williamson wrote: > > On Fri, 2015-12-18 at 07:38 -0700, Alex Williamson wrote: > > > On Fri, 2015-12-18 at 10:43 +, Yigit, Ferruh wrote: > > > > On Thu, Dec 17, 2015 at 09:43:59AM -0700, Al

[dpdk-dev] [PATCH] vfio: Support for no-IOMMU mode

2015-12-21 Thread Anatoly Burakov
This commit is adding a generic mechanism to support multiple IOMMU types. For now, it's only type 1 (x86 IOMMU) and no-IOMMU (a special VFIO mode that doesn't use IOMMU at all), but it's easily extended by adding necessary definitions into eal_pci_init.h and a DMA mapping function to eal_pci_vfio_

[dpdk-dev] [PATCH v2 1/2] mbuf: provide rte_pktmbuf_alloc_bulk API

2015-12-21 Thread Thomas Monjalon
2015-12-21 17:20, Wiles, Keith: > On 12/21/15, 9:21 AM, "Xie, Huawei" wrote: > >On 12/19/2015 3:27 AM, Wiles, Keith wrote: > >> On 12/18/15, 11:32 AM, "dev on behalf of Stephen Hemminger" >> at dpdk.org on behalf of stephen at networkplumber.org> wrote: > >>> On Fri, 18 Dec 2015 10:44:02 + >

[dpdk-dev] [PATCH v2 1/2] mbuf: provide rte_pktmbuf_alloc_bulk API

2015-12-21 Thread Don Provan
>From: Xie, Huawei [mailto:huawei.xie at intel.com] >Sent: Monday, December 21, 2015 7:22 AM >Subject: Re: [dpdk-dev] [PATCH v2 1/2] mbuf: provide rte_pktmbuf_alloc_bulk API > >The loop unwinding could give performance gain. The only problem is the >switch/loop >combination makes people feel weir

[dpdk-dev] [PATCH v1] Modify and modularize l3fwd code

2015-12-21 Thread Ravi Kerur
Many thanks to Intel team (Konstantin, Bruce and Declan) for below proposal to make changes to l3fwd code, their valuable inputs during interal review and help in performance tests. The main problem with l3fwd is that it is too monolithic with everything being in one file, and the various options

[dpdk-dev] [PATCH v1] Modify and modularize l3fwd code

2015-12-21 Thread Ravi Kerur
v1: > Rebase to latest code base for DPDK team review. Intel team's (Konstantin, Bruce and Declan) review comments v4<-v3: > Fix code review comments from Konstantin > Move buffer optimization code into l3fwd_lpm_sse.h and l3fwd_em_sse.h for LPM and EM respective

[dpdk-dev] [PATCH v5 1/3] vhost: Add callback and private data for vhost PMD

2015-12-21 Thread Rich Lane
On Mon, Dec 21, 2015 at 7:41 PM, Yuanhan Liu wrote: > On Fri, Dec 18, 2015 at 10:01:25AM -0800, Rich Lane wrote: > > I'm using the vhost callbacks and struct virtio_net with the vhost PMD > in a few > > ways: > > Rich, thanks for the info! > > > > > 1. new_device/destroy_device: Link state change