[dpdk-dev] [PATCH v2] examples/l3fwd: fix using packet type blindly

2016-03-09 Thread Tan, Jianfeng
Hi Konstantin, On 3/8/2016 2:51 AM, Ananyev, Konstantin wrote: > Hi Jianfeng, > >> +/* Requirements: >> + * 1. IP packets without extension; >> + * 2. L4 payload should be either TCP or UDP. >> + */ >> +int >> +em_check_ptype(int portid) >> +{ >> +int i, ret; >> +int ptype_l3_ipv4_ext =

[dpdk-dev] [PATCH] eal: add option --avail-cores to detect lcores

2016-03-09 Thread Tan, Jianfeng
Hi Panu, On 3/8/2016 4:54 PM, Panu Matilainen wrote: > On 03/04/2016 12:05 PM, Jianfeng Tan wrote: >> This patch adds option, --avail-cores, to use lcores which are available >> by calling pthread_getaffinity_np() to narrow down detected cores before >> parsing coremask (-c), corelist (-l), and

[dpdk-dev] [PATCH v4 4/4] virtio: return 1 to tell the upper layer we don't take over this device

2016-03-09 Thread Thomas Monjalon
2016-03-01 10:08, Xie, Huawei: > On 3/1/2016 5:57 PM, Thomas Monjalon wrote: > > 2016-03-01 08:39, Xie, Huawei: > >> On 3/1/2016 4:24 PM, Thomas Monjalon wrote: > >>> 2016-03-01 07:53, Xie, Huawei: > On 3/1/2016 3:18 PM, Thomas Monjalon wrote: > > 2016-02-26 09:53, Huawei Xie: > >> @@

[dpdk-dev] [PATCH v7 1/4] lib/ether: optimize the'rte_eth_tunnel_filter_conf' structure

2016-03-09 Thread Thomas Monjalon
Hi, 2016-03-01 16:41, Xutao Sun: > --- a/doc/guides/rel_notes/release_16_04.rst > +++ b/doc/guides/rel_notes/release_16_04.rst > @@ -123,6 +123,8 @@ ABI Changes >the previous releases and made in this release. Use fixed width quotes for >``rte_function_names`` or ``rte_struct_names``. Use

[dpdk-dev] [PATCH v2] ethdev: fix byte order inconsistence between fdir flow and mask

2016-03-09 Thread Thomas Monjalon
Hi Jingjing, 2016-02-01 10:48, Jingjing Wu: > @@ -39,6 +43,8 @@ API Changes > ABI Changes > --- > > +* The fields in ethdev structure ``rte_eth_fdir_masks`` were > + changed to be in big endian. I think it is an API change. Please could you fix it? Thanks

[dpdk-dev] [PATCH v7 1/4] lib/ether: optimize the'rte_eth_tunnel_filter_conf' structure

2016-03-09 Thread Thomas Monjalon
2016-03-09 00:08, Thomas Monjalon: > Hi, > > 2016-03-01 16:41, Xutao Sun: > > --- a/doc/guides/rel_notes/release_16_04.rst > > +++ b/doc/guides/rel_notes/release_16_04.rst > > @@ -123,6 +123,8 @@ ABI Changes > >the previous releases and made in this release. Use fixed width quotes > > for >

[dpdk-dev] [PATCH v7 0/5] Support VxLAN & NVGRE checksum off-load on X550

2016-03-09 Thread Thomas Monjalon
2016-03-04 10:35, Wenzhuo Lu: > Wenzhuo Lu (5): > lib/librte_ether: change function name of tunnel port config > i40e: rename the tunnel port config functions > ixgbe: support UDP tunnel port config > ixgbe: support VxLAN & NVGRE RX checksum off-load > ixgbe: support VxLAN & NVGRE TX

[dpdk-dev] [PATCH v7 1/5] lib/librte_ether: change function name of tunnel port config

2016-03-09 Thread Thomas Monjalon
2016-03-04 10:35, Wenzhuo Lu: > The names of function for tunnel port configuration are not > accurate. They're tunnel_add/del, better change them to > tunnel_port_add/del. As a lot of ethdev API, it is really badly documented. Please explain why this renaming and let's try to reword the

[dpdk-dev] [PATCH v6 2/5] lib/librte_ether: support l2 tunnel operations

2016-03-09 Thread Thomas Monjalon
2016-03-08 14:53, Wenzhuo Lu: > +/** > + * l2 tunnel type. > + */ > +enum rte_eth_l2_tunnel_type { > + RTE_L2_TUNNEL_TYPE_NONE = 0, > + RTE_L2_TUNNEL_TYPE_E_TAG, > + RTE_L2_TUNNEL_TYPE_MAX, > +}; We already have rte_eth_tunnel_type. Why this struct is in rte_eth_ctrl.h and not used

[dpdk-dev] [PATCH v7 0/5] Support VxLAN & NVGRE checksum off-load on X550

2016-03-09 Thread Lu, Wenzhuo
Hi Thomas, > > > > Acked-by: Konstantin Ananyev > > Please, when you report an ack, it must added in the patches. OK. I'll add the ack to every patch. Thanks.

[dpdk-dev] [PATCH v3 0/5] add dpdk packet capture support for tcpdump

2016-03-09 Thread Thomas Monjalon
Hi, This series has not been reviewed enough to be ready for 16.04. So it would be good to restart the discussion about the tcpdump requirements. > packet capture flow for tcpdump: > > Part of the design is implemented in secondary process (proc_info.c) and >

[dpdk-dev] [PATCH v3 0/2] Increased number of next hops for LPM IPv4

2016-03-09 Thread Thomas Monjalon
2016-03-08 21:52, Michal Kobylinski: > This patchset extended next_hop field from 8-bits to 24-bits in LPM library > for IPv4. > > Added versioning symbols to functions and updated > library and applications that have a dependency on LPM library. > > Michal Kobylinski (2): > lpm: extend ip4

[dpdk-dev] [PATCH 2/2] examples: update to use new lpm lib for ipv4

2016-03-09 Thread Thomas Monjalon
2016-03-08 21:52, Michal Kobylinski: > Signed-off-by: Michal Kobylinski > Acked-by: David Hunt > --- > examples/ip_fragmentation/main.c| 16 ++-- > examples/ip_reassembly/main.c | 15 +-- > examples/l3fwd-power/main.c | 2 +-

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

2016-03-09 Thread Zhang, Helin
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, March 9, 2016 2:41 AM > To: Zhang, Helin > Cc: dev at dpdk.org > Subject: Re: [PATCH v3 0/3] enable extended tag for i40e > > 2016-03-08 19:38, Thomas Monjalon: > > It enables

[dpdk-dev] [PATCH 0/2] Added a new rte_lpm_config structure for IPv4.

2016-03-09 Thread Thomas Monjalon
2016-03-08 21:57, Michal Kobylinski: > A new rte_lpm_config structure is used so LPM library will allocate > exactly the amount of memory which is necessary to hold application?s > rules. Does it depend on "Increased number of next hops for LPM IPv4"? I guess one patch is based on the other in

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

2016-03-09 Thread Thomas Monjalon
2016-03-09 00:48, Zhang, Helin: > > > -Original Message- > > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > Sent: Wednesday, March 9, 2016 2:41 AM > > To: Zhang, Helin > > Cc: dev at dpdk.org > > Subject: Re: [PATCH v3 0/3] enable extended tag for i40e > > > >

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

2016-03-09 Thread Thomas Monjalon
2016-03-09 00:48, Zhang, Helin: > > 2016-03-08 19:38, Thomas Monjalon: > > > It enables 'extended tag' for i40e devices only during its port > > > initialization, which is key for 40G performance. It also deprecates > > > the similar in igb_uio, and eal lib. > > > > > > v3: > > > - fix build with

[dpdk-dev] [PATCH v7 1/5] lib/librte_ether: change function name of tunnel port config

2016-03-09 Thread Lu, Wenzhuo
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, March 9, 2016 7:35 AM > To: Lu, Wenzhuo > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v7 1/5] lib/librte_ether: change function name > of tunnel port config > >

