dpdk.git
11 years agoconfig: increase MAX_MEMSEG from 32 to 256
Intel [Tue, 12 Mar 2013 11:03:00 +0000 (12:03 +0100)]
config: increase MAX_MEMSEG from 32 to 256

Signed-off-by: Intel
11 years agoeal: fix access to huge page with high address
Thomas Monjalon [Thu, 2 Aug 2012 15:17:37 +0000 (17:17 +0200)]
eal: fix access to huge page with high address

The returned value of lseek is a virtual address
which can be different from the offset.
Indeed, if the return address has a 64-bit canonical form,
the 16 higher bits are all 1 if bit 47 is 1.

So the check was wrong. It is better to test against an error value.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Damien Millescamps <damien.millescamps@6wind.com>
11 years agoeal: add bsf32
Intel [Tue, 12 Mar 2013 11:03:00 +0000 (12:03 +0100)]
eal: add bsf32

Signed-off-by: Intel
11 years agopmac: integration without lib
Intel [Tue, 12 Mar 2013 11:03:00 +0000 (12:03 +0100)]
pmac: integration without lib

This library could be used for pattern matching and ACL.
Code of librte_pmac is not released as Open Source.

Signed-off-by: Intel
11 years agocmdline: fix for long input
Intel [Tue, 12 Mar 2013 11:03:00 +0000 (12:03 +0100)]
cmdline: fix for long input

Signed-off-by: Intel
11 years agomk: fix verbose display of install command
Didier Pallard [Wed, 9 Jan 2013 16:15:12 +0000 (17:15 +0100)]
mk: fix verbose display of install command

Correctly display executed install command in
  rte.install-post.mk install rules

Signed-off-by: Didier Pallard <didier.pallard@6wind.com>
Acked-by: Ivan Boule <ivan.boule@6wind.com>
11 years agomk: allow corei7-avx flag with gcc 4.7
Zijie Pan [Fri, 1 Feb 2013 11:42:18 +0000 (12:42 +0100)]
mk: allow corei7-avx flag with gcc 4.7

In rte.toolchain-compat.mk, ensure MACHINE_CFLAGS is initialized when
using GCC 4.7. Update the GCC 4.6 test to also include GCC 4.7.

Signed-off-by: Krzysztof Witek <krzysztof.witek@6wind.com>
Signed-off-by: Zijie Pan <zijie.pan@6wind.com>
Acked-by: Ivan Boule <ivan.boule@6wind.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
11 years agomk: fix typo in LDFLAGS for 32-bit
Thierry Herbelot [Mon, 2 Apr 2012 12:27:43 +0000 (14:27 +0200)]
mk: fix typo in LDFLAGS for 32-bit

Enable compilation for 32-bit architecture.

Signed-off-by: Thierry Herbelot <thierry.herbelot@6wind.com>
Acked-by: Ivan Boule <ivan.boule@6wind.com>
11 years agomk: use $CC to detect toolchain version
Samuel Gauthier [Thu, 20 Sep 2012 08:07:44 +0000 (10:07 +0200)]
mk: use $CC to detect toolchain version

Using gcc is wrong, we should use the cross gcc to detect the
version of gcc.

Signed-off-by: Samuel Gauthier <samuel.gauthier@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
11 years agoset version to 1.3.0
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
set version to 1.3.0

Signed-off-by: Intel
11 years agoexamples/vmdq_dcb: update
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
examples/vmdq_dcb: update

Signed-off-by: Intel
11 years agoexamples/multi_process: update
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
examples/multi_process: update

Signed-off-by: Intel
11 years agoexamples/load_balancer: update
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
examples/load_balancer: update

Signed-off-by: Intel
11 years agoexamples/link_status_interrupt: update
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
examples/link_status_interrupt: update

Signed-off-by: Intel
11 years agoexamples/l3fwd: update
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
examples/l3fwd: update

Signed-off-by: Intel
11 years agoexamples/l3fwd-vf: update
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
examples/l3fwd-vf: update

Signed-off-by: Intel
11 years agoexamples/l2fwd: update
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
examples/l2fwd: update

Signed-off-by: Intel
11 years agoexamples/ipv4_multicast: update
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
examples/ipv4_multicast: update

Signed-off-by: Intel
11 years agoexamples/ipv4_frag: update
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
examples/ipv4_frag: update

Signed-off-by: Intel
11 years agoexamples/qat: update
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
examples/qat: update

Signed-off-by: Intel
11 years agoexamples/qat: rename config files
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
examples/qat: rename config files

Signed-off-by: Intel
11 years agoexamples: update link status checks
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
examples: update link status checks

Signed-off-by: Intel
11 years agoexamples: remove l2fwd-vf
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
examples: remove l2fwd-vf

Signed-off-by: Intel
11 years agoapp/testpmd: various updates
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app/testpmd: various updates

Signed-off-by: Intel
11 years agoapp/testpmd: add priority flow control
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app/testpmd: add priority flow control

Signed-off-by: Intel
11 years agoapp/testpmd: add dcb support
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app/testpmd: add dcb support

