diff options
author | Eric Dumazet <edumazet@google.com> | 2014-09-22 23:29:32 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-26 19:40:06 (GMT) |
commit | f4a775d14489a801a5b8b0540e23ab82e2703091 (patch) | |
tree | fea57ec3004b0586f0fc25f4cf3f0dc8631dcb5f /drivers/net/ethernet/freescale/fec.h | |
parent | aebac744932439b5f869869f07f406a9cced465d (diff) | |
download | linux-f4a775d14489a801a5b8b0540e23ab82e2703091.tar.xz |
net: introduce __skb_header_release()
While profiling TCP stack, I noticed one useless atomic operation
in tcp_sendmsg(), caused by skb_header_release().
It turns out all current skb_header_release() users have a fresh skb,
that no other user can see, so we can avoid one atomic operation.
Introduce __skb_header_release() to clearly document this.
This gave me a 1.5 % improvement on TCP_RR workload.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/fec.h')
0 files changed, 0 insertions, 0 deletions