Skip to content

Commit

Permalink
Merge pull request #36 from lagopus/release-0.1
Browse files Browse the repository at this point in the history
Lagopus release version 0.1.2
  • Loading branch information
Yoshihiro Nakajima committed May 19, 2015
2 parents b920421 + 948487d commit c5e358b
Show file tree
Hide file tree
Showing 535 changed files with 11,230 additions and 10,639 deletions.
14 changes: 7 additions & 7 deletions QUICKSTART.md
Expand Up @@ -15,15 +15,15 @@ Install kernel headers

$ sudo apt-get install linux-headers-`uname -r`

Get Intel DPDK 1.6.0 and extract Intel DPDK zip file
Get Intel DPDK 1.8.0 and extract Intel DPDK zip file

$ wget https://downloads.sourceforge.net/project/lagopus/Intel-DPDK/DPDK-1.6.0-18.zip
$ unzip DPDK-1.6.0-18.zip
$ wget http://dpdk.org/browse/dpdk/snapshot/dpdk-1.8.0.zip
$ unzip dpdk-1.8.0.zip

Compile

$ export RTE_SDK=<Absolute Path of Intel DPDK>
$ export RTE_TARGET="x86_64-default-linuxapp-gcc"
$ export RTE_TARGET="x86_64-native-linuxapp-gcc"
$ make config T=${RTE_TARGET}
$ make install T=${RTE_TARGET}

Expand Down Expand Up @@ -101,7 +101,7 @@ Check PCI ID to enable DPDK on 2nd, 3rd, and 4th NIC.

If NIC used for management (ex: ssh) was selected, you will lose connection.

$ sudo ${RTE_SDK}/tools/pci_unbind.py --status
$ sudo ${RTE_SDK}/tools/dpdk_nic_bind.py --status

Network devices using IGB_UIO driver
====================================
Expand All @@ -121,11 +121,11 @@ If NIC used for management (ex: ssh) was selected, you will lose connection.

Unbound NICs from ixgbe driver.

$ sudo ${RTE_SDK}/tools/pci_unbind.py -b igb_uio 0000:02:02.0 0000:02:03.0 0000:02:04.0
$ sudo ${RTE_SDK}/tools/dpdk_nic_bind.py -b igb_uio 0000:02:02.0 0000:02:03.0 0000:02:04.0

Check the current status of NICs whehter the 2nd, 3rd and 4th interface is registerd with igb_uio driver

$ sudo ${RTE_SDK}/tools/pci_unbind.py --status
$ sudo ${RTE_SDK}/tools/dpdk_nic_bind.py --status

Network devices using IGB_UIO driver
====================================
Expand Down
169 changes: 162 additions & 7 deletions configure
Expand Up @@ -659,7 +659,9 @@ OS_LDFLAGS
OS_CFLAGS
OS_CPPFLAGS
MAKE
SSE42_CPPFLAGS
FLOWCACHE_FLAGS
RTE_MBUF_HAS_PKT
RTE_LIBS
RTE_TARGET
RTE_SDK
Expand Down Expand Up @@ -782,6 +784,7 @@ with_sysroot
enable_libtool_lock
with_dpdk_dir
enable_flowcache
enable_sse4_2
enable_developer
'
ac_precious_vars='build_alias
Expand Down Expand Up @@ -1417,6 +1420,7 @@ Optional Features:
optimize for fast installation [default=yes]
--disable-libtool-lock avoid locking (might break parallel builds)
--enable-flowcache build with flowcache feature [default is no]
--enable-sse4.2 build with SSE4.2 instruction [default is yes]
--enable-developer enable build for developers, like unit tests
[default is no]

Expand Down Expand Up @@ -1999,6 +2003,63 @@ fi

} # ac_fn_c_check_header_mongrel

# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
# ----------------------------------------------------
# Tries to find if the field MEMBER exists in type AGGR, after including
# INCLUDES, setting cache variable VAR accordingly.
ac_fn_c_check_member ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
$as_echo_n "checking for $2.$3... " >&6; }
if eval \${$4+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$5
int
main ()
{
static $2 ac_aggr;
if (ac_aggr.$3)
return 0;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$4=yes"
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$5
int
main ()
{
static $2 ac_aggr;
if (sizeof ac_aggr.$3)
return 0;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$4=yes"
else
eval "$4=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_member

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
Expand Down Expand Up @@ -15403,6 +15464,9 @@ $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
fi
rm -f conftest.l $LEX_OUTPUT_ROOT.c

fi
if test "x$LEX" != xflex -a "x$LEX" != xlex; then
as_fn_error $? "flex/lex must be installed." "$LINENO" 5
fi
for ac_prog in gawk mawk nawk awk
do
Expand Down Expand Up @@ -16839,22 +16903,46 @@ fi

if test "x$with_dpdk_dir" != "x"; then
RTE_SDK=$with_dpdk_dir
RTE_TARGET=`uname -p`-default-linuxapp-${CC}
RTE_TARGET=build
as_ac_Header=`$as_echo "ac_cv_header_${RTE_SDK}/${RTE_TARGET}/include/rte_config.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "${RTE_SDK}/${RTE_TARGET}/include/rte_config.h" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :

else
RTE_TARGET=`uname -p`-native-linuxapp-${CC}
fi

RTE_ARCH=`uname -p`
if test "x$RTE_ARCH" = "xunknown"; then
RTE_ARCH=`uname -m`
fi
case `uname` in
Linux)
RTE_OS=linuxapp
;;
FreeBSD)
RTE_OS=bsdapp
;;
*)
as_fn_error $? "DPDK must be supported your OS." "$LINENO" 5
;;
esac
RTE_TARGET=${RTE_ARCH}-native-${RTE_OS}-${CC}
as_ac_Header=`$as_echo "ac_cv_header_${RTE_SDK}/${RTE_TARGET}/include/rte_config.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "${RTE_SDK}/${RTE_TARGET}/include/rte_config.h" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :

as_ac_Header=`$as_echo "ac_cv_header_${RTE_SDK}/${RTE_TARGET}/include/rte_config.h" | $as_tr_sh`
else
RTE_TARGET=${RTE_ARCH}-default-${RTE_OS}-${CC}
as_ac_Header=`$as_echo "ac_cv_header_${RTE_SDK}/${RTE_TARGET}/include/rte_config.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "${RTE_SDK}/${RTE_TARGET}/include/rte_config.h" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :

else
as_fn_error $? "Intel DPDK must be installed." "$LINENO" 5
as_fn_error $? "DPDK must be installed." "$LINENO" 5
fi


fi


fi


Expand Down Expand Up @@ -17308,7 +17396,48 @@ if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
RTE_LIBS="$RTE_LIBS -Xlinker -lrte_pmd_i40e"
fi

RTE_LIBS="$RTE_LIBS -Xlinker -lrte_pmd_ixgbe -Xlinker -lrte_pmd_e1000"
as_ac_File=`$as_echo "ac_cv_file_${RTE_SDK}/${RTE_TARGET}/lib/librte_pmd_ixgbe.a" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${RTE_SDK}/${RTE_TARGET}/lib/librte_pmd_ixgbe.a" >&5
$as_echo_n "checking for ${RTE_SDK}/${RTE_TARGET}/lib/librte_pmd_ixgbe.a... " >&6; }
if eval \${$as_ac_File+:} false; then :
$as_echo_n "(cached) " >&6
else
test "$cross_compiling" = yes &&
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
if test -r "${RTE_SDK}/${RTE_TARGET}/lib/librte_pmd_ixgbe.a"; then
eval "$as_ac_File=yes"
else
eval "$as_ac_File=no"
fi
fi
eval ac_res=\$$as_ac_File
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
RTE_LIBS="$RTE_LIBS -Xlinker -lrte_pmd_ixgbe"
fi

as_ac_File=`$as_echo "ac_cv_file_${RTE_SDK}/${RTE_TARGET}/lib/librte_pmd_e1000.a" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${RTE_SDK}/${RTE_TARGET}/lib/librte_pmd_e1000.a" >&5
$as_echo_n "checking for ${RTE_SDK}/${RTE_TARGET}/lib/librte_pmd_e1000.a... " >&6; }
if eval \${$as_ac_File+:} false; then :
$as_echo_n "(cached) " >&6
else
test "$cross_compiling" = yes &&
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
if test -r "${RTE_SDK}/${RTE_TARGET}/lib/librte_pmd_e1000.a"; then
eval "$as_ac_File=yes"
else
eval "$as_ac_File=no"
fi
fi
eval ac_res=\$$as_ac_File
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
RTE_LIBS="$RTE_LIBS -Xlinker -lrte_pmd_e1000"
fi

as_ac_File=`$as_echo "ac_cv_file_${RTE_SDK}/${RTE_TARGET}/lib/librte_pmd_ring.a" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${RTE_SDK}/${RTE_TARGET}/lib/librte_pmd_ring.a" >&5
$as_echo_n "checking for ${RTE_SDK}/${RTE_TARGET}/lib/librte_pmd_ring.a... " >&6; }
Expand Down Expand Up @@ -17352,15 +17481,27 @@ if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
fi

RTE_LIBS="$RTE_LIBS -Xlinker --end-group -Xlinker --no-whole-archive"
CPPFLAGS_BKUP="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -I$RTE_SDK/$RTE_TARGET/include"
ac_fn_c_check_member "$LINENO" "struct rte_mbuf" "pkt" "ac_cv_member_struct_rte_mbuf_pkt" "#include \"rte_config.h\"
#include \"rte_mbuf.h\"
"
if test "x$ac_cv_member_struct_rte_mbuf_pkt" = xyes; then :
RTE_MBUF_HAS_PKT=1
fi

CPPFLAGS="$CPPFLAGS_BKUP"
else
RTE_SDK=
RTE_TARGET=
RTE_LIBS=
RTE_MBUF_HAS_PKT=
fi





# Check whether --enable-flowcache was given.
if test "${enable_flowcache+set}" = set; then :
enableval=$enable_flowcache; flowcache="$withval"
Expand All @@ -17374,6 +17515,19 @@ if test "X${flowcache}" != "Xno"; then

fi

SSE42_CPPFLAGS=''
# Check whether --enable-sse4.2 was given.
if test "${enable_sse4_2+set}" = set; then :
enableval=$enable_sse4_2; sse42="$enableval"
else
sse42="yes"
fi

if test "X${sse42}" != "Xno"; then
SSE42_CPPFLAGS="-msse4.2"
fi


ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
if test "x$ac_cv_func_strtold" = xyes; then :
$as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
Expand Down Expand Up @@ -20548,6 +20702,7 @@ fi


${MAKE} clean
${MAKE} generate

echo ""
echo "CC: '${CC}'"
Expand Down

0 comments on commit c5e358b

Please sign in to comment.