Revert "selinux: add a skb_owned_by() hook"
This reverts commitca10b9e9a8
. No longer needed after commiteb8895debe
("tcp: tcp_make_synack() should use sock_wmalloc") When under SYNFLOOD, we build lot of SYNACK and hit false sharing because of multiple modifications done on sk_listener->sk_wmem_alloc Since tcp_make_synack() uses sock_wmalloc(), there is no need to call skb_set_owner_w() again, as this adds two atomic operations. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
f6877fcf22
commit
d3593b5cef
@@ -2926,7 +2926,6 @@ struct sk_buff *tcp_make_synack(struct sock *sk, struct dst_entry *dst,
|
||||
skb_reserve(skb, MAX_TCP_HEADER);
|
||||
|
||||
skb_dst_set(skb, dst);
|
||||
security_skb_owned_by(skb, sk);
|
||||
|
||||
mss = dst_metric_advmss(dst);
|
||||
if (tp->rx_opt.user_mss && tp->rx_opt.user_mss < mss)
|
||||
|
Reference in New Issue
Block a user