Signed-off-by: Intel
11 years agoapp/testpmd: add port configuration settings
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app/testpmd: add port configuration settings

Signed-off-by: Intel
11 years agoapp/testpmd: add --total-num-mbufs option
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app/testpmd: add --total-num-mbufs option

Signed-off-by: Intel
11 years agoapp/testpmd: fix check on mac address
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app/testpmd: fix check on mac address

Signed-off-by: Intel
11 years agoapp/testpmd: fix fdir ipv4 filter
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app/testpmd: fix fdir ipv4 filter

Signed-off-by: Intel
11 years agoapp/testpmd: add fdir ipv6 support
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app/testpmd: add fdir ipv6 support

Signed-off-by: Intel
11 years agoapp/testpmd: add vlan offload support
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app/testpmd: add vlan offload support

Signed-off-by: Intel
11 years agoapp/testpmd: add stats per queue
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app/testpmd: add stats per queue

Signed-off-by: Intel
11 years agoapp/testpmd: fix refcnt in mbuf allocation
Dongsu Han [Mon, 6 May 2013 12:06:51 +0000 (12:06 +0000)]
app/testpmd: fix refcnt in mbuf allocation

test-pmd txonly leaks mbuf from the pool.
The function tx_mbuf_alloc() does not change the refcnt
and the refcnt is 0 when it is first allocated.
However, rte_pktmbuf_free_seg called by the driver's xmit code decrements
reference count to -1. So mbuf never goes back to the pool.
As a result, txonly can't send packets after it exhausts the mempool.

The function tx_mbuf_alloc() was getting mbuf directly from mempool and so
was bypassing mbuf API.
The dedicated function is rte_pktmbuf_alloc() but it is much slower because
it does unnecessary initializations in rte_pktmbuf_reset().
By using the internal API __rte_mbuf_raw_alloc(), refcnt is correctly handled
without adding too much overload.

Signed-off-by: Dongsu Han <dongsuh@cs.cmu.edu>
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
11 years agoapp: various tests update
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app: various tests update

Signed-off-by: Intel
11 years agoapp: cosmetic
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app: cosmetic

Signed-off-by: Intel
11 years agoapp: update test pci device ids
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app: update test pci device ids

Signed-off-by: Intel
11 years agoapp: add new tests on eal flags
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app: add new tests on eal flags

Signed-off-by: Intel
11 years agoapp: add reentrancy tests
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app: add reentrancy tests

Signed-off-by: Intel
11 years agoapp: change route table for lpm
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app: change route table for lpm

Signed-off-by: Intel
11 years agoapp: split performance tests
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app: split performance tests

Signed-off-by: Intel
11 years agoapp: rework autotest.py
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app: rework autotest.py

Signed-off-by: Intel
11 years agoapp: refactor dump_cfg
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app: refactor dump_cfg

Signed-off-by: Intel
11 years agoapp: remove chkincs
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
app: remove chkincs

Signed-off-by: Intel
11 years agoixgbe: whitespace changes
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ixgbe: whitespace changes

