Netdev List
 help / color / mirror / Atom feed
* [PATCH nf-next 0/4] netfilter: replace u_int*_t with kernel int types (batch 2)
@ 2026-06-24 18:40 Carlos Grillet
  2026-06-24 18:40 ` [PATCH nf-next 1/4] netfilter: nf_conntrack_sane: replace u_int16_t with u16 Carlos Grillet
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Carlos Grillet @ 2026-06-24 18:40 UTC (permalink / raw)
  To: Simon Horman, Julian Anastasov, David Ahern, Ido Schimmel,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Pablo Neira Ayuso, Florian Westphal, Phil Sutter
  Cc: netdev, lvs-devel, linux-kernel, netfilter-devel, coreteam

This patch series replaces POSIX u_int8_t/u_int16_t with the preferred
kernel types u8/u16 across several netfilter files and updates the
corresponding header definitions.

This continues the work started in:
https://lore.kernel.org/all/20260616182948.96865-1-carlos@carlosgrillet.me

No functional changes.

Carlos Grillet (4):
  netfilter: nf_conntrack_sane: replace u_int16_t with u16
  netfilter: nf_conntrack_h323_main: replace u_int8_t with u8
  netfilter: nf_conntrack_amanda: replace u_int16_t with u16
  netfilter: ip_vs_nfct: replace u_int8_t with u8

 include/net/ip_vs.h                    | 2 +-
 net/netfilter/ipvs/ip_vs_nfct.c        | 2 +-
 net/netfilter/nf_conntrack_amanda.c    | 2 +-
 net/netfilter/nf_conntrack_h323_main.c | 2 +-
 net/netfilter/nf_conntrack_sane.c      | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH nf-next 1/4] netfilter: nf_conntrack_sane: replace u_int16_t with u16
  2026-06-24 18:40 [PATCH nf-next 0/4] netfilter: replace u_int*_t with kernel int types (batch 2) Carlos Grillet
@ 2026-06-24 18:40 ` Carlos Grillet
  2026-06-24 21:00   ` Florian Westphal
  2026-06-24 18:40 ` [PATCH nf-next 2/4] netfilter: nf_conntrack_h323_main: replace u_int8_t with u8 Carlos Grillet
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Carlos Grillet @ 2026-06-24 18:40 UTC (permalink / raw)
  To: Pablo Neira Ayuso, Florian Westphal, Phil Sutter, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman
  Cc: netfilter-devel, coreteam, netdev, linux-kernel

Use preferred kernel integer type u16 instead of the POSIX u_int16_t
variant.

No functional change.

Signed-off-by: Carlos Grillet <carlos@carlosgrillet.me>
---
 net/netfilter/nf_conntrack_sane.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/netfilter/nf_conntrack_sane.c b/net/netfilter/nf_conntrack_sane.c
index 39085acf7a71..130b3e68090e 100644
--- a/net/netfilter/nf_conntrack_sane.c
+++ b/net/netfilter/nf_conntrack_sane.c
@@ -35,7 +35,7 @@ MODULE_DESCRIPTION("SANE connection tracking helper");
 MODULE_ALIAS_NFCT_HELPER(HELPER_NAME);
 
 #define MAX_PORTS 8
-static u_int16_t ports[MAX_PORTS];
+static u16 ports[MAX_PORTS];
 static unsigned int ports_c;
 module_param_array(ports, ushort, &ports_c, 0400);
 
-- 
2.54.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH nf-next 2/4] netfilter: nf_conntrack_h323_main: replace u_int8_t with u8
  2026-06-24 18:40 [PATCH nf-next 0/4] netfilter: replace u_int*_t with kernel int types (batch 2) Carlos Grillet
  2026-06-24 18:40 ` [PATCH nf-next 1/4] netfilter: nf_conntrack_sane: replace u_int16_t with u16 Carlos Grillet
@ 2026-06-24 18:40 ` Carlos Grillet
  2026-06-24 18:40 ` [PATCH nf-next 3/4] netfilter: nf_conntrack_amanda: replace u_int16_t with u16 Carlos Grillet
  2026-06-24 18:40 ` [PATCH nf-next 4/4] netfilter: ip_vs_nfct: replace u_int8_t with u8 Carlos Grillet
  3 siblings, 0 replies; 6+ messages in thread