[dpdk-dev] [PATCH v7 1/5] lib/librte_ether: change function name of tunnel port config

2016-03-09 Thread Thomas Monjalon
2016-03-09 00:53, Lu, Wenzhuo: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > 2016-03-04 10:35, Wenzhuo Lu: > > > The names of function for tunnel port configuration are not accurate. > > > They're tunnel_add/del, better change them to tunnel_port_add/del. > > > > As a lot of

[dpdk-dev] [PATCH v6 2/5] lib/librte_ether: support l2 tunnel operations

2016-03-09 Thread Lu, Wenzhuo
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, March 9, 2016 8:15 AM > To: Lu, Wenzhuo > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v6 2/5] lib/librte_ether: support l2 tunnel > operations > > 2016-03-08 14:53,

[dpdk-dev] [PATCH v7 1/5] lib/librte_ether: change function name of tunnel port config

2016-03-09 Thread Lu, Wenzhuo
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, March 9, 2016 9:04 AM > To: Lu, Wenzhuo > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v7 1/5] lib/librte_ether: change function name > of tunnel port config > >

[dpdk-dev] [PATCH v7 1/5] lib/librte_ether: change function name of tunnel port config

2016-03-09 Thread Lu, Wenzhuo
Hi Thomas, > > > > > > > > You must move it below the doxygen comment. > > > OK. Honestly, I'd like to act like that. But seems the style is to > > > put the function above the comment.(Don't know the reason.) > > > > Do you mean the function below the comment? > No, I really mean above. Like

[dpdk-dev] [PATCH v8 0/5] Support VxLAN & NVGRE checksum off-load on X550

2016-03-09 Thread Wenzhuo Lu
v2: - Update release note. v3: - Update RX/TX offload capability. - Reuse PKT_RX_EIP_CKSUM_BAD but not add a new one. - Correct the tunnel len for TX, and remove the useless out_l2_len. - Don't set the tunnel type for TX, and remove the unused ol_flag_nvgre. v4: - Fix the issue that not setting

[dpdk-dev] [PATCH v8 1/5] lib/librte_ether: change function name of tunnel port config

2016-03-09 Thread Wenzhuo Lu
The names of function for tunnel port configuration are not accurate. They're tunnel_add/del, better change them to tunnel_port_add/del. As it may be an ABI change if change the names directly, the new functions are added but not remove the old ones. The old ones will be removed in the next

[dpdk-dev] [PATCH v8 2/5] i40e: rename the tunnel port config functions

