[dpdk-dev] [PATCH v10 00/19] unified packet type

2015-07-16 Thread Thomas Monjalon
2015-07-10 00:31, 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

[dpdk-dev] [PATCH] mlx4: replace some offload flags with packet type

2015-07-16 Thread Thomas Monjalon
2015-07-15 18:06, Zhang, Helin: > > The workaround for Tx tunnel offloading can now be replaced with packet type > > flag checking. > > The ol_flags for IPv4/IPv6 and tunnel Rx offloading are replaced with > > packet type > > flags. > > > > Signed-off-by: Thomas Monjalon > > Acked-by: Adrien Maz

[dpdk-dev] [PATCH v3] doc: announce ABI changes planned for unified packet type

2015-07-16 Thread Thomas Monjalon
> > The significant ABI changes of all shared libraries are planned to support > > unified packet type which will be taken effect from release 2.2. Here > > announces that ABI changes in detail. > > > > Signed-off-by: Helin Zhang > Acked-by: Jingjing Wu Applied with rewording to take new NEXT_A

[dpdk-dev] [PATCH] mbuf: fix tunnel flags check

2015-07-16 Thread Thomas Monjalon
A packet is tunnelled if the tunnel type is identified or if it has an inner part. Fix also a typo in RTE_PTYPE_INNER_L3_MASK. Fixes: f295a00a2b44 ("mbuf: add definitions of unified packet types") Signed-off-by: Thomas Monjalon --- app/test-pmd/rxonly.c | 2 +- lib/librte_mbuf/rte_mbuf.h

[dpdk-dev] [PATCH] mbuf: fix tunnel flags check