From: Carlos Grillet @ 2026-06-24 18:40 UTC (permalink / raw)
  To: Pablo Neira Ayuso, Florian Westphal, Phil Sutter, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman
  Cc: netfilter-devel, coreteam, netdev, linux-kernel

Use preferred kernel integer type u8 instead of the POSIX u_int8_t
variant.

No functional change.

Signed-off-by: Carlos Grillet <carlos@carlosgrillet.me>
---
 net/netfilter/nf_conntrack_h323_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/netfilter/nf_conntrack_h323_main.c b/net/netfilter/nf_conntrack_h323_main.c
index 7f189dceb3c4..68ecaf0daf95 100644
--- a/net/netfilter/nf_conntrack_h323_main.c
+++ b/net/netfilter/nf_conntrack_h323_main.c
@@ -671,7 +671,7 @@ static int expect_h245(struct sk_buff *skb, struct nf_conn *ct,
 static int callforward_do_filter(struct net *net,
 				 const union nf_inet_addr *src,
 				 const union nf_inet_addr *dst,
-				 u_int8_t family)
+				 u8 family)
 {
 	int ret = 0;
 
-- 
2.54.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH nf-next 3/4] netfilter: nf_conntrack_amanda: replace u_int16_t with u16
  2026-06-24 18:40 [PATCH nf-next 0/4] netfilter: replace u_int*_t with kernel int types (batch 2) Carlos Grillet
  2026-06-24 18:40 ` [PATCH nf-next 1/4] netfilter: nf_conntrack_sane: replace u_int16_t with u16 Carlos Grillet
  2026-06-24 18:40 ` [PATCH nf-next 2/4] netfilter: nf_conntrack_h323_main: replace u_int8_t with u8 Carlos Grillet
@ 2026-06-24 18:40 ` Carlos Grillet
  2026-06-24 18:40 ` [PATCH nf-next 4/4] netfilter: ip_vs_nfct: replace u_int8_t with u8 Carlos Grillet
  3 siblings, 0 replies; 6+ messages in thread
From: Carlos Grillet @ 2026-06-24 18:40 UTC (permalink / raw)
  To: Pablo Neira Ayuso, Florian Westphal, Phil Sutter, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman
  Cc: netfilter-devel, coreteam, netdev, linux-kernel

Use preferred kernel integer type u16 instead of the POSIX u_int16_t
variant.

No functional change.

Signed-off-by: Carlos Grillet <carlos@carlosgrillet.me>
---
 net/netfilter/nf_conntrack_amanda.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/netfilter/nf_conntrack_amanda.c b/net/netfilter/nf_conntrack_amanda.c
index ddafbdfc96dc..f10ac2c49f4b 100644
--- a/net/netfilter/nf_conntrack_amanda.c
+++ b/net/netfilter/nf_conntrack_amanda.c
@@ -89,7 +89,7 @@ static int amanda_help(struct sk_buff *skb,
 	struct nf_conntrack_tuple *tuple;
 	unsigned int dataoff, start, stop, off, i;
 	char pbuf[sizeof("65535")], *tmp;
-	u_int16_t len;
+	u16 len;
 	__be16 port;
 	int ret = NF_ACCEPT;
 	nf_nat_amanda_hook_fn *nf_nat_amanda;
-- 
2.54.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH nf-next 4/4] netfilter: ip_vs_nfct: replace u_int8_t with u8
  2026-06-24 18:40 [PATCH nf-next 0/4] netfilter: replace u_int*_t with kernel int types (batch 2) Carlos Grillet
                   ` (2 preceding siblings ...)
  2026-06-24 18:40 ` [PATCH nf-next 3/4] netfilter: nf_conntrack_amanda: replace u_int16_t with u16 Carlos Grillet