2016-03-09 Thread Wenzhuo Lu
As the names of tunnel port config functions are not accurate, change them from tunnel_add/del to tunnel_port_add/del. And support both the old and new rte ops. Signed-off-by: Wenzhuo Lu Acked-by: Konstantin Ananyev --- drivers/net/i40e/i40e_ethdev.c | 22 -- 1 file

[dpdk-dev] [PATCH v8 3/5] ixgbe: support UDP tunnel port config

2016-03-09 Thread Wenzhuo Lu
Add UDP tunnel port add/del support on ixgbe. Now only support VxLAN port configuration. Although according to the specification the VxLAN port has a default value 4789, it can be changed. We support VxLAN port configuration to meet the change. Note, the default value of VxLAN port in ixgbe NICs

[dpdk-dev] [PATCH v8 4/5] ixgbe: support VxLAN & NVGRE RX checksum off-load

2016-03-09 Thread Wenzhuo Lu
X550 will do VxLAN & NVGRE RX checksum off-load automatically. This patch exposes the result of the checksum off-load. Signed-off-by: Wenzhuo Lu Acked-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 drivers/net/ixgbe/ixgbe_rxtx.c | 11 ++-

[dpdk-dev] [PATCH v8 5/5] ixgbe: support VxLAN & NVGRE TX checksum off-load

2016-03-09 Thread Wenzhuo Lu
The patch add VxLAN & NVGRE TX checksum off-load. When the flag of outer IP header checksum offload is set, we'll set the context descriptor to enable this checksum off-load. Also update release note for VxLAN & NVGRE checksum off-load support and ABI change. Signed-off-by: Wenzhuo Lu Acked-by:

[dpdk-dev] [PATCH v3] i40e: add VEB switching support for i40e

2016-03-09 Thread Zhe Tao
VEB switching feature for i40e is used to enable the switching between the VSIs connect to the virtual bridge. The old implementation is setting the virtual bridge mode as VEPA which is port aggregation. Enable the switching ability by setting the loop back mode for the specific VSIs which

[dpdk-dev] [PATCH v3 00/12] extend flow director fields in i40e driver

2016-03-09 Thread Jingjing Wu
v3 changes: - rebase to latest dpdk-next-net/rel_16_04(commit: 0f9564a0e4f2) - use AQ rx control register read/write for some registers - remove few useless lines - patch title rewording v2 changes: - rebase on dpdk-next-net/rel_16_04 - comments rewording. - redefine the value of

[dpdk-dev] [PATCH v3 01/12] ethdev: extend flow director for input selection

2016-03-09 Thread Jingjing Wu
This patch added RTE_ETH_INPUT_SET_L3_IP4_TTL, RTE_ETH_INPUT_SET_L3_IP6_HOP_LIMITS input field type and extended struct rte_eth_ipv4_flow and rte_eth_ipv6_flow to support filtering by tos, protocol and ttl. Signed-off-by: Jingjing Wu --- lib/librte_ether/rte_eth_ctrl.h | 8 1 file

[dpdk-dev] [PATCH v3 02/12] i40e: split function for hash and fdir input

2016-03-09 Thread Jingjing Wu
This patch split function for input set changing of hash and fdir to avoid multiple check on different situation. Signed-off-by: Jingjing Wu --- drivers/net/i40e/i40e_ethdev.c | 235 + drivers/net/i40e/i40e_ethdev.h | 11 +- drivers/net/i40e/i40e_fdir.c

[dpdk-dev] [PATCH v3 03/12] i40e: remove flex payload from input selection

2016-03-09 Thread Jingjing Wu
In this patch, flex payload is removed from valid fdir input set values. It is because all flex payload configuration can be set in struct rte_fdir_conf during device configure phase. And it is a more flexible configuration including flexpayload's selection, input set selection by word and mask

[dpdk-dev] [PATCH v3 04/12] i40e: restore default setting on input set

2016-03-09 Thread Jingjing Wu
This patch added a new function to set the input set to default when initialization. Signed-off-by: Jingjing Wu --- drivers/net/i40e/i40e_ethdev.c | 56 ++ 1 file changed, 56 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c

[dpdk-dev] [PATCH v3 06/12] testpmd: extend input set related commands

2016-03-09 Thread Jingjing Wu
This patch extended commands for filter's input set changing. It added tos, protocol and ttl as filter's input fields, and remove the words selection from flex payloads for flow director. Signed-off-by: Jingjing Wu --- app/test-pmd/cmdline.c | 100

[dpdk-dev] [PATCH v3 05/12] i40e: extend flow director to filter by IP Header

2016-03-09 Thread Jingjing Wu
This patch extended flow director to select more IP Header fields as filter input set. Signed-off-by: Jingjing Wu --- drivers/net/i40e/i40e_ethdev.c | 69 ++ drivers/net/i40e/i40e_fdir.c | 26 +++- 2 files changed, 75 insertions(+), 20

[dpdk-dev] [PATCH v3 07/12] librte_ether: extend flow director struct

2016-03-09 Thread Jingjing Wu
This patch changed rte_eth_fdir_flow from union to struct to support more packets formats, for example, Vxlan and GRE tunnel packets with IP inner frame. This patch also add new RTE_FDIR_TUNNEL_TYPE_GRE enum. Signed-off-by: Jingjing Wu --- doc/guides/rel_notes/deprecation.rst | 4

[dpdk-dev] [PATCH v3 08/12] i40e: extend flow director to filter by tunnel ID

