Aw: hw flow offload - nft crosscompile

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

 



Hi,

i got nftables compiled

- on native it looks like my PKG_CONFIG_PATH / LDFLAGS were not used

this is the fixed version:

./configure --enable-static \
        --prefix="$PWD/install" \
        PKG_CONFIG_PATH="${LIBNFTNL_PATH}/install/lib/pkgconfig" \
        LDFLAGS="-L${LIBNFTNL_PATH}/install/lib/"

- on crosscompile it looks like the addditional vars breaking linking process

this is the fixed configure-line:

BASE="$(pwd)/..";
./configure --host=arm-linux-gnueabihf --prefix=$(pwd)/install PKG_CONFIG_PATH="$BASE/libnftnl/install/lib/pkgconfig:$BASE/libmnl/install/lib/pkgconfig" --with-mini-gmp --without-cli

(have not yet tested the crosscompiled on to find out it works or not, maybe broken because of --without-cli)

regarding the "flags offload" in flowtable, i made a basic patch to parser reusing the flags_spec from chain (flowtable seems like only a "renamed" chain). I'm not sure if it is enough, but nft-command now accepts the flags inside the flowtable

diff --git a/src/parser_bison.y b/src/parser_bison.y
index 08a2599e..e5607cf7 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -1993,6 +1993,7 @@ flowtable_block_alloc	:	/* empty */
 flowtable_block		:	/* empty */	{ $$ = $<flowtable>-1; }
 			|	flowtable_block	common_block
 			|	flowtable_block	stmt_separator
+			|	flowtable_block	flags_spec	stmt_separator
 			|	flowtable_block	HOOK		STRING	prio_spec	stmt_separator
 			{
 				$$->hook.loc = @3;

regards Frank



[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