2015-07-16 Thread Thomas Monjalon
2015-07-15 23:57, Zhang, Helin: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > A packet is tunnelled if the tunnel type is identified or if it has an > > inner part. > > > > Fix also a typo in RTE_PTYPE_INNER_L3_MASK. > > > > Fixes: f295a00a2b44 ("mbuf: add definitions of unif

[dpdk-dev] [PATCH] mbuf: fix tunnel flags check

2015-07-16 Thread Zhang, Helin
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, July 15, 2015 5:13 PM > To: Zhang, Helin > Cc: olivier.matz at 6wind.com; dev at dpdk.org > Subject: Re: [PATCH] mbuf: fix tunnel flags check > > 2015-07-15 23:57, Zhang, Helin: > > From

[dpdk-dev] Does FreeBSD's nic_uio have bind/unbind interface support?

2015-07-16 Thread Rahul Lakkireddy
Hi All, It seems that on FreeBSD, nic_uio currently only binds the devices matched in rte_pci_dev_ids.h. On Linux, it's possible to bind any listed device with igb_uio or vfio. The pci device ids supported by cxgbe PMD, maintained in a table, are not part of rte_pci_dev_ids.h. Hence, Chelsio T5

[dpdk-dev] [PATCH v11] doc: update malloc documentation

2015-07-16 Thread Sergio Gonzalez Monroy
Update malloc documentation to reflect new implementation details. Signed-off-by: Sergio Gonzalez Monroy --- v11: - Add copyright and licence to SVG file doc/guides/prog_guide/env_abstraction_layer.rst | 220 - doc/guides/prog_guide/img/malloc_heap.png | Bin 81329 -> 0 bytes doc/g

[dpdk-dev] [PATCH v4] enforce rules of the cpu and ixgbe exchange data.

2015-07-16 Thread xuelin....@freescale.com
From: Xuelin Shi 1. cpu use data owned by ixgbe must use rte_le_to_cpu_xx(...) 2. cpu fill data to ixgbe must use rte_cpu_to_le_xx(...) 3. checking pci status with converted constant. Signed-off-by: Xuelin Shi --- drivers/net/ixgbe/ixgbe_rxtx.c | 77 --

[dpdk-dev] [PATCH v3] ixgbe: fix data access on big endian cpu

2015-07-16 Thread Xuelin Shi
Hi Thomas, I have worked out the new version based on dpdk v2 codebase to address the comments. http://www.dpdk.org/dev/patchwork/patch/6449/ thanks, Xuelin Shi > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Friday, July 10, 2015 22:52

[dpdk-dev] [PATCH v6 0/9] Expose IXGBE extended stats to DPDK apps

2015-07-16 Thread Olivier MATZ
Hi Maryam, On 07/15/2015 03:11 PM, Maryam Tahhan wrote: > This patch set implements xstats_get() and xstats_reset() in dev_ops for > ixgbe to expose detailed error statistics to DPDK applications. The > dump_cfg application was extended to demonstrate the usage of > retrieving statistics for DPDK

[dpdk-dev] Does FreeBSD's nic_uio have bind/unbind interface support?

2015-07-16 Thread David Marchand
Hello Rahul, (cc Bruce) How about removing this "whitelist" from the nic_uio driver and just rely on the hw.nic_uio.bdfs parameter to find out which devices to bind ? -- David Marchand On Thu, Jul 16, 2015 at 2:12 PM, Rahul Lakkireddy < rahul.lakkireddy at chelsio.com> wrote: > Hi All, > > I

[dpdk-dev] Does FreeBSD's nic_uio have bind/unbind interface support?

2015-07-16 Thread Bruce Richardson
On Thu, Jul 16, 2015 at 09:57:03AM +0200, David Marchand wrote: > Hello Rahul, > > (cc Bruce) > > How about removing this "whitelist" from the nic_uio driver and just rely > on the hw.nic_uio.bdfs parameter to find out which devices to bind ? > Yes, that would be my thinking too. It probably shou

[dpdk-dev] [PATCH v2] hash: fix library compilation for CPU with no SSE4.1

2015-07-16 Thread Pablo de Lara
From: "De Lara Guarch, Pablo" _mm_test_all_zeros is not available for CPUs with no SSE4.1, therefore, DPDK would not build. This patch adds an alternative for this, using _mm_cmpeq_epi32 and _mm_movemask_epi8. Fixes: 48a399119619 ("hash: replace with cuckoo hash implementation") Signed-off-by:

[dpdk-dev] [PATCH] mbuf: fix tunnel flags check

2015-07-16 Thread Thomas Monjalon
2015-07-16 00:36, Zhang, Helin: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > 2015-07-15 23:57, Zhang, Helin: > > > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > > > A packet is tunnelled if the tunnel type is identified or if it has an > > > > inner part. > >

[dpdk-dev] mbuf offload flags

2015-07-16 Thread Thomas Monjalon
Helin, In commit http://dpdk.org/browse/dpdk/commit/?id=c22265f6fd4cdc, some fake flags were added: #define PKT_RX_EIP_CKSUM_BAD (0ULL << 0) /**< External IP header checksum error. */ #define PKT_RX_OVERSIZE (0ULL << 0) /**< Num of desc of an RX pkt oversize.

[dpdk-dev] [PATCH v7 1/7] hash: replace existing hash library with cuckoo hash implementation

2015-07-16 Thread Tony Lu
>diff --git a/lib/librte_hash/rte_cuckoo_hash.c b/lib/librte_hash/rte_cuckoo_hash.c >new file mode 100644 >index 000..50e3acd >--- /dev/null >+++ b/lib/librte_hash/rte_cuckoo_hash.c >@@ -0,0 +1,1027 @@ ... >+ >+/* Functions to compare multiple of 16 byte keys (up to 128 bytes) */ >+static int >

[dpdk-dev] [PATCH v11] doc: update malloc documentation

2015-07-16 Thread Thomas Monjalon
2015-07-16 08:37, Sergio Gonzalez Monroy: > new file mode 100755 > index 000..d6bcc84 > --- /dev/null > +++ b/doc/guides/prog_guide/img/malloc_heap.svg This file has the exec bit. Will be fixed before applying.

[dpdk-dev] [PATCH v11] doc: update malloc documentation

2015-07-16 Thread Thomas Monjalon
2015-07-16 08:37, Sergio Gonzalez Monroy: > Update malloc documentation to reflect new implementation details. Should you reword the memzone chapter and move it after the malloc one?

[dpdk-dev] [PATCH v11] doc: update malloc documentation

2015-07-16 Thread Gonzalez Monroy, Sergio
On 16/07/2015 11:12, Thomas Monjalon wrote: > 2015-07-16 08:37, Sergio Gonzalez Monroy: >> Update malloc documentation to reflect new implementation details. > Should you reword the memzone chapter and move it after the malloc one? I didn't think that the memzone doc needed to change its wording fo

[dpdk-dev] Does FreeBSD's nic_uio have bind/unbind interface support?

2015-07-16 Thread Rahul Lakkireddy
Hi Bruce and David, On Thu, Jul 16, 2015 at 09:57:15 +0100, Bruce Richardson wrote: > On Thu, Jul 16, 2015 at 09:57:03AM +0200, David Marchand wrote: > > Hello Rahul, > > > > (cc Bruce) > > > > How about removing this "whitelist" from the nic_uio driver and just rely > > on the hw.nic_uio.bdfs p

[dpdk-dev] [PATCH] doc: announce ABI change for librte_cfgfile

2015-07-16 Thread Cristian Dumitrescu
Signed-off-by: Cristian Dumitrescu --- doc/guides/rel_notes/abi.rst |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides/rel_notes/abi.rst index 126f73e..942f3ea 100644 --- a/doc/guides/rel_notes/abi.rst +++ b/doc/guides/rel_notes

[dpdk-dev] [PATCH] doc: announce ABI change for librte_cfgfile

2015-07-16 Thread Gajdzica, MaciejX T
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Cristian Dumitrescu > Sent: Thursday, July 16, 2015 1:37 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] doc: announce ABI change for librte_cfgfile > > > Signed-off-by: Cristian Dumitrescu Acked-by: M

