mbox series

[v7,0/3] netfilter: x_tables: Merge xt_*.c files

Message ID 20250105233157.6814-1-egyszeregy@freemail.hu (mailing list archive)
Headers show
Series netfilter: x_tables: Merge xt_*.c files | expand

Message

Szőke Benjamin Jan. 5, 2025, 11:31 p.m. UTC
From: Benjamin Szőke <egyszeregy@freemail.hu>

Merge and refactoring xt_*.h, ipt_*.h and ip6t_*.h header and xt_*.c
source files, which has same upper and lower case name format. Combining
these modules should provide some decent code size and memory savings.

Benjamin Szőke (3):
  netfilter: x_tables: Merge xt_*.h and ipt_*.h files which has same
    name.
  netfilter: x_tables: Merge xt_*.c files which has same name.
  netfilter: x_tables: Adjust code style for xt_*.h/c and ipt_*.h files.

 include/uapi/linux/netfilter/xt_CONNMARK.h  |   8 +-
 include/uapi/linux/netfilter/xt_DSCP.h      |  22 +-
 include/uapi/linux/netfilter/xt_MARK.h      |   8 +-
 include/uapi/linux/netfilter/xt_RATEEST.h   |  12 +-
 include/uapi/linux/netfilter/xt_TCPMSS.h    |  14 +-
 include/uapi/linux/netfilter/xt_connmark.h  |   7 +-
 include/uapi/linux/netfilter/xt_dscp.h      |  26 +-
 include/uapi/linux/netfilter/xt_mark.h      |   6 +-
 include/uapi/linux/netfilter/xt_rateest.h   |  19 +-
 include/uapi/linux/netfilter/xt_tcpmss.h    |  16 +-
 include/uapi/linux/netfilter_ipv4/ipt_ECN.h |  29 +-
 include/uapi/linux/netfilter_ipv4/ipt_TTL.h |  25 +-
 include/uapi/linux/netfilter_ipv4/ipt_ecn.h |  26 ++
 include/uapi/linux/netfilter_ipv4/ipt_ttl.h |  26 +-
 include/uapi/linux/netfilter_ipv6/ip6t_HL.h |  26 +-
 include/uapi/linux/netfilter_ipv6/ip6t_hl.h |  25 +-
 net/ipv4/netfilter/ipt_ECN.c                |   2 +-
 net/netfilter/Kconfig                       |  84 +++++
 net/netfilter/Makefile                      |  12 +-
 net/netfilter/xt_DSCP.c                     | 161 ---------
 net/netfilter/xt_HL.c                       | 159 ---------
 net/netfilter/xt_RATEEST.c                  | 248 --------------
 net/netfilter/xt_TCPMSS.c                   | 345 -------------------
 net/netfilter/xt_dscp.c                     | 160 ++++++++-
 net/netfilter/xt_hl.c                       | 160 ++++++++-
 net/netfilter/xt_rateest.c                  | 255 +++++++++++++-
 net/netfilter/xt_tcpmss.c                   | 353 +++++++++++++++++++-
 27 files changed, 1120 insertions(+), 1114 deletions(-)
 delete mode 100644 net/netfilter/xt_DSCP.c
 delete mode 100644 net/netfilter/xt_HL.c
 delete mode 100644 net/netfilter/xt_RATEEST.c
 delete mode 100644 net/netfilter/xt_TCPMSS.c