git: 129057d5fadd - stable/14 - sctp garbage collect sctp_update_ifn_mtu

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

URL: https://cgit.FreeBSD.org/src/commit/?id=129057d5fadd06e2c3644b60a8f9bc76868d2e51

commit 129057d5fadd06e2c3644b60a8f9bc76868d2e51
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2024-10-24 20:00:59 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2024-10-31 11:42:13 +0000

    sctp garbage collect sctp_update_ifn_mtu
    
    (cherry picked from commit ce5b5361d4d1b3868631baa6870ba6e1e6ec8330)
---
 sys/netinet/sctp_pcb.c | 11 -----------
 sys/netinet/sctp_pcb.h |  2 --
 2 files changed, 13 deletions(-)

diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c
index f3d477e2a9a8..3665b8e2f211 100644
--- a/sys/netinet/sctp_pcb.c
+++ b/sys/netinet/sctp_pcb.c
@@ -248,17 +248,6 @@ sctp_free_ifn(struct sctp_ifn *sctp_ifnp)
 	}
 }
 
-void
-sctp_update_ifn_mtu(uint32_t ifn_index, uint32_t mtu)
-{
-	struct sctp_ifn *sctp_ifnp;
-
-	sctp_ifnp = sctp_find_ifn((void *)NULL, ifn_index);
-	if (sctp_ifnp != NULL) {
-		sctp_ifnp->ifn_mtu = mtu;
-	}
-}
-
 void
 sctp_free_ifa(struct sctp_ifa *sctp_ifap)
 {
diff --git a/sys/netinet/sctp_pcb.h b/sys/netinet/sctp_pcb.h
index ed6a1c34ccf7..86c244c71544 100644
--- a/sys/netinet/sctp_pcb.h
+++ b/sys/netinet/sctp_pcb.h
@@ -506,8 +506,6 @@ sctp_add_addr_to_vrf(uint32_t vrfid,
     void *ifa, struct sockaddr *addr, uint32_t ifa_flags,
     int dynamic_add);
 
-void sctp_update_ifn_mtu(uint32_t ifn_index, uint32_t mtu);
-
 void sctp_free_ifa(struct sctp_ifa *sctp_ifap);
 
 void