[dpdk-dev] [PATCH v10 0/9] Dynamic memzones

2015-07-16 Thread Thomas Monjalon
2015-07-15 17:32, Sergio Gonzalez Monroy: > Current implemetation allows reserving/creating memzones but not the opposite > (unreserve/free). This affects mempools and other memzone based objects. > > From my point of view, implementing free functionality for memzones would look > like malloc over

[dpdk-dev] [PATCH] mbuf: clarify comment on adding TX offload flags

2015-07-16 Thread Thomas Monjalon
2015-07-15 12:16, Olivier MATZ: > On 07/09/2015 03:22 PM, Bruce Richardson wrote: > > The comment for TX offload flags stated that those flags started at bit > > 55 and then were added to the right of that, leaving 8 bits reserved for > > generic mbuf (i.e. non-offload) use. This comment may not ha

[dpdk-dev] [PATCH] doc: announce ABI change for librte_port

2015-07-16 Thread Cristian Dumitrescu
Signed-off-by: Cristian Dumitrescu --- doc/guides/rel_notes/abi.rst | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides/rel_notes/abi.rst index 9e98d62..271e08e 100644 --- a/doc/guides/rel_notes/abi.rst +++ b/doc/guides/r

[dpdk-dev] [PATCH] doc: announce ABI change for librte_port

2015-07-16 Thread Gajdzica, MaciejX T
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Cristian Dumitrescu > Sent: Thursday, July 16, 2015 2:20 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] doc: announce ABI change for librte_port > > > Signed-off-by: Cristian Dumitrescu Acked-by: Ma

[dpdk-dev] [PATCH] doc: announce ABI change for librte_port

2015-07-16 Thread Thomas Monjalon
2015-07-16 13:19, Cristian Dumitrescu: > +* librte_port (rte_port.h): Macros to access the packet meta-data stored > within > + the packet buffer will be adjusted to cover the packet mbuf structure as > well, > + as currently they are able to access any packet buffer location except the > + pa

[dpdk-dev] [PATCH] doc: announce ABI change for librte_port

2015-07-16 Thread Mrzyglod, DanielX T
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Cristian Dumitrescu > Sent: Thursday, July 16, 2015 2:20 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] doc: announce ABI change for librte_port > > > Signed-off-by: Cristian Dumitrescu > --- > doc/

[dpdk-dev] [PATCH] doc: announce ABI change for librte_cfgfile

2015-07-16 Thread Mrzyglod, DanielX T
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Cristian Dumitrescu > Sent: Thursday, July 16, 2015 1:37 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] doc: announce ABI change for librte_cfgfile > > > Signed-off-by: Cristian Dumitrescu > --- > d

[dpdk-dev] [PATCH] doc: announce ABI change for librte_cfgfile

