Commit Graph

12146 Commits

Author SHA1 Message Date
Zijie Pan
06cf9be95c lib: fix uninitialized value
Fix warning "The left expression of the compound assignment
is an uninitialized value".

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>
2013-07-25 16:07:51 +02:00
Zijie Pan
a75cc7772c lib: fix uninitialized variables
Fix compilation errors caused by uninitialized variables.

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>
2013-07-25 16:07:51 +02:00
Zijie Pan
cddaf87a1e lib: fix unused values
Fix warnings of type "Value stored to 'xxx' is never read".

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>
2013-07-25 16:07:51 +02:00
Intel
d55d942fa9 kni: various changes
Signed-off-by: Intel
2013-07-25 16:07:51 +02:00
Intel
3b5d33a004 kni: disable IGB_DCA
Signed-off-by: Intel
2013-07-25 16:07:51 +02:00
Intel
9b3cd1cc0c kni: fix disabling
Signed-off-by: Intel
2013-07-25 16:07:51 +02:00
Ivan Boule
6402373548 kni: fix build with kernel < 2.6.34
Signed-off-by: Ivan Boule <ivan.boule@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2013-07-25 16:07:51 +02:00
Nicolas Dichtel
f454d1a9c9 igb_uio: fix build with kernel >= 3.8
__devinit has been removed in linux commit 54b956b903
("Remove __dev* markings from init.h", 3.8-rc4).

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Ivan Boule <ivan.boule@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2013-07-25 16:07:51 +02:00
Intel
c872db9ea5 igb: fix RX for Springville (i210)
Signed-off-by: Intel
2013-07-25 16:07:51 +02:00
Adrien Mazarguil
66daf76700 pci: allow drivers to be bound several times to the same PCI device
Drivers with the flag RTE_PCI_DRV_MULTIPLE enabled will be bound several
times to the same device until they return an error.

These drivers must internally keep track of each device state in order for
this to work reliably.

This flag currently required for Ethernet adapters with several physical
ports but a single address on the PCI bus.

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>
2013-07-25 16:07:51 +02:00
Intel
c4641b4b1e mem: 64-bit mempool sizes
Signed-off-by: Intel
2013-07-25 16:07:51 +02:00
Intel
dd61b34d58 mem: error if requesting more segments than MAX_MEMSEG
Signed-off-by: Intel
2013-07-25 16:07:51 +02:00
Intel
02e7f35373 config: increase MAX_MEMSEG from 32 to 256
Signed-off-by: Intel
2013-07-25 16:07:51 +02:00
Thomas Monjalon
8885118f82 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>
2013-07-25 16:07:50 +02:00
Intel
a366c813f7 eal: add bsf32
Signed-off-by: Intel
2013-07-25 16:07:50 +02:00
Intel
0100a515b5 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
2013-07-25 16:07:50 +02:00
Intel
cd3cefac77 cmdline: fix for long input
Signed-off-by: Intel
2013-07-25 16:07:50 +02:00
Didier Pallard
f9a0e0a56b 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>
2013-07-25 16:07:50 +02:00
Zijie Pan
cd1bdd1376 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>
2013-07-25 16:07:50 +02:00
Thierry Herbelot
9cdd07c320 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>
2013-07-25 16:07:50 +02:00
Samuel Gauthier
19824d7a69 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>
2013-07-25 16:07:50 +02:00
Intel
594f3c1cea set version to 1.3.0
Signed-off-by: Intel
2013-07-25 16:07:45 +02:00
Intel
1d8d954b80 examples/vmdq_dcb: update
Signed-off-by: Intel
2013-07-25 15:58:01 +02:00
Intel
d46989e0d3 examples/multi_process: update
Signed-off-by: Intel
2013-07-25 15:58:01 +02:00
Intel
3b95eb689b examples/load_balancer: update
Signed-off-by: Intel
2013-07-25 15:58:01 +02:00
Intel
0c3d715cb3 examples/link_status_interrupt: update
Signed-off-by: Intel
2013-07-25 15:58:01 +02:00
Intel
f68aad7904 examples/l3fwd: update
Signed-off-by: Intel
2013-07-25 15:58:01 +02:00
Intel
0cbac1a0a8 examples/l3fwd-vf: update
Signed-off-by: Intel
2013-07-25 15:58:01 +02:00
Intel
16ac9cf052 examples/l2fwd: update
Signed-off-by: Intel
2013-07-25 15:58:01 +02:00
Intel
6441b9f653 examples/ipv4_multicast: update
Signed-off-by: Intel
2013-07-25 15:58:01 +02:00
Intel
33399bcaa4 examples/ipv4_frag: update
Signed-off-by: Intel
2013-07-25 15:58:01 +02:00
Intel
3460012bcc examples/qat: update
Signed-off-by: Intel
2013-07-25 15:57:54 +02:00
Intel
48a5ba0977 examples/qat: rename config files
Signed-off-by: Intel
2013-07-25 15:57:45 +02:00
Intel
d3641ae863 examples: update link status checks
Signed-off-by: Intel
2013-07-25 15:57:45 +02:00
Intel
90dc1a670c examples: remove l2fwd-vf
Signed-off-by: Intel
2013-07-25 15:54:18 +02:00
Intel
013af9b6b6 app/testpmd: various updates
Signed-off-by: Intel
2013-07-25 15:54:18 +02:00
Intel
9b53e542e9 app/testpmd: add priority flow control
Signed-off-by: Intel
2013-07-25 15:54:18 +02:00
Intel
900550de04 app/testpmd: add dcb support
Signed-off-by: Intel
2013-07-25 15:54:18 +02:00
Intel
ce8d561418 app/testpmd: add port configuration settings
Signed-off-by: Intel
2013-07-25 15:54:18 +02:00
Intel
c87988187f app/testpmd: add --total-num-mbufs option
Signed-off-by: Intel
2013-07-25 15:54:18 +02:00
Intel
e9e0a8a23a app/testpmd: fix check on mac address
Signed-off-by: Intel
2013-07-25 15:54:18 +02:00
Intel
cf808da4bd app/testpmd: fix fdir ipv4 filter
Signed-off-by: Intel
2013-07-25 15:54:18 +02:00
Intel
d59b178f12 app/testpmd: add fdir ipv6 support
Signed-off-by: Intel
2013-07-25 15:54:18 +02:00
Intel
a47aa8b97a app/testpmd: add vlan offload support
Signed-off-by: Intel
2013-07-25 15:54:18 +02:00
Intel
ed30d9b691 app/testpmd: add stats per queue
Signed-off-by: Intel
2013-07-25 15:54:18 +02:00
Dongsu Han
84ac1559c4 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>
2013-07-25 15:54:18 +02:00
Intel
a40a1f8231 app: various tests update
Signed-off-by: Intel
2013-07-25 15:54:18 +02:00
Intel
a5d045b2b4 app: cosmetic
Signed-off-by: Intel
2013-07-25 15:54:18 +02:00
Intel
ce0ce98e9f app: update test pci device ids
Signed-off-by: Intel
2013-07-25 15:54:18 +02:00
Intel
45f1b6e868 app: add new tests on eal flags
Signed-off-by: Intel
2013-07-25 15:54:18 +02:00