netfilter: nat: remove nf_nat_l3proto.h and nf_nat_core.h
authorFlorian Westphal <fw@strlen.de>
Tue, 19 Feb 2019 16:38:27 +0000 (17:38 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 27 Feb 2019 09:54:08 +0000 (10:54 +0100)
commitd2c5c103b1337f590b7edf1509a6e294bdf22402
tree99e0c45446ce351b867cb78f3bb964e3365fbb8a
parentd6c4c8ffb5e54b0516742f3386ea9e329e019455
netfilter: nat: remove nf_nat_l3proto.h and nf_nat_core.h

The l3proto name is gone, its header file is the last trace.
While at it, also remove nf_nat_core.h, its very small and all users
include nf_nat.h too.

before:
   text    data     bss     dec     hex filename
  22948    1612    4136   28696    7018 nf_nat.ko

after removal of l3proto register/unregister functions:
   text    data     bss     dec     hex filename
  22196    1516    4136   27848    6cc8 nf_nat.ko

checkpatch complains about overly long lines, but line breaks
do not make things more readable and the line length gets smaller
here, not larger.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
15 files changed:
include/net/netfilter/nf_nat.h
include/net/netfilter/nf_nat_core.h [deleted file]
include/net/netfilter/nf_nat_l3proto.h [deleted file]
net/ipv4/netfilter/iptable_nat.c
net/ipv4/netfilter/nft_chain_nat_ipv4.c
net/ipv6/netfilter/ip6table_nat.c
net/ipv6/netfilter/nft_chain_nat_ipv6.c
net/netfilter/nf_conntrack_core.c
net/netfilter/nf_conntrack_netlink.c
net/netfilter/nf_nat_core.c
net/netfilter/nf_nat_helper.c
net/netfilter/nf_nat_proto.c
net/netfilter/nft_nat.c
net/netfilter/xt_nat.c
net/openvswitch/conntrack.c