2015-07-16 Thread Singh, Jasvinder
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Cristian Dumitrescu > Sent: Thursday, July 16, 2015 12:37 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] doc: announce ABI change for librte_cfgfile > > > Signed-off-by: Cristian Dumitrescu > --- Ac

[dpdk-dev] [PATCH] doc: announce ABI change for librte_port

2015-07-16 Thread Singh, Jasvinder
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Cristian Dumitrescu > Sent: Thursday, July 16, 2015 1:20 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] doc: announce ABI change for librte_port > > > Signed-off-by: Cristian Dumitrescu > --- Acked-

[dpdk-dev] driver initialization in DPDK 2.0 built into a shared library.

2015-07-16 Thread Zoltan Kiss
On 14/07/15 19:21, Polevoy, Igor wrote: > Hi, > We are developing an application that uses DPDK PMD functionality . > We are using a linux shared library which contains the network packets > processing code and it is statically linked with all the necessary DPDK libs. > The .so is loaded by the

[dpdk-dev] [PATCH v3 2/8] ring: dynamic rss configuration

2015-07-16 Thread Kulasek, TomaszX
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Monday, July 13, 2015 17:11 > To: Kulasek, TomaszX > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 2/8] ring: dynamic rss configuration > > 2015-07-13 14:43, Kulasek, TomaszX: > > From: Tho

[dpdk-dev] [PATCH v17 0/5] User-space Ethtool

2015-07-16 Thread Liang-Min Larry Wang
This implementation is designed to provide a familar interface for applications that rely on kernel-space driver to support ethtool_op and net_device_op for device management. The initial implementation focuses on ops that can be implemented through existing netdev APIs. More ops will be support

[dpdk-dev] [PATCH v17 1/5] ethdev: add api to support setting default mac addr

2015-07-16 Thread Liang-Min Larry Wang
add new api: - rte_eth_dev_default_mac_addr_set the new api, rte_eth_dev_default_mac_addr_set, uses the existing dev_op, mac_addr_set, to enable setting mac addr from ethdev level. Signed-off-by: Liang-Min Larry Wang --- lib/librte_ether/rte_ethdev.c | 21 + lib/lib

[dpdk-dev] [PATCH v17 2/5] ethdev: add apis to support access device info

2015-07-16 Thread Liang-Min Larry Wang
add new apis: - rte_eth_dev_get_reg_length - rte_eth_dev_get_reg_info - rte_eth_dev_get_eeprom_length - rte_eth_dev_get_eeprom - rte_eth_dev_set_eeprom to enable reading device parameters (register and eeprom) based upon ethtool alike data parameter specification. Signed-off-by: Liang-Min Larry W

[dpdk-dev] [PATCH v17 3/5] ixgbe: add ops to support ethtool ops

2015-07-16 Thread Liang-Min Larry Wang
add function to support ethtool ops: - set_mac_addr - get_reg_length - get_regs - get_eeprom_length - get_eeprom - set_eeprom Signed-off-by: Liang-Min Larry Wang --- drivers/net/ixgbe/ixgbe_ethdev.c | 178 +- drivers/net/ixgbe/ixgbe_regs.h | 376

[dpdk-dev] [PATCH v17 4/5] igb: add ops to support ethtool ops

2015-07-16 Thread Liang-Min Larry Wang
add function to support ethtool ops: - set_mac_addr - get_reg_length - get_regs - get_eeprom_length - get_eeprom - set_eeprom Signed-off-by: Liang-Min Larry Wang --- drivers/net/e1000/igb_ethdev.c | 175 drivers/net/e1000/igb_regs.h | 223 ++

[dpdk-dev] [PATCH v17 5/5] examples: new example: l2fwd-ethtool

2015-07-16 Thread Liang-Min Larry Wang
The example includes an ethtool library and two applications: one application is a non- DPDK process (nic-control) and the other is a DPDK l2fwd applicaiton (l2fwd-app). The nic-control process sends ethtool alike device management requests to l2fwd-app through a named pipe IPC. This example is des

[dpdk-dev] [PATCH v2] hash: fix library compilation for CPU with no SSE4.1

