Skip to content

Commit 2cd9c2f

Browse files
committedOct 16, 2014
Merge pull request #9 from alex4nder/dpdk-1.7.1
Update to use DPDK v1.7.1
2 parents e953f19 + 4966401 commit 2cd9c2f

File tree

7 files changed

+19
-12
lines changed

7 files changed

+19
-12
lines changed
 

‎.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ before_install:
77

88
script:
99
- sudo ln -sf $(ls /lib/modules | sed 1q) /lib/modules/$(uname -r)
10+
- .travis/dpdk_disablekni.sh
1011
- make
1112

1213
notifications:

‎.travis/dpdk_disablekni.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
patch -p0 <<EOF
4+
--- dpdk/config/common_linuxapp
5+
+++ dpdk/config/common_linuxapp
6+
@@ -381,7 +381,7 @@ CONFIG_RTE_LIBRTE_PIPELINE=y
7+
#
8+
# Compile librte_kni
9+
#
10+
-CONFIG_RTE_LIBRTE_KNI=y
11+
+CONFIG_RTE_LIBRTE_KNI=n
12+
CONFIG_RTE_KNI_KO_DEBUG=n
13+
CONFIG_RTE_KNI_VHOST=n
14+
CONFIG_RTE_KNI_VHOST_MAX_CACHE_SIZE=1024
15+
EOF

‎buildme.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUMPDEST=$(pwd)/rump
1919
set -e
2020
( cd buildrump.sh && ./buildrump.sh -T ${RUMPTOOLS} -d ${RUMPDEST} -q \
2121
checkout fullbuild || die buildrump.sh failed )
22-
( cd dpdk ; make T=$(uname -m)-default-linuxapp-gcc config && make \
22+
( cd dpdk ; make T=$(uname -m)-native-linuxapp-gcc config && make \
2323
|| die dpdk build failed )
2424
( cd src && ${RUMPMAKE} dependall && ${RUMPMAKE} install \
2525
|| dpdkif build failed )

‎dpdk

Submodule dpdk updated from f95b372 to 99213f3

‎examples/Makefile.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ BINDIR= /usr/bin
22

33
LDFLAGS+= -L${RTE_SDK}/${RTE_TARGET}/lib -Wl,--no-as-needed
44

5-
LDADD+= -Wl,--whole-archive -lrumpnet_dpdkif -lrumpnet_config -lrumpdev_bpf -lrumpnet_netinet6 -lrumpnet_netinet -lrumpnet_net -lrumpnet -lrump -lrumpuser -lethdev -lrte_eal -lrte_hash -lrte_lpm -lrte_malloc -lrte_mbuf -lrte_mempool -lrte_pmd_ixgbe -lrte_pmd_e1000 -lrte_pmd_ring -lrte_pmd_virtio -lrte_pmd_vmxnet3 -lrte_ring -lrte_timer -Wl,--no-whole-archive
5+
LDADD+= -Wl,--whole-archive -lrumpnet_dpdkif -lrumpnet_config -lrumpdev_bpf -lrumpnet_netinet6 -lrumpnet_netinet -lrumpnet_net -lrumpnet -lrump -lrumpuser -lethdev -lrte_eal -lrte_hash -lrte_lpm -lrte_malloc -lrte_mbuf -lrte_mempool -lrte_pmd_ixgbe -lrte_pmd_e1000 -lrte_pmd_ring -lrte_pmd_virtio_uio -lrte_pmd_vmxnet3_uio -lrte_ring -lrte_timer -lrte_kvargs -Wl,--no-whole-archive

‎src/libdpdkif/configuration.h

-5
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,5 @@ static const char *ealargs[] = {
1818
/* change PORTID to the one your want to use */
1919
#define IF_PORTID 0
2020

21-
/* change to the init method of your NIC driver */
22-
#ifndef PMD_INIT
23-
#define PMD_INIT rte_pmd_init_all
24-
#endif
25-
2621
/* Receive packets in bursts of 16 per read */
2722
#define MAX_PKT_BURST 16

‎src/libdpdkif/dpdkif_user.c

-4
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,6 @@ globalinit(struct virtif_user *viu)
134134
OUT("mbuf pool tx");
135135
}
136136

137-
if ((rv = PMD_INIT()) < 0)
138-
OUT("pmd init");
139-
if ((rv = rte_eal_pci_probe()) < 0)
140-
OUT("PCI probe");
141137
if (rte_eth_dev_count() == 0) {
142138
rv = -1;
143139
OUT("no ports");

0 commit comments

Comments
 (0)
Failed to load comments.