git: 8df12a277f09 - stable/14 - tcp: make tcp_lro_flush() static

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Thu, 31 Oct 2024 13:43:00 UTC
The branch stable/14 has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=8df12a277f0912805c5f54a96a94e29c30a0efa6

commit 8df12a277f0912805c5f54a96a94e29c30a0efa6
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2024-09-05 15:44:33 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2024-10-31 11:20:35 +0000

    tcp: make tcp_lro_flush() static
    
    tcp_lro_flush() is not used anymore outside of tcp_lro.c. Therefore
    make it static.
    
    Reviewed by:            rscheff, glebius, Peter Lei
    Sponsored by:           Netflix, Inc.
    Differential Revision:  https://reviews.freebsd.org/D46435
    
    (cherry picked from commit e06cf0fc5dd626c34acdef308b696b4995371a4b)
---
 sys/netinet/tcp_lro.c | 3 ++-
 sys/netinet/tcp_lro.h | 1 -
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/netinet/tcp_lro.c b/sys/netinet/tcp_lro.c
index 906e01257a04..10afed17bf3b 100644
--- a/sys/netinet/tcp_lro.c
+++ b/sys/netinet/tcp_lro.c
@@ -83,6 +83,7 @@ static MALLOC_DEFINE(M_LRO, "LRO", "LRO control structures");
 static void	tcp_lro_rx_done(struct lro_ctrl *lc);
 static int	tcp_lro_rx_common(struct lro_ctrl *lc, struct mbuf *m,
 		    uint32_t csum, bool use_hash);
+static void	tcp_lro_flush(struct lro_ctrl *lc, struct lro_entry *le);
 
 SYSCTL_NODE(_net_inet_tcp, OID_AUTO, lro,  CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
     "TCP LRO");
@@ -1104,7 +1105,7 @@ again:
 	}
 }
 
-void
+static void
 tcp_lro_flush(struct lro_ctrl *lc, struct lro_entry *le)
 {
 
diff --git a/sys/netinet/tcp_lro.h b/sys/netinet/tcp_lro.h
index b4b5e3f811e4..a94eca665eb5 100644
--- a/sys/netinet/tcp_lro.h
+++ b/sys/netinet/tcp_lro.h
@@ -216,7 +216,6 @@ int tcp_lro_init(struct lro_ctrl *);
 int tcp_lro_init_args(struct lro_ctrl *, struct ifnet *, unsigned, unsigned);
 void tcp_lro_free(struct lro_ctrl *);
 void tcp_lro_flush_inactive(struct lro_ctrl *, const struct timeval *);
-void tcp_lro_flush(struct lro_ctrl *, struct lro_entry *);
 void tcp_lro_flush_all(struct lro_ctrl *);
 extern int (*tcp_lro_flush_tcphpts)(struct lro_ctrl *, struct lro_entry *);
 int tcp_lro_rx(struct lro_ctrl *, struct mbuf *, uint32_t);