2016-03-09 Thread Jingjing Wu
This patch extended flow director to select Vxlan/GRE tunnel ID as filter's input set and program the filter rule with the defined tunnel type. Signed-off-by: Jingjing Wu --- drivers/net/i40e/i40e_ethdev.c | 11 +++ drivers/net/i40e/i40e_fdir.c | 150 +++--

[dpdk-dev] [PATCH v3 09/12] testpmd: extend flow director commands

2016-03-09 Thread Jingjing Wu
This patch extended commands for filter's input set changing. It added GRE/Vxlan Tunnel as filter's input fields. Signed-off-by: Jingjing Wu --- app/test-pmd/cmdline.c | 27 +-- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 22 --

[dpdk-dev] [PATCH v3 10/12] i40e: fix VLAN bitmasks for input set

2016-03-09 Thread Jingjing Wu
This patch adds missing VLAN bitmask for inner frame in case of tunneling and fixes VLAN tags bitmasks for single or outer frame in case of tunneling. Fixes: 98f055707685 ("i40e: configure input fields for RSS or flow director") Signed-off-by: Andrey Chilikin Signed-off-by: Jingjing Wu ---

[dpdk-dev] [PATCH v3 12/12] testpmd: extend flow director commands

2016-03-09 Thread Jingjing Wu
This patch extended commands for filter's input set changing. It added vlan as filter's input fields. Signed-off-by: Jingjing Wu --- app/test-pmd/cmdline.c | 6 +++--- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff

[dpdk-dev] [PATCH v3 11/12] i40e: extend flow director to filter by vlan id

2016-03-09 Thread Jingjing Wu
This patch extended flow director to select vlan id as filter's input set and program the filter rule with vlan id. Signed-off-by: Jingjing Wu --- doc/guides/rel_notes/release_16_04.rst | 2 ++ drivers/net/i40e/i40e_ethdev.c | 11 drivers/net/i40e/i40e_fdir.c | 49

[dpdk-dev] [PATCH v4 0/2] i40evf: pf reset event report

2016-03-09 Thread Jingjing Wu
v4 changes: - rebase on latest dpdk-next-net/rel_16_04 branch (commit 0f9564a0e4f2) v3 changes: - commit log doc rewording. - rebase on latest dpdk-next-net/rel_16_04 branch. - remove few useless line. - adjust interval and increase times for waiting pf msg v2 changes: - remove the change

[dpdk-dev] [PATCH v4 1/2] i40evf: allocate virtchnl cmd buffer for each vf

2016-03-09 Thread Jingjing Wu
Currently, i40evf PMD uses a global static buffer to send virtchnl command to host driver. It is shared by multi VFs. This patch changed to allocate virtchnl cmd buffer for each VF. Signed-off-by: Jingjing Wu Acked-by: Helin Zhang --- drivers/net/i40e/i40e_ethdev.h| 2 +

[dpdk-dev] [PATCH v4 2/2] i40evf: support to report pf reset event

2016-03-09 Thread Jingjing Wu
When Linux PF and DPDK VF are used for i40e PMD, In case of PF reset, interrupt will go via adminq event, VF need be informed the event, a callback mechanism is introduced by VF. This will allow VF to invoke callback when reset happens. Users can register a callback for this interrupt event like:

[dpdk-dev] [PATCH v3] i40e: add VEB switching support for i40e

2016-03-09 Thread Wu, Jingjing
> -Original Message- > From: Tao, Zhe > Sent: Wednesday, March 09, 2016 1:39 PM > To: dev at dpdk.org > Cc: Tao, Zhe; Wu, Jingjing > Subject: [dpdk-dev][PATCH v3] i40e: add VEB switching support for i40e > > VEB switching feature for i40e is used to enable the switching between the >

[dpdk-dev] [PATCH v3 00/12] extend flow director fields in i40e driver

2016-03-09 Thread Zhang, Helin
Acked-by: Helin Zhang > -Original Message- > From: Wu, Jingjing > Sent: Wednesday, March 9, 2016 1:43 PM > To: Richardson, Bruce > Cc: dev at dpdk.org; Wu, Jingjing ; Zhang, Helin > ; Lu, Wenzhuo ; Pei, Yulong > > Subject: [PATCH v3 00/12] extend flow director fields in i40e driver >

[dpdk-dev] [PATCH v2] examples/ip_pipeline: CPU utilization measurement and display

2016-03-09 Thread Wan, Qun
Tested-ny: Qun Wan pipeline> t s1c1 headroom 57.085% -Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Fan Zhang Sent: Monday, February 22, 2016 10:07 PM To: dev at dpdk.org Subject: [dpdk-dev] [PATCH v2] examples/ip_pipeline: CPU utilization measurement and

[dpdk-dev] [PATCH v3 0/2] doc: add i40e pmd driver introduction

2016-03-09 Thread Jingjing Wu
A new doc "i40e.rst" is added to introduce i40e pmd driver. v3 changes: - update table in overview.rst. - rework index.rst to keep an alphabetical order. v2 changes: - restrict long code line - fix typo Jingjing Wu (2): doc: add doc for i40e pmd driver introduction doc: add i40e to

[dpdk-dev] [PATCH v3 2/2] doc: add i40e to overview table

2016-03-09 Thread Jingjing Wu
Signed-off-by: Jingjing Wu --- doc/guides/nics/overview.rst | 82 ++-- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/doc/guides/nics/overview.rst b/doc/guides/nics/overview.rst index d4c6ff4..431bd1e 100644 ---

