[dpdk-dev] [PATCH v5 00/13] port: added port statistics

2015-06-23 Thread Thomas Monjalon
> > Added statistics for every type of port. By default all port statistics > > are disabled, user must activate them in config file. > > > > Changes in v5: > > - added missing CONFIG_ prefix to defines in config files > > Acked-by: Cristian Dumitrescu Applied, thanks

[dpdk-dev] [PATCH v5 00/11] table: added table statistics

2015-06-23 Thread Thomas Monjalon
> > Added statistics for every type of table. By default all table statistics > > are disabled, user must activate them in config file. > > > > Changes in v5: > > - added missing CONFIG_ prefix to defines in config files > > - added stub table stats > > Acked-by: Cristian Dumitrescu App

[dpdk-dev] [PATCH v5 1/1] pipeline: add statistics for librte_pipeline ports and tables

2015-06-23 Thread Thomas Monjalon
> > This patch adds statistics collection for librte_pipeline. > > Those statistics ale disabled by default during build time. > > > > Signed-off-by: Pawel Wodkowski > > Acked-by: Cristian Dumitrescu Applied, thanks

[dpdk-dev] rte_lpm with larger nexthops or another method?

2015-06-23 Thread Matthew Hall
OK, I went and made a whole ton of patches to LPM and the tests and examples, now the selftest errors out... but I think maybe I don't have an adequate amount of hugepages. How much hugepage memory did people have when they did the selftest successfully before? I just keep seeing this over and

[dpdk-dev] rte_lpm with larger nexthops or another method?

2015-06-23 Thread Matthew Hall
On Tue, Jun 23, 2015 at 09:13:14PM -0700, Matthew Hall wrote: > Vladimir, > > One thing I was confused, you published the changes to rte_lpm_tbl24_entry > but > you didn't say what you did to change rte_lpm_tbl8_entry, as that one only > had > an 8-bit next_hop as well. I wanted to be sure I d

[dpdk-dev] How to get net_device and use struct ethtool_cmd at DPDK enverinment?

2015-06-23 Thread "Scott.Jhuang (莊清翔) : 6309"
Dear Sy Jong, Yes, I have check out DPDK KNI, but I still can't find how to prepare net_device structure... And I also doesn't find how to get "ethtool_cmd.phy_address" Could you let me know the path of source code folder Choi, Sy Jong ? 2015?06?19? 10:35 ??: Hi Scott, DPDK PMD are interfacing

[dpdk-dev] [PATCH v2 08/12] mempool: allow config override on element alignment

2015-06-23 Thread Ananyev, Konstantin
> -Original Message- > From: Cyril Chemparathy [mailto:cchemparathy at ezchip.com] > Sent: Tuesday, June 23, 2015 9:43 PM > To: Ananyev, Konstantin > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 08/12] mempool: allow config override on > element alignment > > On Tue, 23 Jun 2

[dpdk-dev] rte_lpm with larger nexthops or another method?

2015-06-23 Thread Matthew Hall
On Tue, Jun 23, 2015 at 10:19:58AM +0300, Vladimir Medvedkin wrote: > Hi all, > > Matthew, I think ipv6 lpm code need less changes > struct rte_lpm6_tbl_entry { > uint32_t next_hop: 21; /**< Next hop / next table to be > checked. */ > uint32_t depth :8; /**< Rule depth

[dpdk-dev] [PATCH v2] vfio: Fix overflow while assigning vfio BAR region offset and size

2015-06-23 Thread Rahul Lakkireddy
When using vfio, the probe fails over Chelsio T5 adapters after commit-id 90a1633b2 (eal/linux: allow to map BARs with MSI-X tables). While debugging further, found that the BAR region offset and size read from vfio are u64, but are assigned to uint32_t variables. This results in the u64 value ge

[dpdk-dev] [PATCH] ethdev: fix checking for tx_free_thresh

2015-06-23 Thread Zoltan Kiss
This parameter is not consistent between the drivers: some use it as rte_eth_tx_burst() requires, some release buffers when the number of free descriptors drop below this value. Let's use it as most fast-path code does, which is the latter, and update comments throughout the code to reflect that.

[dpdk-dev] [PATCH] mempool: add missing api parameter documentation

2015-06-23 Thread Thomas Monjalon
2015-06-23 17:04, Olivier MATZ: > On 06/23/2015 02:07 PM, John McNamara wrote: > > Added Doxygen @param for missing API parameter in > > rte_mempool_obj_iter(), to fix Doxygen warning. Also added > > minor grammar fixes to that function documentation. > > > > Signed-off-by: John McNamara > > Acke

[dpdk-dev] [PATCH] mempool: add missing api parameter documentation

2015-06-23 Thread Thomas Monjalon
2015-06-23 17:04, Olivier MATZ: > On 06/23/2015 02:07 PM, John McNamara wrote: > > Added Doxygen @param for missing API parameter in > > rte_mempool_obj_iter(), to fix Doxygen warning. Also added > > minor grammar fixes to that function documentation. > > > > Signed-off-by: John McNamara > > Acke

[dpdk-dev] [PATCH v4 0/9] Improve cast alignment for strict aligned machines

2015-06-23 Thread Olivier MATZ
Hi Cyril, On 06/22/2015 08:34 PM, Cyril Chemparathy wrote: > This series contains a few improvements that allow the DPDK code base > to build properly on machines that enforce strict pointer cast > alignment constraints. > > When dealing with packet data which could be arbitrarily aligned, we > ge

[dpdk-dev] [PATCH] eal: correct licenses for PCI feature headers

2015-06-23 Thread Thomas Monjalon
Applied, thanks

[dpdk-dev] [PATCH] mempool: add missing api parameter documentation

2015-06-23 Thread Olivier MATZ
On 06/23/2015 02:07 PM, John McNamara wrote: > Added Doxygen @param for missing API parameter in > rte_mempool_obj_iter(), to fix Doxygen warning. Also added > minor grammar fixes to that function documentation. > > Signed-off-by: John McNamara Acked-by: Olivier Matz > --- > lib/librte_memp

[dpdk-dev] [PATCH] examples/distributor: fix missing "; " in debug macro

2015-06-23 Thread Bruce Richardson
On Mon, Jun 22, 2015 at 10:53:25PM +0200, Thomas Monjalon wrote: > 2015-06-08 11:58, Bruce Richardson: > > On Fri, Jun 05, 2015 at 10:45:04PM +0200, Thomas Monjalon wrote: > > > It shows that such dead code is almost never tested. > > > It would be saner if this command would return no result: > >

[dpdk-dev] [PATCH v5 01/13] port: added structures for port stats and config option

2015-06-23 Thread Thomas Monjalon
2015-06-23 14:30, Dumitrescu, Cristian: > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas Monjalon > > 2015-06-19 11:41, Maciej Gajdzica: > > > /** Input port interface defining the input port operation */ > > > struct rte_port_in_ops { > > > rte_port_in_op_create f_create; /**<

[dpdk-dev] [PATCH] lib: syntax cleanup

2015-06-23 Thread Thomas Monjalon
2015-05-11 17:10, Ferruh Yigit: > Remove extra parenthesis from return statements. > > Signed-off-by: Ferruh Yigit > --- > lib/librte_cmdline/cmdline_parse_etheraddr.c | 10 ++--- > lib/librte_cmdline/cmdline_parse_ipaddr.c | 38 - > lib/librte_cmdline/cmdline_pars

[dpdk-dev] [PATCH] use tab rather than space in mbuf version map file

2015-06-23 Thread Thomas Monjalon
2015-06-22 12:08, Olivier MATZ: > On 06/18/2015 07:55 PM, Huawei Xie wrote: > > Signed-off-by: Huawei Xie > > --- > > lib/librte_mbuf/rte_mbuf_version.map | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > Acked-by: Olivier Matz Applied, thanks

[dpdk-dev] [PATCH v8 00/18] unified packet type

2015-06-23 Thread Ananyev, Konstantin
> -Original Message- > From: Zhang, Helin > Sent: Tuesday, June 23, 2015 2:50 AM > To: dev at dpdk.org > Cc: Cao, Waterman; Liang, Cunming; Liu, Jijiang; Ananyev, Konstantin; > Richardson, Bruce; yongwang at vmware.com; > olivier.matz at 6wind.com; Wu, Jingjing; Zhang, Helin > Subject: [

[dpdk-dev] [PATCH] doc/sample_app_ug:add a VXLAN sample guide

2015-06-23 Thread Jijiang Liu
Add a VXLAN sample guide in the sample_app_ug directory. It includes: - overlay_networking picture with png format. - TEP termination framework picture with png format. - VXLAN sample guide description with rst format. Signed-off-by: Jijiang Liu --- .../sample_app_ug/img/overlay_net

[dpdk-dev] [PATCH v5 01/13] port: added structures for port stats and config option

2015-06-23 Thread Thomas Monjalon
2015-06-19 11:41, Maciej Gajdzica: > /** Input port interface defining the input port operation */ > struct rte_port_in_ops { > rte_port_in_op_create f_create; /**< Create */ > rte_port_in_op_free f_free; /**< Free */ > rte_port_in_op_rx f_rx; /**< Packet RX (packet

[dpdk-dev] [PATCH 00/11] ip_pipeline: ip_pipeline application enhancements

2015-06-23 Thread Thomas Monjalon
Is this patchset still candidate for 2.1? 2015-05-29 17:43, Maciej Gajdzica: > This patchset enhances functionality of ip_pipeline application. New config > file syntax is introduced, so parser is changed. Changed structure of the > application. Now every global variable is stored in app_struct in

[dpdk-dev] [PATCH v4] doc: guidelines for library statistics

2015-06-23 Thread Thomas Monjalon
2015-06-16 13:40, Mcnamara, John: > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Cristian Dumitrescu > > Sent: Tuesday, June 16, 2015 2:36 PM > > To: dev at dpdk.org > > Subject: [dpdk-dev] [PATCH v4] doc: guidelines for library statistics > > > > v4 cha

[dpdk-dev] [PATCH] mem: Warn once if /proc/self/pagemap is unreadable

2015-06-23 Thread Simon Kågström
On 2015-06-23 12:39, Simon Kagstrom wrote: > Newer kernels make this unreadable for security reasons for non-roots. > Running the application will then fill the logs with > > rte_mem_virt2phy: cannot open /proc/self/pagemap > > messages. I found a bug with the patch, so please disregard it for

[dpdk-dev] [PATCH 2/2] ABI: Add some documentation

2015-06-23 Thread Neil Horman
People have been asking for ways to use the ABI macros, heres some docs to clarify their use. Included is: * An overview of what ABI is * Details of the ABI deprecation process * Details of the versioning macros * Examples of their use * Details of how to use the ABI validator Thanks to John Mcn

[dpdk-dev] [PATCH 1/2] rte_compat.h : Clean up some typos

2015-06-23 Thread Neil Horman
Clean up some macro definition typos and comments Signed-off-by: Neil Horman CC: thomas.monjalon at 6wind.com --- lib/librte_compat/rte_compat.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/librte_compat/rte_compat.h b/lib/librte_compat/rte_compat.h inde

[dpdk-dev] [PATCH v5 01/13] port: added structures for port stats and config option

2015-06-23 Thread Dumitrescu, Cristian
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, June 23, 2015 3:55 PM > To: Dumitrescu, Cristian > Cc: Gajdzica, MaciejX T; dev at dpdk.org; nhorman at tuxdriver.com > Subject: Re: [dpdk-dev] [PATCH v5 01/13] port: added structures for p

[dpdk-dev] [PATCH v7 0/4] User-space Ethtool

2015-06-23 Thread Wang, Liang-min
Stephen, From: Wang, Liang-min Sent: Thursday, June 18, 2015 8:47 AM To: Stephen Hemminger Cc: dev at dpdk.org Subject: RE: [dpdk-dev] [PATCH v7 0/4] User-space Ethtool >>I agree with having a more complete API, but have some nits to pick. >>Could the API be more abstract to reduce ABI issues in

[dpdk-dev] [PATCH v5 01/13] port: added structures for port stats and config option

2015-06-23 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas Monjalon > Sent: Tuesday, June 23, 2015 2:55 PM > To: Gajdzica, MaciejX T > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v5 01/13] port: added structures for port > stats and config option > > 2

[dpdk-dev] [PATCH 00/11] ip_pipeline: ip_pipeline application enhancements

2015-06-23 Thread Gajdzica, MaciejX T
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, June 23, 2015 3:49 PM > To: Gajdzica, MaciejX T > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 00/11] ip_pipeline: ip_pipeline application > enhancements > > Is this patchset still c

[dpdk-dev] [PATCH v2 08/12] mempool: allow config override on element alignment

2015-06-23 Thread Cyril Chemparathy
On Tue, 23 Jun 2015 00:31:06 + "Ananyev, Konstantin" wrote: > > +#define RTE_MEMPOOL_ALIGN_MASK (RTE_MEMPOOL_ALIGN - 1) > > I am probably a bit late with my comments, but why not make it a > runtime decision then? I know we can't add a new parameter to > mempool_xmem_create() without A

[dpdk-dev] [PATCH 1/1] compat: fixed versioning macros

2015-06-23 Thread Maciej Gajdzica
Previous version of versioning macros didn't work properly. When building dpdk as static library, external application couldn't use versioned function. It happened, because versioning macros for static library were empty. Now the same version of versioning macros is used for both static and dynamic

[dpdk-dev] [PATCH] mempool: add missing api parameter documentation

2015-06-23 Thread John McNamara
Added Doxygen @param for missing API parameter in rte_mempool_obj_iter(), to fix Doxygen warning. Also added minor grammar fixes to that function documentation. Signed-off-by: John McNamara --- lib/librte_mempool/rte_mempool.h | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) di

[dpdk-dev] [PATCH] mem: Warn once if /proc/self/pagemap is unreadable

2015-06-23 Thread Simon Kagstrom
Newer kernels make this unreadable for security reasons for non-roots. Running the application will then fill the logs with rte_mem_virt2phy: cannot open /proc/self/pagemap messages. However, there are cases when DPDK is and should be run as non-root, without the need for virtual-to-physical a

[dpdk-dev] [PATCHv2 0/5] ethdev: add new API to retrieve RX/TX queue information

2015-06-23 Thread David Harton (dharton)
Acked-by: David Harton > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Konstantin Ananyev > Sent: Thursday, June 18, 2015 9:19 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCHv2 0/5] ethdev: add new API to retrieve RX/TX > queue information > > Add th

[dpdk-dev] [PATCH] mk: add support for gdb debug info generation

2015-06-23 Thread Simon Kågström
On 2015-06-23 09:47, Thomas Monjalon wrote: > 2015-06-23 08:39, Gonzalez Monroy, Sergio: >> I guess you could argue that, to always build with debug info then strip >> it down. >> You would need another flag to strip debug info for production, or leave >> it for debugging. >> >> In my opinion is

[dpdk-dev] [PATCH v5 00/10] Add a VXLAN sample

2015-06-23 Thread Thomas Monjalon
2015-06-23 00:40, Jijiang Liu: > v2 changes: > Fix an issue about the 'nb_ports' duplication in check_ports_num(). > Remove the inaccurate comment in main.c > Fix an issue about TSO offload. > > v3 changes: > Change some viriable name that don't follow coding rules. > Remove th

[dpdk-dev] [PATCH v5 00/10] Add a VXLAN sample

2015-06-23 Thread Liu, Jijiang
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, June 23, 2015 5:40 PM > To: Liu, Jijiang > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v5 00/10] Add a VXLAN sample > > 2015-06-23 00:40, Jijiang Liu: > > v2 changes: > > Fix

[dpdk-dev] Issue with rte_compat versioning macros

2015-06-23 Thread Gajdzica, MaciejX T
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Gajdzica, MaciejX T > Sent: Tuesday, June 23, 2015 9:46 AM > To: Neil Horman > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] Issue with rte_compat versioning macros > > > > > -Original Message- > > Fro

[dpdk-dev] [PATCH v5 01/13] port: added structures for port stats and config option

2015-06-23 Thread Neil Horman
On Tue, Jun 23, 2015 at 03:55:25PM +0200, Thomas Monjalon wrote: > 2015-06-19 11:41, Maciej Gajdzica: > > /** Input port interface defining the input port operation */ > > struct rte_port_in_ops { > > rte_port_in_op_create f_create; /**< Create */ > > rte_port_in_op_free f_free; /**<

[dpdk-dev] [PATCH v5 01/10] examples/tep_termination:initialize the VXLAN sample

2015-06-23 Thread Thomas Monjalon
2015-06-23 00:40, Jijiang Liu: > examples/Makefile |1 + > examples/tep_termination/Makefile | 55 ++ > examples/tep_termination/main.c | 1130 > + > examples/tep_termination/main.h | 123 > 4 files changed, 1309 insertions(+), 0

[dpdk-dev] [PATCH v4 0/9] Improve cast alignment for strict aligned machines

2015-06-23 Thread Cyril Chemparathy
On Tue, 23 Jun 2015 17:36:40 +0200 Olivier MATZ wrote: > Series > Acked-by: Olivier Matz > Thanks Olivier.

[dpdk-dev] [PATCH v5 00/13] port: added port statistics

2015-06-23 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Maciej Gajdzica > Sent: Friday, June 19, 2015 10:41 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v5 00/13] port: added port statistics > > Added statistics for every type of port. By default all port

[dpdk-dev] [PATCH v5 1/1] pipeline: add statistics for librte_pipeline ports and tables

2015-06-23 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Maciej Gajdzica > Sent: Friday, June 19, 2015 12:13 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v5 1/1] pipeline: add statistics for > librte_pipeline > ports and tables > > This patch adds statisti

[dpdk-dev] [PATCH v5 00/11] table: added table statistics

2015-06-23 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Maciej Gajdzica > Sent: Friday, June 19, 2015 11:29 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v5 00/11] table: added table statistics > > Added statistics for every type of table. By default all ta

[dpdk-dev] [PATCH v5 01/13] port: added structures for port stats and config option

2015-06-23 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Maciej Gajdzica > Sent: Friday, June 19, 2015 10:41 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v5 01/13] port: added structures for port stats > and config option > > Added common data structures fo

[dpdk-dev] rte_lpm with larger nexthops or another method?

2015-06-23 Thread Vladimir Medvedkin
Hi all, Matthew, I think ipv6 lpm code need less changes struct rte_lpm6_tbl_entry { uint32_t next_hop: 21; /**< Next hop / next table to be checked. */ uint32_t depth :8; /**< Rule depth. */ /* Flags. */ uint32_t valid :1; /**< Validation flag.

[dpdk-dev] DPDK with Openvswitch Compatibility issue

2015-06-23 Thread Traynor, Kevin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Sundar Ramakrishnan > Sent: Monday, June 22, 2015 7:36 PM > To: dev at dpdk.org > Subject: [dpdk-dev] DPDK with Openvswitch Compatibility issue > > Hello, > I have trying to compile and install openvswitch with

[dpdk-dev] [PATCH v8 18/18] mbuf: remove old packet type bit masks

2015-06-23 Thread Helin Zhang
As unified packet types are used instead, those old bit masks and the relevant macros for packet type indication need to be removed. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- lib/librte_mbuf

[dpdk-dev] [PATCH v8 17/18] examples/l3fwd: replace bit mask based packet type with unified packet type

2015-06-23 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- examples/l3fwd/main.c | 123 +

[dpdk-dev] [PATCH v8 16/18] examples/l3fwd-power: replace bit mask based packet type with unified packet type

2015-06-23 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- examples/l3fwd-power/main.c | 8 +

[dpdk-dev] [PATCH v8 15/18] examples/l3fwd-acl: replace bit mask based packet type with unified packet type

2015-06-23 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- examples/l3fwd-acl/main.c | 29 ++

[dpdk-dev] [PATCH v8 14/18] examples/ip_reassembly: replace bit mask based packet type with unified packet type

2015-06-23 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- examples/ip_reassembly/main.c | 9

[dpdk-dev] [PATCH v8 13/18] examples/ip_fragmentation: replace bit mask based packet type with unified packet type

2015-06-23 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- examples/ip_fragmentation/main.c

[dpdk-dev] [PATCH v8 12/18] app/test: Remove useless code

2015-06-23 Thread Helin Zhang
Severl useless code lines are added accidently, which blocks packet type unification. They should be deleted at all. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- app/test/packet_burst_generator

[dpdk-dev] [PATCH v8 11/18] app/testpmd: replace bit mask based packet type with unified packet type

2015-06-23 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang Signed-off-by: Jijiang Liu --- app/t

[dpdk-dev] [PATCH v8 10/18] app/test-pipeline: replace bit mask based packet type with unified packet type

2015-06-23 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- app/test-pipeline/pipeline_hash.c

[dpdk-dev] [PATCH v8 09/18] fm10k: replace bit mask based packet type with unified packet type

2015-06-23 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- drivers/net/fm10k/fm10k_rxtx.c |

[dpdk-dev] [PATCH v8 08/18] vmxnet3: replace bit mask based packet type with unified packet type

2015-06-23 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- drivers/net/vmxnet3/vmxnet3_rxtx.

[dpdk-dev] [PATCH v8 07/18] enic: replace bit mask based packet type with unified packet type

2015-06-23 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- drivers/net/enic/enic_main.c | 26

[dpdk-dev] [PATCH v8 06/18] i40e: replace bit mask based packet type with unified packet type

2015-06-23 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_rxtx.c | 52

[dpdk-dev] [PATCH v8 05/18] ixgbe: replace bit mask based packet type with unified packet type

2015-06-23 Thread Helin Zhang
To unify packet type among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Note that around 2.5% performance drop (64B) was observed of doing 4

[dpdk-dev] [PATCH v8 04/18] e1000: replace bit mask based packet type with unified packet type

2015-06-23 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- drivers/net/e1000/igb_rxtx.c | 10

[dpdk-dev] [PATCH v8 03/18] mbuf: add definitions of unified packet types

2015-06-23 Thread Helin Zhang
As there are only 6 bit flags in ol_flags for indicating packet types, which is not enough to describe all the possible packet types hardware can recognize. For example, i40e hardware can recognize more than 150 packet types. Unified packet type is composed of L2 type, L3 type, L4 type, tunnel type

[dpdk-dev] [PATCH v8 02/18] ixgbe: support unified packet type in vectorized PMD

2015-06-23 Thread Helin Zhang
To unify the packet type, bit masks of packet type for ol_flags are replaced. In addition, more packet types (UDP, TCP and SCTP) are supported in vectorized ixgbe PMD. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Note that arou

[dpdk-dev] [PATCH v8 01/18] mbuf: redefine packet_type in rte_mbuf

2015-06-23 Thread Helin Zhang
In order to unify the packet type, the field of 'packet_type' in 'struct rte_mbuf' needs to be extended from 16 to 32 bits. Accordingly, some fields in 'struct rte_mbuf' are re-organized to support this change for Vector PMD. As 'struct rte_kni_mbuf' for KNI should be right mapped to 'struct rte_mb

[dpdk-dev] [PATCH v8 00/18] unified packet type

2015-06-23 Thread Helin Zhang
Currently only 6 bits which are stored in ol_flags are used to indicate the packet types. This is not enough, as some NIC hardware can recognize quite a lot of packet types, e.g i40e hardware can recognize more than 150 packet types. Hiding those packet types hides hardware offload capabilities whi

[dpdk-dev] [PATCH] mk: add support for gdb debug info generation

2015-06-23 Thread Thomas Monjalon
2015-06-23 08:39, Gonzalez Monroy, Sergio: > On 22/06/2015 08:56, Simon K?gstr?m wrote: > > On 2015-06-22 09:44, Gonzalez Monroy, Sergio wrote: > >> On 19/06/2015 22:29, Cyril Chemparathy wrote: > >>> From: Cyril Chemparathy > >>> > >>> It is often useful to build with debug enabled, we add a conf

[dpdk-dev] [PATCH] mk: add support for gdb debug info generation

2015-06-23 Thread Gonzalez Monroy, Sergio
On 22/06/2015 08:56, Simon K?gstr?m wrote: > On 2015-06-22 09:44, Gonzalez Monroy, Sergio wrote: >> On 19/06/2015 22:29, Cyril Chemparathy wrote: >>> From: Cyril Chemparathy >>> >>> It is often useful to build with debug enabled, we add a config >>> (CONFIG_RTE_TOOLCHAIN_DEBUG) to do so. >>> >>>

[dpdk-dev] Issue with rte_compat versioning macros

2015-06-23 Thread Gajdzica, MaciejX T
> -Original Message- > From: Neil Horman [mailto:nhorman at tuxdriver.com] > Sent: Monday, June 22, 2015 6:52 PM > To: Gajdzica, MaciejX T > Cc: Thomas Monjalon; dev at dpdk.org > Subject: Re: [dpdk-dev] Issue with rte_compat versioning macros > > On Mon, Jun 22, 2015 at 03:32:01PM +

[dpdk-dev] [PATCH v2] lib_vhost:reset secure_len when rte_atomic16_cmpset failed

2015-06-23 Thread Ouyang, Changchun
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, June 23, 2015 12:34 AM > To: Ouyang, Changchun; Wei li > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] lib_vhost:reset secure_len when > rte_atomic16_cmpset failed > >

[dpdk-dev] [PATCH v1] app/test: fix pmd_perf issue in no NUMA case

2015-06-23 Thread Liang, Cunming
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, June 23, 2015 5:02 AM > To: Liang, Cunming > Cc: dev at dpdk.org; Jayakumar, Muthurajan > Subject: Re: [dpdk-dev] [PATCH v1] app/test: fix pmd_perf issue in no NUMA > case > > 2015-06-08

[dpdk-dev] [PATCH] ixgbe: fix the flow director flexbytes offset issues

2015-06-23 Thread Lu, Wenzhuo
> Signed-off-by: Jingjing Wu Acked-by: Wenzhuo Lu

[dpdk-dev] [PATCH] fm10k: support XEN domain0

2015-06-23 Thread He, Shaopeng
Hi Thomas, > -Original Message- > From: Liu, Jijiang > Sent: Friday, June 05, 2015 11:18 AM > To: dev at dpdk.org > Cc: He, Shaopeng > Subject: RE: [dpdk-dev] [PATCH] fm10k: support XEN domain0 > > > Acked-by: Jijiang Liu > > I think this patch could be merged before Stephen's followin

[dpdk-dev] [PATCH v5 10/10] examples/tep_termination:add the configuration for encapsulation and the decapsulation

2015-06-23 Thread Jijiang Liu
Add the encapsulation and decapsulation options. The two flags are enabled by default. Sometimes we want to know the performance influence of the encapsulation and decapsulation operations, and I think we should add the two configuration options. Signed-off-by: Jijiang Liu --- examples/tep_ter

[dpdk-dev] [PATCH v5 09/10] examples/tep_termination:add bad Rx checksum statistics of inner IP and L4

2015-06-23 Thread Jijiang Liu
Add the bad Rx checksum statistics of inner IP and L4. The number of packets with bad RX IP and L4 checksum in inner header is recorded. Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c| 10 +- examples/tep_termination/main.h|4 examples/tep_ter

[dpdk-dev] [PATCH v5 08/10] examples/tep_termination:add TSO offload configuration

2015-06-23 Thread Jijiang Liu
Add the tso-segsz option for TSO offload. If the 'tso-segsz' is not 0, it means TSO offload is enabled. Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c| 19 +++ examples/tep_termination/vxlan.c |7 +++ examples/tep_termination/vxlan.h

[dpdk-dev] [PATCH v5 07/10] examples/tep_termination:add Tx checksum offload configuration for inner header

2015-06-23 Thread Jijiang Liu
Add Tx checksum offload configuration for inner header. For UDP tunneling packet, the inner Tx checksum offload means inner IPv4 and inner L4(TCP/UDP/SCTP). Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c | 19 + examples/tep_termination/vxlan.c | 81

[dpdk-dev] [PATCH v5 06/10] examples/tep_termination:add tunnel filter type configuration

2015-06-23 Thread Jijiang Liu
Add the filter types for VXLAN packet. The following filter type are added here. - Inner MAC&VLAN and tenant ID - Inner MAC and tenent ID, and Outer MAC - Inner MAC and tenant ID Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c| 22 ++ examples/tep_termi

[dpdk-dev] [PATCH v5 05/10] examples/tep_termination:add UDP port configuration for UDP tunneling packet

2015-06-23 Thread Jijiang Liu
The port number of UDP tunneling packet is configurable. For i40e, it has 16 entries in total. Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c| 19 +++ examples/tep_termination/vxlan_setup.c | 13 - examples/tep_termination/vxlan_setup.h |

[dpdk-dev] [PATCH v5 04/10] examples/tep_termination:implement VXLAN packet processing

2015-06-23 Thread Jijiang Liu
Implement the VXLAN packet processing functions. - VXLAN port configuration - VXLAN tunnel setup - VXLAN tunnel destroying - VXLAN packet processing for Rx side - VXLAN packet processing for Tx side Signed-off-by: Jijiang Liu Signed-off-by: Thomas Long --- examples/tep_terminati

[dpdk-dev] [PATCH v5 03/10] examples/tep_termination:add the pluggable structures for VXLAN packet processing

2015-06-23 Thread Jijiang Liu
Add the common APIs of tunneling packet processing. We are trying to create a framework for tunneling packet processing, which includes - Tunnel port configuration - Tunnel setup - Tunnel destroying - Tunneling packet processing for Rx side - Tu

[dpdk-dev] [PATCH v5 02/10] examples/tep_termination:define the basic VXLAN port information

2015-06-23 Thread Jijiang Liu
Add some basic VXLAN definations in vxlan.h file. It includes VXLAN port information and VXLAN device structures. Signed-off-by: Jijiang Liu Signed-off-by: Thomas Long --- examples/tep_termination/main.c |1 + examples/tep_termination/vxlan.h | 60 ++

[dpdk-dev] [PATCH v5 01/10] examples/tep_termination:initialize the VXLAN sample

2015-06-23 Thread Jijiang Liu
This patch creates the virtio devices management mechanism. These functions are from the vHost example, which include: - virtio device creation. - virtio device destroying. - virtio device maintenance. Signed-off-by: Jijiang Liu --- examples/Makefile |1 + examples/

[dpdk-dev] [PATCH v5 00/10] Add a VXLAN sample

2015-06-23 Thread Jijiang Liu
This VXLAN sample simulates a VXLAN Tunnel Endpoint (VTEP) termination in DPDK, which is used to demonstrate the offload and filtering capabilities of i40 NIC for VXLAN packet. And this sample uses the basic virtio devices management function from vHost example, and the US-vHost interface and tu

[dpdk-dev] [PATCH v2 08/12] mempool: allow config override on element alignment

2015-06-23 Thread Ananyev, Konstantin
Hi Cyril, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Cyril Chemparathy > Sent: Monday, June 22, 2015 7:59 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2 08/12] mempool: allow config override on > element alignment > > On TILE-Gx and TILE-Mx p