2015-07-16 Thread Thomas Monjalon
2015-07-16 10:00, Pablo de Lara: > From: "De Lara Guarch, Pablo" > > _mm_test_all_zeros is not available for CPUs with no SSE4.1, > therefore, DPDK would not build. > This patch adds an alternative for this, using _mm_cmpeq_epi32 and > _mm_movemask_epi8. > > Fixes: 48a399119619 ("hash: replace w

[dpdk-dev] [PATCH] kni: fix compilation issue on SLES 12

2015-07-16 Thread Thomas Monjalon
2015-07-15 16:13, Pablo de Lara: > SLES 12 has kernel 3.12, which original does not have skb_set_hash, > but SuSE has added that function to the kernel integrated on it. > Therefore, the function is not declared when compiling on this OS. > > Reported-by: Sotiris Salloumis > Signed-off-by: Pablo

[dpdk-dev] [PATCH] hash: fix array out of bounds in hash library

2015-07-16 Thread Thomas Monjalon
2015-07-15 13:40, Pablo de Lara: > When encountering a loop while adding a new entry, > element out of bounds of array was being unnecessarily resetted. > > Fixes: 48a399119619 ("hash: replace with cuckoo hash implementation") > > Signed-off-by: Pablo de Lara Applied, thanks

[dpdk-dev] [PATCH] hash: fix compilation for gcc 4.4/4.5

2015-07-16 Thread Thomas Monjalon
2015-07-15 13:40, Pablo de Lara: > gcc 4.4 and 4.5 throws following error: > rte_cuckoo_hash.c:145: error: flexible array member in otherwise empty struct. > > This is due to empty length in flexible array, which has been changed to use > size 0 in the declaration of the array. > > Fixes: 48a3991

[dpdk-dev] [PATCH] doc: announce ABI change for librte_port

2015-07-16 Thread Dumitrescu, Cristian
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Thursday, July 16, 2015 1:26 PM > To: Dumitrescu, Cristian > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] doc: announce ABI change for librte_port > > 2015-07-16 13:19, Cristian Dumitrescu

[dpdk-dev] [PATCH v2] doc: announce ABI change for librte_port

2015-07-16 Thread Cristian Dumitrescu
v2 changes: -text simplification Signed-off-by: Cristian Dumitrescu --- doc/guides/rel_notes/abi.rst |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides/rel_notes/abi.rst index 9e98d62..6c064e2 100644 --- a/doc/guides/rel_notes/

[dpdk-dev] [PATCH v2] vpmd: rss hash ol_flag for unified packet type

2015-07-16 Thread Thomas Monjalon
Konstantin, what is the status of this patch? 2015-06-26 10:07, Tomasz Kulasek: > This patch adds management of PKT_RX_FDIR and PKT_RX_RSS_HASH ol_flags in vPMD > for unified packet type as well as for 16 bit field packet_type when > RTE_UNIFIED_PKT_TYPE is not defined. > > This patch depends of

[dpdk-dev] mbuf offload flags

2015-07-16 Thread Zhang, Helin
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Thursday, July 16, 2015 2:39 AM > To: Zhang, Helin > Cc: dev at dpdk.org; olivier.matz at 6wind.com > Subject: mbuf offload flags > > Helin, > > In commit http://dpdk.org/browse/dpdk/commit/?id=c2

[dpdk-dev] [PATCH v2] doc: announce ABI change for librte_port

2015-07-16 Thread Singh, Jasvinder
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Cristian Dumitrescu > Sent: Thursday, July 16, 2015 4:27 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2] doc: announce ABI change for librte_port > > v2 changes: > -text simplification > > Signed-of

[dpdk-dev] mbuf offload flags

2015-07-16 Thread Thomas Monjalon
2015-07-16 15:50, Zhang, Helin: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > Helin, > > > > In commit http://dpdk.org/browse/dpdk/commit/?id=c22265f6fd4cdc, some > > fake flags were added: > > > > #define PKT_RX_EIP_CKSUM_BAD (0ULL << 0) /**< External IP header > > checksum

[dpdk-dev] [PATCH] doc: announce ABI change for librte_table

2015-07-16 Thread Cristian Dumitrescu
Signed-off-by: Cristian Dumitrescu --- doc/guides/rel_notes/abi.rst |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides/rel_notes/abi.rst index 9e98d62..aa7c036 100644 --- a/doc/guides/rel_notes/abi.rst +++ b/doc/guides/rel_no