[dpdk-dev] tunnel link as a PMD device

2016-03-09 Thread zheng jie
Hi every,could I construct a virtual links which works like KNI ,but without any ifaces ?,with this ,I could generate a virtual link using vxlan/geneve/gre.. encapsulation manners.

[dpdk-dev] [PATCH v7 0/5] support E-tag offloading and forwarding on X550

2016-03-09 Thread Wenzhuo Lu
This patch set adds the support of E-tag offloading and forwarding on X550. The offloading means E-tag can be inserted and stripped by HW. And E-tag packets can be recognized and forwarded to specific pools based on GRP and E-CID_base in E-tag. E-tag is defined in IEEE802.1br. Please reference

[dpdk-dev] [PATCH v7 2/5] lib/librte_ether: support l2 tunnel operations

2016-03-09 Thread Wenzhuo Lu
Add functions to support l2 tunnel configuration and operations. 1, L2 tunnel ether type modification. It means modifying the ether type of a specific type of tunnel. So the packet with this ether type will be parsed as this type of tunnel. 2, Enabling/disabling l2 tunnel support. It

[dpdk-dev] [PATCH v7 4/5] app/testpmd: add CLIs for l2 tunnel config

2016-03-09 Thread Wenzhuo Lu
Add CLIs to config ether type of l2 tunnel, and to enable/disable a type of l2 tunnel. Now only e-tag tunnel is supported. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 278 +++- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 11 ++ 2 files

[dpdk-dev] [PATCH v7 3/5] ixgbe: support l2 tunnel operations

2016-03-09 Thread Wenzhuo Lu
Add support of l2 tunnel configuration and operations. 1, Support modifying ether type of a type of l2 tunnel. 2, Support enabling and disabling the support of a type of l2 tunnel. 3, Support enabling/disabling l2 tunnel tag insertion/stripping. 4, Support enabling/disabling l2 tunnel packets

[dpdk-dev] [PATCH v7 5/5] app/testpmd: add CLIs for E-tag operation

2016-03-09 Thread Wenzhuo Lu
Add the CLIs to support the E-tag operation. 1, Offloading of E-tag insertion and stripping. 2, Forwarding the E-tag packets to pools based on the GRP and E-CID_base. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 424

[dpdk-dev] [PATCH v7 1/5] ixgbe: select pool by MAC when using double VLAN

2016-03-09 Thread Wenzhuo Lu
On X550, as required by datasheet, E-tag packets are not expected when double VLAN are used. So modify the register PFVTCTL after enabling double VLAN to select pool by MAC but not MAC or E-tag. An introduction of E-tag: It's defined in IEEE802.1br. Please reference this website,

[dpdk-dev] [PATCH v2] i40evf: enable ops to set mac address

2016-03-09 Thread Jingjing Wu
This patch implemented the ops of adding and removing mac address in i40evf driver. Functions are assigned like: .mac_addr_add= i40evf_add_mac_addr, .mac_addr_remove = i40evf_del_mac_addr, To support multiple mac addresses setting, this patch also extended the mac addresses adding and

[dpdk-dev] [PATCH v4 00/12] Virtio-net PMD: QEMU QTest extension for container

2016-03-09 Thread Tetsuya Mukawa
The patches will work on below patch series. - [PATCH v2 0/5] virtio support for container [Changes] v4 changes: - Rebase on latest master. - Split patches. - To abstract qtest code more, change interface between current virtio code and qtest code. - Rename qtest.c to qtest_utils.c -

[dpdk-dev] [PATCH v4 01/12] virtio: Retrieve driver name from eth_dev

2016-03-09 Thread Tetsuya Mukawa
Currently, virtio_dev_info_get() retrieves driver name from pci_drv. If the driver is virtual PMD, pci_drv will be invalid. So retrieves the name from eth_dev. Signed-off-by: Tetsuya Mukawa --- drivers/net/virtio/virtio_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[dpdk-dev] [PATCH v4 02/12] vhost: Add a function to check virtio device type

2016-03-09 Thread Tetsuya Mukawa
The patch adds below function to cleanup virtio code. - virtio_dev_check() Signed-off-by: Tetsuya Mukawa --- drivers/net/virtio/virtio_ethdev.c | 52 ++ drivers/net/virtio/virtio_ethdev.h | 32 +++ 2 files changed, 57 insertions(+), 27

[dpdk-dev] [PATCH v4 03/12] EAL: Add a new "--range-virtaddr" option

2016-03-09 Thread Tetsuya Mukawa
The option specifies how to mmap EAL memory. If the option is specified like '--range-virtaddr=-', EAL will check /proc/maps, then tries to find free region between addr1 and addr2. If a region is found, EAL will treat it as if 'base-virtaddr' is specified. Because of this, the option will not

[dpdk-dev] [PATCH v4 04/12] EAL: Add a new "--align-memsize" option

2016-03-09 Thread Tetsuya Mukawa
The option will work with "--range-virtaddr", and if the option is specified, mapped address will be align by EAL memory size. Such an alignment is required for using virtio-net PMD extension on container that uses QEMU QTest framework. Signed-off-by: Tetsuya Mukawa ---

[dpdk-dev] [PATCH v4 05/12] virtio, qtest: Add QTest utility basic functions

