]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: gso: send_check() & segment() cleanups
authorEric Dumazet <edumazet@google.com>
Fri, 18 Oct 2013 20:13:27 +0000 (13:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Oct 2013 23:11:56 +0000 (19:11 -0400)
commit738271e24024b50eac8057cb168415633357018e
tree773d64817eccc3a2453a6804e5540bcbb6b6907c
parent58eef1fd2817bbbb01c0784321b16c620f741acb
ipv4: gso: send_check() & segment() cleanups

inet_gso_segment() and inet_gso_send_check() are called by
skb_mac_gso_segment() under rcu lock, no need to use
rcu_read_lock() / rcu_read_unlock()

Avoid calling ip_hdr() twice per function.

We can use ip_send_check() helper.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c