hw flow offload - nft crosscompile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

we want to try out hardware-offloading posted [1]
but we cannot apply offloading flag in nftables ruleset [2]
we found your patch for supporting flag in "normal chain" [3] but not for flowtable

as my nft in debian buster is only 0.9.0 i tried to compile newest version...

i tried natively and crosscompile, both ended in LD errors on building nft

  CCLD     nft
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: ./.libs/libnftables.so: undefined reference to `mnl_attr_nest_start'
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: ./.libs/libnftables.so: undefined
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: ./.libs/libnftables.so: undefined reference to `mnl_socket_close'
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: ./.libs/libnftables.so: undefined reference to `mnl_attr_type_valid'
....

these are my steps on crosscompile:

git clone https://git.netfilter.org/libmnl
git clone git://git.netfilter.org/libnftnl
git clone git://git.netfilter.org/nftables

#build libmnl for armhf
cd libmnl
sh autogen.sh
mkdir install
sh configure --host=arm-linux-gnueabihf --prefix=$(pwd)/install
make
make install

#build libnftnl
cd ../libnftnl/
sh autogen.sh
mkdir install
./configure --host=arm-linux-gnueabihf --prefix=$(pwd)/install LIBMNL_LIBS=../libmnl/install/lib LIBMNL_CFLAGS=../libmnl/include/
make
make install

#build nft
cd ../nftables/
sh autogen.sh
BASE="$(pwd)/../"; sh configure --host=arm-linux-gnueabihf --prefix=$(pwd)/install PKG_CONFIG_PATH="$BASE/libnftnl/install/lib/pkgconfig:$BASE/libmnl/install/lib/pkgconfig" LIBMNL_LIBS=$BASE/libmnl/install/lib LIBMNL_CFLAGS=$BASE/libmnl/include/ --with-mini-gmp --without-cli LDFLAGS="-L$BASE/libmnl/install/lib -L$BASE/libnftnl/install/lib" --enable-static
make

tried to pass lib-dirs with LDFLAGS/LD_LIBRARY_PATH and --libdir but no luck

is nft usable without libreadline (--without-cli)?

regards Frank

[1] https://patchwork.ozlabs.org/project/netfilter-devel/list/?series=233310&archive=both&state=*
[2] https://lwn.net/Articles/804384/
[3] http://git.netfilter.org/nftables/commit/?id=d42bd56cff1a22301703d2b9d6d6fc937ea7cfbd





[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux