[...]
net/netfilter/nft_tunnel.c:117:25: expected unsigned int [unsigned] [usertype] flags
net/netfilter/nft_tunnel.c:117:25: got restricted __be16 [usertype] <noident>
[...]
net/netfilter/nft_tunnel.c:246:33: expected restricted __be16 [addressable] [assigned] [usertype] tp_dst
net/netfilter/nft_tunnel.c:246:33: got int
Fixes:
af308b94a2a4 ("netfilter: nf_tables: add tunnel support")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
struct erspan_metadata erspan;
} u;
u32 len;
- u32 flags;
+ __be16 flags;
};
struct nft_tunnel_obj {
}
if (tb[NFTA_TUNNEL_KEY_SPORT]) {
- info.key.tp_src =
- ntohs(nla_get_be16(tb[NFTA_TUNNEL_KEY_SPORT]));
+ info.key.tp_src = nla_get_be16(tb[NFTA_TUNNEL_KEY_SPORT]);
}
if (tb[NFTA_TUNNEL_KEY_DPORT]) {
- info.key.tp_dst =
- ntohs(nla_get_be16(tb[NFTA_TUNNEL_KEY_DPORT]));
+ info.key.tp_dst = nla_get_be16(tb[NFTA_TUNNEL_KEY_DPORT]);
}
if (tb[NFTA_TUNNEL_KEY_FLAGS]) {