netfilter: move br_nf_check_hbh_len to utils
authorXin Long <lucien.xin@gmail.com>
Tue, 7 Mar 2023 21:31:30 +0000 (16:31 -0500)
committerFlorian Westphal <fw@strlen.de>
Wed, 8 Mar 2023 13:25:40 +0000 (14:25 +0100)
commit28e144cf5f72ce1c304571bc448e37c27495903a
treecc69fb3a89b83153194ad4c48f837b953dfc7119
parent0b24bd71a6c0214aaa2115302dd6598b89d2fa8a
netfilter: move br_nf_check_hbh_len to utils

Rename br_nf_check_hbh_len() to nf_ip6_check_hbh_len() and move it
to netfilter utils, so that it can be used by other modules, like
ovs and tc.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
include/linux/netfilter_ipv6.h
net/bridge/br_netfilter_ipv6.c
net/netfilter/utils.c