Signed-off-by: Intel
11 years agoixgbe: various updates
Intel [Mon, 24 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ixgbe: various updates

Signed-off-by: Intel
11 years agoixgbe: add ipv6 support to fdir
Intel [Mon, 24 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ixgbe: add ipv6 support to fdir

Signed-off-by: Intel
11 years agoixgbe: configure CRC stripping behaviour of PF
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ixgbe: configure CRC stripping behaviour of PF

Signed-off-by: Intel
11 years agoixgbe: add an optimised "simple" TX function
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ixgbe: add an optimised "simple" TX function

Signed-off-by: Intel
11 years agoixgbe: DCB / flow control
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ixgbe: DCB / flow control

Signed-off-by: Intel
11 years agoixgbe: add vlan offload support
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ixgbe: add vlan offload support

Signed-off-by: Intel
11 years agoixgbe: allow rx bulk alloc
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ixgbe: allow rx bulk alloc

Signed-off-by: Intel
11 years agoixgbe: update RX/TX queue configuration
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ixgbe: update RX/TX queue configuration

Signed-off-by: Intel
11 years agoixgbe: stats per queue
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ixgbe: stats per queue

Signed-off-by: Intel
11 years agoixgbe: DCB in base driver
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ixgbe: DCB in base driver

Signed-off-by: Intel
11 years agoixgbe: update base driver
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ixgbe: update base driver

Signed-off-by: Intel
11 years agoixgbe: minor changes
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ixgbe: minor changes

Signed-off-by: Intel
11 years agoixgbe: update copyright
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ixgbe: update copyright

Signed-off-by: Intel
11 years agoe1000: whitespace changes
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
e1000: whitespace changes

Signed-off-by: Intel
11 years agoe1000: support EM devices (also known as e1000/e1000e)
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
e1000: support EM devices (also known as e1000/e1000e)

Signed-off-by: Intel
11 years agoe1000: update RX/TX queue configuration
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
e1000: update RX/TX queue configuration

Queues are allocated by rte_ether.

Signed-off-by: Intel
11 years agoe1000: add vlan offload support
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
e1000: add vlan offload support

Signed-off-by: Intel
11 years agoe1000: configure CRC stripping behaviour of PF
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
e1000: configure CRC stripping behaviour of PF

Signed-off-by: Intel
11 years agoe1000: minor changes
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
e1000: minor changes

Signed-off-by: Intel
11 years agoigb: various updates
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
igb: various updates

Signed-off-by: Intel
11 years agoigb: add VF support
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
igb: add VF support

Signed-off-by: Intel
11 years agoigb: more supported devices
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
igb: more supported devices

Signed-off-by: Intel
11 years agoe1000: more NICs in base driver
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
e1000: more NICs in base driver

Signed-off-by: Intel
11 years agoe1000: update base driver
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
e1000: update base driver

Signed-off-by: Intel
11 years agoe1000: minor changes in base driver
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
e1000: minor changes in base driver

Signed-off-by: Intel
11 years agoe1000: update copyright
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
e1000: update copyright

Signed-off-by: Intel
11 years agoigb: rename pmd driver as e1000
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
igb: rename pmd driver as e1000

Signed-off-by: Intel
11 years agoethdev: add VF statistics
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ethdev: add VF statistics

Signed-off-by: Intel
11 years agoethdev: add priority flow control configuration
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ethdev: add priority flow control configuration

Signed-off-by: Intel
11 years agoethdev: add ipv6 support to fdir
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ethdev: add ipv6 support to fdir

Signed-off-by: Intel
11 years agoethdev: add vlan offload support
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ethdev: add vlan offload support

Signed-off-by: Intel
11 years agoethdev: add RX/TX queues configuration
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ethdev: add RX/TX queues configuration

Signed-off-by: Intel
11 years agoethdev: add DCB support
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ethdev: add DCB support

Signed-off-by: Intel
11 years agoethdev: add stats per queue
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ethdev: add stats per queue

Signed-off-by: Intel
11 years agoethdev: minor changes
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ethdev: minor changes

Signed-off-by: Intel
11 years agoethdev: init all builtin drivers
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ethdev: init all builtin drivers

Signed-off-by: Intel
11 years agopci: make it possible to keep devices bound to uio
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
pci: make it possible to keep devices bound to uio

Binding code has been refactored as well.

Signed-off-by: Intel
11 years agopci: fix uio driver dependency
Damien Millescamps [Mon, 30 Jul 2012 09:47:27 +0000 (11:47 +0200)]
pci: fix uio driver dependency

Allow to run without igb_uio if probed devices don't require it.

The condition for exiting with an error is:
 - Tested driver is needed by a probed device
 AND
 - Tested driver needs igb_uio

Signed-off-by: Damien Millescamps <damien.millescamps@6wind.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
11 years agopci: reference driver structure for each device
Adrien Mazarguil [Mon, 30 Jul 2012 09:47:28 +0000 (09:47 +0000)]
pci: reference driver structure for each device

Add a driver reference (if available) to every PCI devices,
even when blacklisted. This information is made available in the global
device_list variable so users know which network devices are managed or
ignored.

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Ivan Boule <ivan.boule@6wind.com>
Acked-by: Damien Millescamps <damien.millescamps@6wind.com>
11 years agoigb_uio: allow to configure interrupt mode
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
igb_uio: allow to configure interrupt mode

Signed-off-by: Intel
11 years agoigb_uio: various updates
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
igb_uio: various updates

Signed-off-by: Intel
11 years agoigb_uio: GPL copyright
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
igb_uio: GPL copyright

Signed-off-by: Intel
11 years agombuf: group fields in vlan_macip union
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
mbuf: group fields in vlan_macip union

Signed-off-by: Intel
11 years agombuf: fix build when scatter gather is disabled
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
mbuf: fix build when scatter gather is disabled

Signed-off-by: Intel
11 years agomemory: stats for malloc
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
memory: stats for malloc

Signed-off-by: Intel
11 years agomemory: malloc now supports multi process
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
memory: malloc now supports multi process

Signed-off-by: Intel
11 years agomemory: add numa-awareness to malloc
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
memory: add numa-awareness to malloc

Signed-off-by: Intel
11 years agomemory: fix for multi process support
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
memory: fix for multi process support

Signed-off-by: Intel
11 years agomemory: add --socket-mem option
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
memory: add --socket-mem option

On NUMA systems, --socket-mem makes it possible to select the node where
allocations will go.

Signed-off-by: Intel
11 years agomempool: cache optimisations
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
mempool: cache optimisations

Signed-off-by: Intel
11 years agoring: add burst API
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
ring: add burst API

Signed-off-by: Intel
11 years agohash: fix check when creating fbk hash
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
hash: fix check when creating fbk hash

Signed-off-by: Intel
11 years agohash: allocate memory on right numa socket
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
hash: allocate memory on right numa socket

Signed-off-by: Intel
11 years agohash: don't use memzone for allocations
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
hash: don't use memzone for allocations

Signed-off-by: Intel
11 years agohash: remove comments
Intel [Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)]
hash: remove comments

Signed-off-by: Intel