2016-03-09 Thread Tetsuya Mukawa
The patch adds basic functions for accessing to QEMU quest that runs in QTest mode. The functions will be used by virtio container extension that can access to the above guest. Signed-off-by: Tetsuya Mukawa --- config/common_base | 1 + drivers/net/virtio/Makefile | 4 +

[dpdk-dev] [PATCH v4 06/12] virtio, qtest: Add pci device initialization function to qtest utils

2016-03-09 Thread Tetsuya Mukawa
The patch adds general pci device initialization functionality to qtest utils. It initializes pci devices using qtest messaging. Signed-off-by: Tetsuya Mukawa --- drivers/net/virtio/qtest_utils.c | 349 ++- drivers/net/virtio/qtest_utils.h | 114 -

[dpdk-dev] [PATCH v4 07/12] virtio, qtest: Add functionality to share memory between QTest guest

2016-03-09 Thread Tetsuya Mukawa
The patch adds functionality to share memory between QTest guest and DPDK application using ivshmem device. The shared memory will be all EAL memory on hugepages. This memory will be accessed by QEMU vcpu and DPDK application using same address. Signed-off-by: Tetsuya Mukawa ---

[dpdk-dev] [PATCH v4 08/12] virtio, qtest: Add functionality to handle interrupt

2016-03-09 Thread Tetsuya Mukawa
The patch adds functionality to handle interrupt from pci device of QEMU guest. To handle the interrupts, the patch adds to initialize piix3 pci device. Signed-off-by: Tetsuya Mukawa --- drivers/net/virtio/qtest_utils.c | 225 ++-

[dpdk-dev] [PATCH v4 09/12] virtio, qtest: Add misc functions to handle pci information

2016-03-09 Thread Tetsuya Mukawa
The patch adds below functions. - qtest_read_pci_cfg - qtest_get_bar - qtest_get_bar_addr - qtest_get_bar_size These are used for handling pci device information. It will be called by later patches. Signed-off-by: Tetsuya Mukawa --- drivers/net/virtio/qtest_utils.c | 77

[dpdk-dev] [PATCH v4 10/12] virtio: Add QTest support to vtpci abstraction

2016-03-09 Thread Tetsuya Mukawa
The patch adds QTest support to vtpci abstraction. With this patch, only modern virtio device will be supported. This QTest support will be used by later QTest extension patch of virtio-net PMD. Signed-off-by: Tetsuya Mukawa --- drivers/net/virtio/qtest.h | 39

[dpdk-dev] [PATCH v4 11/12] virtio: Add QTest support for virtio-net PMD

2016-03-09 Thread Tetsuya Mukawa
The patch adds a new virtio-net PMD configuration that allows the PMD to work on host as if the PMD is in VM. Here is new configuration for virtio-net PMD. - CONFIG_RTE_VIRTIO_VDEV_QTEST To use this mode, EAL needs map all hugepages as one file. Also the file should be mapped between (1 << 31)

[dpdk-dev] [PATCH v4 12/12] docs: add release note for qtest virtio container support

2016-03-09 Thread Tetsuya Mukawa
Signed-off-by: Tetsuya Mukawa --- doc/guides/rel_notes/release_16_04.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/guides/rel_notes/release_16_04.rst b/doc/guides/rel_notes/release_16_04.rst index e3142f2..1c8c6b2 100644 --- a/doc/guides/rel_notes/release_16_04.rst +++

[dpdk-dev] Client Server Application using DPDK API

2016-03-09 Thread Vivek Gupta
Hi I want to write a Client Server application using DPDK API on a single machine. What are the basic building block for that. How can we write such application? I have installed the DPDK and able to run sample program. Any help is highly appreciated on this. Thanks & Regards Vivek Gupta

[dpdk-dev] [PATCH v9 3/4] ethdev: redesign link speed config API

2016-03-09 Thread Nélio Laranjeiro
Hi Marc, A small remark bellow. On Tue, Mar 01, 2016 at 01:45:50AM +0100, Marc Sune wrote: > This patch redesigns the API to set the link speed/s configure > for an ethernet port. Specifically: > > - it allows to define a set of advertised speeds for > auto-negociation. > - it allows to

[dpdk-dev] [PATCH 1/2 v2] fm10k: Add Atwood Channel Support

2016-03-09 Thread Qiu, Michael
Hi, Bruce What about this patch? Thanks, Michael On 2/4/2016 4:36 PM, Qiu, Michael wrote: > Atwood Channel is intel 25G NIC, and this patch add the support > in DPDK. > > Signed-off-by: Michael Qiu > Acked-by: John McNamara > --- > drivers/net/fm10k/base/fm10k_osdep.h| 4 >

[dpdk-dev] [PATCH 1/3] rte_interrupts: add rte_eal_intr_exit to shut down IRQ thread

2016-03-09 Thread Liang, Cunming
Hi Mattew, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Matthew Hall > Sent: Sunday, February 14, 2016 5:39 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 1/3] rte_interrupts: add rte_eal_intr_exit to shut > down IRQ thread > > There is no good

[dpdk-dev] [PATCH v3 0/2] Increased number of next hops for LPM IPv4

2016-03-09 Thread Kobylinski, MichalX
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, March 9, 2016 1:42 AM > To: Kobylinski, MichalX > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 0/2] Increased number of next hops for > LPM IPv4 > Importance: High > >

[dpdk-dev] [PATCH v6 2/5] lib/librte_ether: support l2 tunnel operations

2016-03-09 Thread Thomas Monjalon
2016-03-09 01:15, Lu, Wenzhuo: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > 2016-03-08 14:53, Wenzhuo Lu: > > > +/** > > > + * l2 tunnel type. > > > + */ > > > +enum rte_eth_l2_tunnel_type { > > > + RTE_L2_TUNNEL_TYPE_NONE = 0, > > > + RTE_L2_TUNNEL_TYPE_E_TAG, > > > +

[dpdk-dev] [PATCH v9 0/4] ethdev: add speed capabilities and refactor link API

2016-03-09 Thread Nélio Laranjeiro
On Tue, Mar 08, 2016 at 05:53:05PM +0100, N?lio Laranjeiro wrote: > On Tue, Mar 08, 2016 at 04:00:29PM +0100, Marc Sune wrote: > > 2016-03-01 1:45 GMT+01:00 Marc Sune : > > > > > The current rte_eth_dev_info abstraction does not provide any mechanism to > > > get the supported speed(s) of an

[dpdk-dev] [PATCH v7 1/5] lib/librte_ether: change function name of tunnel port config

2016-03-09 Thread Thomas Monjalon
2016-03-09 01:25, Lu, Wenzhuo: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > 2016-03-09 00:53, Lu, Wenzhuo: > > > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > > > 2016-03-04 10:35, Wenzhuo Lu: > > > > > The names of function for tunnel port configuration are

[dpdk-dev] [PATCH v8 1/5] lib/librte_ether: change function name of tunnel port config

2016-03-09 Thread Thomas Monjalon
2016-03-09 11:35, Wenzhuo Lu: > + uint16_t udp_port; /**< UDP port used for the tunnel. */ > + uint8_t prot_type; /**< Tunnel type. */ Is 42 a valid tunnel type? Please reference where to find the constants. Think as a user who won't read your datasheet. [...] > /** > - * Add UDP

[dpdk-dev] [PATCH v3 0/4] external mempool manager

2016-03-09 Thread David Hunt
Hi list. Here's the v3 version patch for an external mempool manager v3 changes: * simplified the file layout, renamed to rte_mempool_handler.[hc] * moved the default handlers into rte_mempool_default.c * moved the example handler out into app/test/test_ext_mempool.c * removed is_mc/is_mp

[dpdk-dev] [PATCH v3 1/4] mempool: add external mempool manager support

2016-03-09 Thread David Hunt
Adds the new rte_mempool_create_ext api and callback mechanism for external mempool handlers Modifies the existing rte_mempool_create to set up the handler_idx to the relevant mempool handler based on the handler name: ring_sp_sc ring_mp_mc ring_sp_mc ring_mp_sc v3: Cleanup out

[dpdk-dev] [PATCH v3 2/4] mempool: add custom mempool handler example

2016-03-09 Thread David Hunt
Add a custom mempool handler as part of an autotest: ext_mempool_autotest as defined in test_ext_mempool.c v3: now contains the mempool handler within the test file along with it's get/put/get_count callbacks and self registration Signed-off-by: David Hunt --- app/test/Makefile | 1

[dpdk-dev] [PATCH v3 3/4] mempool: allow rte_pktmbuf_pool_create switch between memool handlers

2016-03-09 Thread David Hunt
If the user wants to have rte_pktmbuf_pool_create() use an external mempool handler, they define RTE_MEMPOOL_HANDLER_NAME to be the name of the mempool handler they wish to use, and change RTE_MEMPOOL_HANDLER_EXT to 'y' Signed-off-by: David Hunt --- config/common_base | 2 ++

[dpdk-dev] [PATCH v3 4/4] mempool: add in the RTE_NEXT_ABI for ABI breakages

2016-03-09 Thread David Hunt
This patch is for those people who want to be easily able to switch between the new mempool layout and the old. Change the value of RTE_NEXT_ABI in common_base config file v3: Updated to take re-work of file layouts into consideration v2: Kept all the NEXT_ABI defs to this patch so as to make

[dpdk-dev] [PATCH v3 01/12] ethdev: extend flow director for input selection

2016-03-09 Thread Thomas Monjalon
2016-03-09 13:42, Jingjing Wu: > This patch added RTE_ETH_INPUT_SET_L3_IP4_TTL, > RTE_ETH_INPUT_SET_L3_IP6_HOP_LIMITS input field type and extended > struct rte_eth_ipv4_flow and rte_eth_ipv6_flow to support filtering > by tos, protocol and ttl. > > Signed-off-by: Jingjing Wu > --- >

[dpdk-dev] [PATCH v3 01/12] ethdev: extend flow director for input selection

2016-03-09 Thread Thomas Monjalon
2016-03-09 13:42, Jingjing Wu: > struct rte_eth_ipv4_flow { > uint32_t src_ip; /**< IPv4 source address to match. */ > uint32_t dst_ip; /**< IPv4 destination address to match. */ > + uint8_t tos; /**< Type of service to match. */ > + uint8_t ttl;

[dpdk-dev] [PATCH v3 01/12] ethdev: extend flow director for input selection

2016-03-09 Thread Thomas Monjalon
2016-03-09 10:52, Thomas Monjalon: > 2016-03-09 13:42, Jingjing Wu: > > This patch added RTE_ETH_INPUT_SET_L3_IP4_TTL, > > RTE_ETH_INPUT_SET_L3_IP6_HOP_LIMITS input field type and extended > > struct rte_eth_ipv4_flow and rte_eth_ipv6_flow to support filtering > > by tos, protocol and ttl. > > >

[dpdk-dev] [PATCH v4 2/2] i40evf: support to report pf reset event

2016-03-09 Thread Thomas Monjalon
2016-03-09 14:00, Jingjing Wu: > When Linux PF and DPDK VF are used for i40e PMD, In case of PF reset, > interrupt will go via adminq event, VF need be informed the event, > a callback mechanism is introduced by VF. This will allow VF to > invoke callback when reset happens. > Users can register a

[dpdk-dev] [PATCH v7 0/5] support E-tag offloading and forwarding on X550

2016-03-09 Thread Thomas Monjalon
2016-03-09 15:44, Wenzhuo Lu: > v7: > - Squash the l2 tunnel filter ops to filter ctrl ops. No you have not. Please check rte_eth_dev_filter_ctrl()

[dpdk-dev] [PATCH v9 0/4] ethdev: add speed capabilities and refactor link API

2016-03-09 Thread Nélio Laranjeiro
On Wed, Mar 09, 2016 at 10:29:38AM +0100, N?lio Laranjeiro wrote: > On Tue, Mar 08, 2016 at 05:53:05PM +0100, N?lio Laranjeiro wrote: > > On Tue, Mar 08, 2016 at 04:00:29PM +0100, Marc Sune wrote: > > > 2016-03-01 1:45 GMT+01:00 Marc Sune : > > > > > > > The current rte_eth_dev_info abstraction

[dpdk-dev] [PATCH v9 3/4] ethdev: redesign link speed config API

2016-03-09 Thread Marc
On 9 March 2016 at 09:45, N?lio Laranjeiro wrote: > Hi Marc, > > A small remark bellow. > > On Tue, Mar 01, 2016 at 01:45:50AM +0100, Marc Sune wrote: > > This patch redesigns the API to set the link speed/s configure > > for an ethernet port. Specifically: > > > > - it allows to define a set of

[dpdk-dev] [PATCH v8 0/2] eal: add function to check primary alive

2016-03-09 Thread Harry van Haaren
The first patch of this patchset contains a fix for EAL PCI probing, to avoid a race-condition where a primary and secondary probe PCI devices at the same time. The second patch adds a function that can be polled by a process to detect if a DPDK primary process is alive. This function does not

[dpdk-dev] [PATCH v8 1/2] eal: fix race-condition in pri/sec proc startup

2016-03-09 Thread Harry van Haaren
This patch fixes a race-condition when a primary and secondary process simultaneously probe PCI devices. This is implemented by moving the rte_eal_mcfg_complete() function call in rte_eal_init() until after rte_eal_pci_probe(). The end result is that the secondary process waits longer, until the

[dpdk-dev] [PATCH v8 2/2] eal: add function to check if primary proc alive

2016-03-09 Thread Harry van Haaren
This patch adds a new function to the EAL API: int rte_eal_primary_proc_alive(const char *path); The function indicates if a primary process is alive right now. This functionality is implemented by testing for a write- lock on the config file, and the function tests for a lock. The use case for

[dpdk-dev] [PATCH v9 3/4] ethdev: redesign link speed config API

2016-03-09 Thread Nélio Laranjeiro
On Wed, Mar 09, 2016 at 11:09:55AM +0100, Marc wrote: >On 9 March 2016 at 09:45, N?lio Laranjeiro <[1]nelio.laranjeiro at > 6wind.com> >wrote: > > Hi Marc, > > A small remark bellow. > On Tue, Mar 01, 2016 at 01:45:50AM +0100, Marc Sune wrote: > > This patch

[dpdk-dev] [PATCH v3 01/12] ethdev: extend flow director for input selection

2016-03-09 Thread Wu, Jingjing
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, March 09, 2016 5:55 PM > To: Wu, Jingjing > Cc: dev at dpdk.org; Richardson, Bruce > Subject: Re: [dpdk-dev] [PATCH v3 01/12] ethdev: extend flow director for > input selection > >

[dpdk-dev] [PATCH v3 01/12] ethdev: extend flow director for input selection

2016-03-09 Thread Thomas Monjalon
2016-03-09 10:26, Wu, Jingjing: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > 2016-03-09 13:42, Jingjing Wu: > > > struct rte_eth_ipv4_flow { > > > uint32_t src_ip; /**< IPv4 source address to match. */ > > > uint32_t dst_ip; /**< IPv4 destination address to

[dpdk-dev] [PATCH v3 4/4] mempool: add in the RTE_NEXT_ABI for ABI breakages

2016-03-09 Thread Panu Matilainen
On 03/09/2016 11:50 AM, David Hunt wrote: > This patch is for those people who want to be easily able to switch > between the new mempool layout and the old. Change the value of > RTE_NEXT_ABI in common_base config file I guess the idea here is to document how to switch between the ABIs but to

[dpdk-dev] [PATCH v3 3/4] mempool: allow rte_pktmbuf_pool_create switch between memool handlers

2016-03-09 Thread Panu Matilainen
On 03/09/2016 11:50 AM, David Hunt wrote: > If the user wants to have rte_pktmbuf_pool_create() use an external mempool > handler, they define RTE_MEMPOOL_HANDLER_NAME to be the name of the > mempool handler they wish to use, and change RTE_MEMPOOL_HANDLER_EXT to 'y' > > Signed-off-by: David Hunt

  1   2   3   >