[dpdk-dev] [PATCH] doc: announce ABI change for librte_pipeline

2015-07-16 Thread Cristian Dumitrescu
Signed-off-by: Cristian Dumitrescu --- doc/guides/rel_notes/abi.rst |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides/rel_notes/abi.rst index 9e98d62..194e8c6 100644 --- a/doc/guides/rel_notes/abi.rst +++ b/doc/guides/rel_notes

[dpdk-dev] igb PMD should set the default tx wthresh correctly.

2015-07-16 Thread Stephen Hemminger
Why doesn't igb driver set the wthresh it wants as default? I see: PMD: eth_igb_tx_queue_setup(): To improve 1G driver performance, consider setting the TX WTHRESH value to 4, 8, or 16. But the default tx_conf has wthresh of 0. #define IGB_DEFAULT_TX_WTHRESH 0 Either mess

[dpdk-dev] [PATCH] fm10k: add missing newline to debug log

2015-07-16 Thread Stephen Hemminger
If FM10K_DEBUG_DRIVER is enabled, then the log messages about function entry are missing newline causing extremely long lines. Signed-off-by: Stephen Hemminger --- drivers/net/fm10k/base/fm10k_osdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/fm10k/base/fm10

[dpdk-dev] [PATCH] fm10k: add missing newline to debug log

2015-07-16 Thread Alexander Duyck
On 07/16/2015 10:26 AM, Stephen Hemminger wrote: > If FM10K_DEBUG_DRIVER is enabled, then the log messages about > function entry are missing newline causing extremely long lines. > > Signed-off-by: Stephen Hemminger > --- > drivers/net/fm10k/base/fm10k_osdep.h | 2 +- > 1 file changed, 1 inser

[dpdk-dev] [PATCH] i40e: Fix the clean up function for i40e, the DD bits are multiplex with descriptor type field. so cannot use "not zero" as the rule for the completion of Tx descriptor

2015-07-16 Thread Zhang, Helin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Zhe Tao > Sent: Friday, July 3, 2015 10:12 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] i40e: Fix the clean up function for i40e, the DD > bits > are multiplex with descriptor type field. so cannot u

[dpdk-dev] [PATCH] hash: fix compilation for non-x86 systems

2015-07-16 Thread Pablo de Lara
Hash library uses optimized compare functions that use x86 intrinsics, therefore non-x86 systems could not build the library. In that case, the compare function is set to the generic memcmp. Fixes: 48a399119619 ("hash: replace with cuckoo hash implementation") Reported-by: Tony Lu Signed-off-by:

[dpdk-dev] [PATCH v7 1/7] hash: replace existing hash library with cuckoo hash implementation

2015-07-16 Thread De Lara Guarch, Pablo
Hi Tony, > -Original Message- > From: Tony Lu [mailto:zlu at ezchip.com] > Sent: Thursday, July 16, 2015 10:40 AM > To: De Lara Guarch, Pablo; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH v7 1/7] hash: replace existing hash library > with cuckoo hash implementation > > >diff --git a/l

[dpdk-dev] [PATCH v2] fm10k: add missing newline to debug log

2015-07-16 Thread Stephen Hemminger
If FM10K_DEBUG_DRIVER is enabled, then the log messages about function entry are missing newline causing extremely long lines. Signed-off-by: Stephen Hemminger --- drivers/net/fm10k/base/fm10k_osdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/fm10k/base/fm10

[dpdk-dev] [PATCH] hash: fix compilation for non-x86 systems

2015-07-16 Thread Thomas Monjalon
2015-07-16 21:41, Pablo de Lara: > Hash library uses optimized compare functions that use > x86 intrinsics, therefore non-x86 systems could not build > the library. In that case, the compare function is set > to the generic memcmp. [...] > --- /dev/null > +++ b/lib/librte_hash/rte_cmp_fns.h Renami

[dpdk-dev] [PATCH] doc: announce ABI change for librte_sched

2015-07-16 Thread Stephen Hemminger
Signed-off-by: Stephen Hemminger --- doc/guides/rel_notes/abi.rst | 9 + 1 file changed, 9 insertions(+) diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides/rel_notes/abi.rst index 9e98d62..a4d100b 100644 --- a/doc/guides/rel_notes/abi.rst +++ b/doc/guides/rel_notes/abi.rst @@ -34,3 +