@ 2026-06-24 18:40 ` Carlos Grillet
  3 siblings, 0 replies; 6+ messages in thread
From: Carlos Grillet @ 2026-06-24 18:40 UTC (permalink / raw)
  To: David Ahern, Ido Schimmel, Simon Horman, Julian Anastasov,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Pablo Neira Ayuso, Florian Westphal, Phil Sutter
  Cc: netdev, lvs-devel, linux-kernel, netfilter-devel, coreteam

Use preferred kernel integer type u8 instead of the POSIX u_int8_t
variant and update header to match definition.

No functional change.

Signed-off-by: Carlos Grillet <carlos@carlosgrillet.me>
---
 include/net/ip_vs.h             | 2 +-
 net/netfilter/ipvs/ip_vs_nfct.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index 49297fec448a..ed2e9bc1bb4e 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -2123,7 +2123,7 @@ void ip_vs_update_conntrack(struct sk_buff *skb, struct ip_vs_conn *cp,
 			    int outin);
 int ip_vs_confirm_conntrack(struct sk_buff *skb);
 void ip_vs_nfct_expect_related(struct sk_buff *skb, struct nf_conn *ct,
-			       struct ip_vs_conn *cp, u_int8_t proto,
+			       struct ip_vs_conn *cp, u8 proto,
 			       const __be16 port, int from_rs);
 void ip_vs_conn_drop_conntrack(struct ip_vs_conn *cp);
 
diff --git a/net/netfilter/ipvs/ip_vs_nfct.c b/net/netfilter/ipvs/ip_vs_nfct.c
index 81974f69e5bb..347185fd0c8c 100644
--- a/net/netfilter/ipvs/ip_vs_nfct.c
+++ b/net/netfilter/ipvs/ip_vs_nfct.c
@@ -208,7 +208,7 @@ static void ip_vs_nfct_expect_callback(struct nf_conn *ct,
  * Use port 0 to expect connection from any port.
  */
 void ip_vs_nfct_expect_related(struct sk_buff *skb, struct nf_conn *ct,
-			       struct ip_vs_conn *cp, u_int8_t proto,
+			       struct ip_vs_conn *cp, u8 proto,
 			       const __be16 port, int from_rs)
 {
 	struct nf_conntrack_expect *exp;
-- 
2.54.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH nf-next 1/4] netfilter: nf_conntrack_sane: replace u_int16_t with u16
  2026-06-24 18:40 ` [PATCH nf-next 1/4] netfilter: nf_conntrack_sane: replace u_int16_t with u16 Carlos Grillet
@ 2026-06-24 21:00   ` Florian Westphal
  0 siblings, 0 replies; 6+ messages in thread
From: Florian Westphal @ 2026-06-24 21:00 UTC (permalink / raw)
  To: Carlos Grillet
  Cc: Pablo Neira Ayuso, Phil Sutter, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Simon Horman, netfilter-devel,
	coreteam, netdev, linux-kernel

Carlos Grillet <carlos@carlosgrillet.me> wrote:
> Use preferred kernel integer type u16 instead of the POSIX u_int16_t
> variant.
> 
> No functional change.
> 
> Signed-off-by: Carlos Grillet <carlos@carlosgrillet.me>
> ---
>  net/netfilter/nf_conntrack_sane.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/net/netfilter/nf_conntrack_sane.c b/net/netfilter/nf_conntrack_sane.c
> index 39085acf7a71..130b3e68090e 100644
> --- a/net/netfilter/nf_conntrack_sane.c
> +++ b/net/netfilter/nf_conntrack_sane.c
> @@ -35,7 +35,7 @@ MODULE_DESCRIPTION("SANE connection tracking helper");
>  MODULE_ALIAS_NFCT_HELPER(HELPER_NAME);
>  
>  #define MAX_PORTS 8
> -static u_int16_t ports[MAX_PORTS];
> +static u16 ports[MAX_PORTS];

These port variables are useless and will be removed soon.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-06-24 21:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-24 18:40 [PATCH nf-next 0/4] netfilter: replace u_int*_t with kernel int types (batch 2) Carlos Grillet
2026-06-24 18:40 ` [PATCH nf-next 1/4] netfilter: nf_conntrack_sane: replace u_int16_t with u16 Carlos Grillet
2026-06-24 21:00   ` Florian Westphal
2026-06-24 18:40 ` [PATCH nf-next 2/4] netfilter: nf_conntrack_h323_main: replace u_int8_t with u8 Carlos Grillet
2026-06-24 18:40 ` [PATCH nf-next 3/4] netfilter: nf_conntrack_amanda: replace u_int16_t with u16 Carlos Grillet
2026-06-24 18:40 ` [PATCH nf-next 4/4] netfilter: ip_vs_nfct: replace u_int8_t with u8 Carlos Grillet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox