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
@@ -1359,11 +1359,6 @@ int security_tun_dev_open(void *security)
|
||||
}
|
||||
EXPORT_SYMBOL(security_tun_dev_open);
|
||||
|
||||
void security_skb_owned_by(struct sk_buff *skb, struct sock *sk)
|
||||
{
|
||||
security_ops->skb_owned_by(skb, sk);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_SECURITY_NETWORK */
|
||||
|
||||
#ifdef CONFIG_SECURITY_NETWORK_XFRM
|
||||
|
Reference in New Issue
Block a user