[dpdk-dev] [PATCH] doc: announce ABI change for librte_sched

2015-07-16 Thread Dumitrescu, Cristian
> -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Thursday, July 16, 2015 10:22 PM > To: Dumitrescu, Cristian > Cc: dev at dpdk.org; Stephen Hemminger > Subject: [PATCH] doc: announce ABI change for librte_sched > > Signed-off-by: Stephen Hemmi

[dpdk-dev] [PATCH v17 5/5] examples: new example: l2fwd-ethtool

2015-07-16 Thread Thomas Monjalon
2015-07-16 09:25, Liang-Min Larry Wang: > The example includes an ethtool library and two applications: > one application is a non- DPDK process (nic-control) > and the other is a DPDK l2fwd applicaiton (l2fwd-app). > The nic-control process sends ethtool alike device management > requests to l2fwd

[dpdk-dev] [PATCH] doc: announce ABI change for librte_sched

2015-07-16 Thread Neil Horman
On Thu, Jul 16, 2015 at 02:21:39PM -0700, Stephen Hemminger wrote: > Signed-off-by: Stephen Hemminger > --- > doc/guides/rel_notes/abi.rst | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides/rel_notes/abi.rst > index 9e98d62..a4d100b 100644

[dpdk-dev] [PATCH v5 0/4] rte_sched: cleanup and deprecation

2015-07-16 Thread Stephen Hemminger
This is a subset of earlier rte_sched patches. It does not address the read/clearing API issue since that was still under discussion. Stephen Hemminger (4): rte_sched: make RED optional at runtime rte_sched: don't put tabs in log messages rte_sched: use correct log level rte_sched: hide s

[dpdk-dev] [PATCH v5 1/4] rte_sched: make RED optional at runtime

2015-07-16 Thread Stephen Hemminger
Want to be able to build with RTE_SCHED_RED enabled but allow disabling RED on a per-queue basis at runtime. RED is disabled unless min/max thresholds set. Signed-off-by: Stephen Hemmminger --- lib/librte_sched/rte_sched.c | 9 + 1 file changed, 9 insertions(+) diff --git a/lib/librte_

[dpdk-dev] [PATCH v5 2/4] rte_sched: don't put tabs in log messages

2015-07-16 Thread Stephen Hemminger
syslog does not like tabs in log messages; tab gets translated to #011 Signed-off-by: Stephen Hemminger --- lib/librte_sched/rte_sched.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c index 6928c98..1

[dpdk-dev] [PATCH v5 3/4] rte_sched: use correct log level

2015-07-16 Thread Stephen Hemminger
The setup messages should be at DEBUG level since they are not important for normal operation of system. The messages about problems should be at NOTICE or ERR level. Signed-off-by: Stephen Hemminger --- lib/librte_sched/rte_sched.c | 15 +-- 1 file changed, 9 insertions(+), 6 deleti

[dpdk-dev] [PATCH v5 4/4] rte_sched: hide structure of port hierarchy

2015-07-16 Thread Stephen Hemminger
Right now the scheduler hierarchy is encoded as a bitfield that is visible as part of the ABI. This creates an barrier limiting future expansion of the hierarchy. As a transistional step. hide the actual layout of the hierarchy and mark the exposed structure as deprecated. This will allow for expa

[dpdk-dev] [PATCH v17 0/5] User-space Ethtool

2015-07-16 Thread Thomas Monjalon
2015-07-16 09:25, Liang-Min Larry Wang: > This implementation is designed to provide a familar interface for > applications that rely on kernel-space driver to support ethtool_op and > net_device_op for device management. The initial implementation focuses on > ops that can be implemented throug

[dpdk-dev] [PATCH] ethdev: fix macro VALID_PORTID_OR_ERR_RTE

2015-07-16 Thread Thomas Monjalon
2015-07-15 13:22, Liang-Min Larry Wang: > fix return value, using the macro input instead of -EINVAL. > > Signed-off-by: Liang-Min Larry Wang Applied, thanks

[dpdk-dev] [PATCH v17 0/5] User-space Ethtool

