Skip to content

Commit

Permalink
tcp: make tcp_lro_flush() static
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tuexen committed Sep 5, 2024
1 parent 0b45d36 commit e06cf0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sys/netinet/tcp_lro.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -1104,7 +1105,7 @@ tcp_lro_condense(struct lro_ctrl *lc, struct lro_entry *le)
}
}

void
static void
tcp_lro_flush(struct lro_ctrl *lc, struct lro_entry *le)
{

Expand Down
1 change: 0 additions & 1 deletion sys/netinet/tcp_lro.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e06cf0f

Please sign in to comment.