summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs_dev.c
diff options
context:
space:
mode:
authorEric Dumazet2016-05-13 18:16:40 +0200
committerDavid S. Miller2016-05-16 19:46:23 +0200
commitea1627c20c3462168a087ccecc69084b55b9c0b2 (patch)
treee0b21e3af57979d1f5b1faf718582aaa4a6566b0 /fs/nfs/pnfs_dev.c
parentnetlink: kill nla_put_u64() (diff)
downloadkernel-qcow2-linux-ea1627c20c3462168a087ccecc69084b55b9c0b2.tar.gz
kernel-qcow2-linux-ea1627c20c3462168a087ccecc69084b55b9c0b2.tar.xz
kernel-qcow2-linux-ea1627c20c3462168a087ccecc69084b55b9c0b2.zip
tcp: minor optimizations around tcp_hdr() usage
tcp_hdr() is slightly more expensive than using skb->data in contexts where we know they point to the same byte. In receive path, tcp_v4_rcv() and tcp_v6_rcv() are in this situation, as tcp header has not been pulled yet. In output path, the same can be said when we just pushed the tcp header in the skb, in tcp_transmit_skb() and tcp_make_synack() Also factorize the two checks for tcb->tcp_flags & TCPHDR_SYN in tcp_transmit_skb() and pass tcp header pointer to tcp_ecn_send(), so that compiler can further optimize and avoid a reload. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/nfs/pnfs_dev.c')
0 files changed, 0 insertions, 0 deletions