Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74abc20c authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

tcp: cleanup static functions



tcp_fastopen_create_child() is static and should not be exported.

tcp4_gso_segment() and tcp6_gso_segment() should be static.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 59995370
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -221,7 +221,6 @@ static bool tcp_fastopen_create_child(struct sock *sk,
	WARN_ON(req->sk == NULL);
	WARN_ON(req->sk == NULL);
	return true;
	return true;
}
}
EXPORT_SYMBOL(tcp_fastopen_create_child);


static bool tcp_fastopen_queue_check(struct sock *sk)
static bool tcp_fastopen_queue_check(struct sock *sk)
{
{
+2 −2
Original line number Original line Diff line number Diff line
@@ -29,7 +29,7 @@ static void tcp_gso_tstamp(struct sk_buff *skb, unsigned int ts_seq,
	}
	}
}
}


struct sk_buff *tcp4_gso_segment(struct sk_buff *skb,
static struct sk_buff *tcp4_gso_segment(struct sk_buff *skb,
					netdev_features_t features)
					netdev_features_t features)
{
{
	if (!pskb_may_pull(skb, sizeof(struct tcphdr)))
	if (!pskb_may_pull(skb, sizeof(struct tcphdr)))
+2 −2
Original line number Original line Diff line number Diff line
@@ -41,7 +41,7 @@ static int tcp6_gro_complete(struct sk_buff *skb, int thoff)
	return tcp_gro_complete(skb);
	return tcp_gro_complete(skb);
}
}


struct sk_buff *tcp6_gso_segment(struct sk_buff *skb,
static struct sk_buff *tcp6_gso_segment(struct sk_buff *skb,
					netdev_features_t features)
					netdev_features_t features)
{
{
	struct tcphdr *th;
	struct tcphdr *th;