Xin Long beffc17b84 netfilter: nft_tunnel: no need to call htons() when dumping ports
commit cf3e204a1ca5442190018a317d9ec181b4639bd6 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-05 16:43:50 +01:00
..
2019-09-27 15:10:34 -07:00
2019-07-12 16:03:16 -07:00
2019-09-26 08:56:17 +02:00
2020-03-05 16:43:33 +01:00
2019-12-04 22:30:54 +01:00
2019-10-24 14:53:48 -07:00
2020-01-17 19:48:52 +01:00
2020-01-29 16:45:33 +01:00
2020-01-17 19:48:52 +01:00