diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-07 09:11:45 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-08 01:39:05 +0400 |
commit | 5ee98591577aa63dbb9e78a0d142abc86b9063d0 (patch) | |
tree | 6efc37d50625ae672c863f7afae153b2f1c3db3a /net/ipv4/tcp.c | |
parent | 350e7805706e11fef0bda2ab4b5cd5a0881480b9 (diff) | |
download | linux-5ee98591577aa63dbb9e78a0d142abc86b9063d0.tar.xz |
net: minor: tcp: use tcp_skb_mss helper in tcp_tso_segment
We have the minimal inline helper tcp_skb_mss to access
skb_shinfo(skb)->gso_size, so also use it here to get mss.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index b5d4ad988053..6a1cf95abc98 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -2905,7 +2905,7 @@ struct sk_buff *tcp_tso_segment(struct sk_buff *skb, oldlen = (u16)~skb->len; __skb_pull(skb, thlen); - mss = skb_shinfo(skb)->gso_size; + mss = tcp_skb_mss(skb); if (unlikely(skb->len <= mss)) goto out; @@ -3071,7 +3071,7 @@ found: flush |= *(u32 *)((u8 *)th + i) ^ *(u32 *)((u8 *)th2 + i); - mss = skb_shinfo(p)->gso_size; + mss = tcp_skb_mss(p); flush |= (len - 1) >= mss; flush |= (ntohl(th2->seq) + skb_gro_len(p)) ^ ntohl(th->seq); |