diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-07 01:11:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-07 17:39:05 -0400 |
commit | 28850dc7c71da9d0c0e39246e9ff6913f41f8d0a (patch) | |
tree | 1ff43aef62041c487d4175af44e73da90bb70ce9 /include/net/tcp.h | |
parent | 5ee98591577aa63dbb9e78a0d142abc86b9063d0 (diff) |
net: tcp: move GRO/GSO functions to tcp_offload
Would be good to make things explicit and move those functions to
a new file called tcp_offload.c, thus make this similar to tcpv6_offload.c.
While moving all related functions into tcp_offload.c, we can also
make some of them static, since they are only used there. Also, add
an explicit registration function.
Suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index bf1cc3dced5e..0d637e9403a5 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1541,15 +1541,14 @@ extern struct request_sock_ops tcp6_request_sock_ops; | |||
1541 | 1541 | ||
1542 | extern void tcp_v4_destroy_sock(struct sock *sk); | 1542 | extern void tcp_v4_destroy_sock(struct sock *sk); |
1543 | 1543 | ||
1544 | extern int tcp_v4_gso_send_check(struct sk_buff *skb); | ||
1545 | extern struct sk_buff *tcp_tso_segment(struct sk_buff *skb, | 1544 | extern struct sk_buff *tcp_tso_segment(struct sk_buff *skb, |
1546 | netdev_features_t features); | 1545 | netdev_features_t features); |
1547 | extern struct sk_buff **tcp_gro_receive(struct sk_buff **head, | 1546 | extern struct sk_buff **tcp_gro_receive(struct sk_buff **head, |
1548 | struct sk_buff *skb); | 1547 | struct sk_buff *skb); |
1549 | extern struct sk_buff **tcp4_gro_receive(struct sk_buff **head, | ||
1550 | struct sk_buff *skb); | ||
1551 | extern int tcp_gro_complete(struct sk_buff *skb); | 1548 | extern int tcp_gro_complete(struct sk_buff *skb); |
1552 | extern int tcp4_gro_complete(struct sk_buff *skb); | 1549 | |
1550 | extern void __tcp_v4_send_check(struct sk_buff *skb, __be32 saddr, | ||
1551 | __be32 daddr); | ||
1553 | 1552 | ||
1554 | #ifdef CONFIG_PROC_FS | 1553 | #ifdef CONFIG_PROC_FS |
1555 | extern int tcp4_proc_init(void); | 1554 | extern int tcp4_proc_init(void); |
@@ -1584,6 +1583,8 @@ struct tcp_request_sock_ops { | |||
1584 | #endif | 1583 | #endif |
1585 | }; | 1584 | }; |
1586 | 1585 | ||
1586 | extern int tcpv4_offload_init(void); | ||
1587 | |||
1587 | extern void tcp_v4_init(void); | 1588 | extern void tcp_v4_init(void); |
1588 | extern void tcp_init(void); | 1589 | extern void tcp_init(void); |
1589 | 1590 | ||