2015-07-16 Thread Wang, Liang-min
Thomas, Do you want me to create a separate patch just include the example/l2fwd-ethtool? Do you also mean besides the identified Makefiles, you see more rework needs to be done, or I just need to fix Makefile issue? If just Makefile issue, I could try to make another attempt tomorrow?

[dpdk-dev] [PATCH] fm10k: remove useless code

2015-07-16 Thread Stephen Hemminger
The return in fm10k_dev_handle_fault has useless conditional since it always returns 0 here. Signed-off-by: Stephen Hemminger --- drivers/net/fm10k/fm10k_ethdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index 902cca

[dpdk-dev] [PATCH v5 0/4] rte_sched: cleanup and deprecation

2015-07-16 Thread Dumitrescu, Cristian
> -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Thursday, July 16, 2015 10:35 PM > To: Dumitrescu, Cristian > Cc: dev at dpdk.org; Stephen Hemminger > Subject: [PATCH v5 0/4] rte_sched: cleanup and deprecation > > This is a subset of earlier

[dpdk-dev] [PATCH v17 0/5] User-space Ethtool

2015-07-16 Thread Wang, Liang-min
Thomas, Thanks for clarification. Our next step is to create hooks on virtio and vmxnet3 and other ethtool op. Thanks again for making prompt reply as I am aware it's very late in your time zone. Larry > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6win

[dpdk-dev] [dpdk-virtio]: cannot start testpmd after binding virtio devices to gib_uio

2015-07-16 Thread Clarylin L
> I am running a virtual guest on Ubuntu and trying to use dpdk testpmd as a > packet forwarder. > > After starting the virtual guest, I do > insmod igb_uio.ko > insmod rte_kni.ko > echo ":00:06.0" > /sys/bus/pci/drivers/virtio-pci/unbind > echo ":00:07.0" > /sys/bus/pci/drivers/virtio-pci/

[dpdk-dev] [PATCH 0/2] static matcher cleanups

2015-07-16 Thread Stephen Hemminger
These were found by running the Linux kernel coccinelle scripts on the DPDK source. Stephen Hemminger (2): rte_ethdev: fix crash if malloc fails in rte_eth_dev_callback_register kni: fix coccinelle warnings lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c | 4 ++-- lib/librte_eal/linuxapp/

[dpdk-dev] [PATCH 1/2] rte_ethdev: fix crash if malloc fails in rte_eth_dev_callback_register

2015-07-16 Thread Stephen Hemminger
Found by coccinelle script. If rte_zmalloc() failed in rte_eth_dev_callback_register then NULL pointer would be dereferenced. Signed-off-by: Stephen Hemminger --- lib/librte_ether/rte_ethdev.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/librte_ether/rte_ethde

[dpdk-dev] [PATCH 2/2] kni: fix coccinelle warnings

2015-07-16 Thread Stephen Hemminger
This fixes cases in KNI where kernel allocation function return value is needlessly casted. lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c:3181:25-28: WARNING: casting value returned by memory allocation function to (u32 *) is useless. lib/librte_eal/linuxapp/kni/kni_vhost.c:690:9-28: WARNING

[dpdk-dev] [PATCH] fm10K: fix interrupt fault handling

2015-07-16 Thread Stephen Hemminger
The fm10k driver was reading the interrupt cause register but then using the interrupt mask register defines to look at the bits. The result is that if a fault happens, the driver would never clear the fault and would get into an infinite cycle of interrupts. Note: I don't work for Intel or have t

[dpdk-dev] [PATCH v6 0/6] virtio PCI Port Hotplug

2015-07-16 Thread Stephen Hemminger
On Wed, 15 Jul 2015 14:50:59 +0100 Bernard Iremonger wrote: > Changes in V6: > Rebase. > Use queue_release function in dev_uninit function (patch 5) > Set vq to NULL in queue release function. > Move previous patch 5 to patch 6. > > > Changes in V5: > Rebase. > Add proper queue release patch (p

[dpdk-dev] igb PMD should set the default tx wthresh correctly.

2015-07-16 Thread Stephen Hemminger
On Fri, 17 Jul 2015 00:52:09 + "Lu, Wenzhuo" wrote: > Hi Stephen, > I don't think there's a conflict. The message just reminder us that we can > adjust the values to achieve better performance. > I saw ixgbe and i40e also use 0 as the same default value. To my opinion, > it's good to keep t