tcp: rename tcp_tso_segment()
authorEric Dumazet <edumazet@google.com>
Fri, 18 Oct 2013 17:36:17 +0000 (10:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Oct 2013 17:38:39 +0000 (13:38 -0400)
Rename tcp_tso_segment() to tcp_gso_segment(), to better reflect
what is going on, and ease grep games.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_offload.c
net/ipv6/tcpv6_offload.c

index 1db3a016bff66cd66df8ad7a55132ae72905c61d..372dcccfeed0fdb320b3aa8bcb7de8112f235093 100644 (file)
@@ -1548,7 +1548,7 @@ extern struct request_sock_ops tcp6_request_sock_ops;
 
 void tcp_v4_destroy_sock(struct sock *sk);
 
-struct sk_buff *tcp_tso_segment(struct sk_buff *skb,
+struct sk_buff *tcp_gso_segment(struct sk_buff *skb,
                                netdev_features_t features);
 struct sk_buff **tcp_gro_receive(struct sk_buff **head, struct sk_buff *skb);
 int tcp_gro_complete(struct sk_buff *skb);
index 3a7525e6c08633dad9424bc1a9cb13bf26dfec1e..8e3113f46ec1a2d13d35fa8cc303c8a81fd07d03 100644 (file)
@@ -14,7 +14,7 @@
 #include <net/tcp.h>
 #include <net/protocol.h>
 
-struct sk_buff *tcp_tso_segment(struct sk_buff *skb,
+struct sk_buff *tcp_gso_segment(struct sk_buff *skb,
                                netdev_features_t features)
 {
        struct sk_buff *segs = ERR_PTR(-EINVAL);
@@ -139,7 +139,7 @@ struct sk_buff *tcp_tso_segment(struct sk_buff *skb,
 out:
        return segs;
 }
-EXPORT_SYMBOL(tcp_tso_segment);
+EXPORT_SYMBOL(tcp_gso_segment);
 
 struct sk_buff **tcp_gro_receive(struct sk_buff **head, struct sk_buff *skb)
 {
@@ -320,7 +320,7 @@ static int tcp4_gro_complete(struct sk_buff *skb)
 static const struct net_offload tcpv4_offload = {
        .callbacks = {
                .gso_send_check =       tcp_v4_gso_send_check,
-               .gso_segment    =       tcp_tso_segment,
+               .gso_segment    =       tcp_gso_segment,
                .gro_receive    =       tcp4_gro_receive,
                .gro_complete   =       tcp4_gro_complete,
        },
index 2ec6bf6a0aa002d6c21468d090767736161a5d1b..c1097c79890070e3d04517cecb7f0b263c0a4fc7 100644 (file)
@@ -83,7 +83,7 @@ static int tcp6_gro_complete(struct sk_buff *skb)
 static const struct net_offload tcpv6_offload = {
        .callbacks = {
                .gso_send_check =       tcp_v6_gso_send_check,
-               .gso_segment    =       tcp_tso_segment,
+               .gso_segment    =       tcp_gso_segment,
                .gro_receive    =       tcp6_gro_receive,
                .gro_complete   =       tcp6_gro_complete,
        },