netfilter: nft_tunnel: no need to call htons() when dumping ports
authorXin Long <lucien.xin@gmail.com>
Fri, 13 Dec 2019 08:53:05 +0000 (16:53 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 17 Dec 2019 21:58:25 +0000 (22:58 +0100)
commitcf3e204a1ca5442190018a317d9ec181b4639bd6
treeda11f6479d027c21907fd02a9c33af44b47ce868
parent2f5e70c8ce47396bfa8f5c437574b569c02597bb
netfilter: nft_tunnel: no need to call htons() when dumping ports

info->key.tp_src and tp_dst are __be16, when using nla_put_be16()
to dump them, htons() is not needed, so remove it in this patch.

Fixes: af308b94a2a4 ("netfilter: nf_tables: add tunnel support")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_tunnel.c