You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
net: speedup sock_recv_ts_and_drops()
sock_recv_ts_and_drops() is fat and slow (~ 4% of cpu time on some profiles) We can test all socket flags at once to make fast path fast again. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
2185126412
commit
767dd03369
+2
-2
@@ -655,13 +655,13 @@ inline void sock_recv_drops(struct msghdr *msg, struct sock *sk, struct sk_buff
|
||||
sizeof(__u32), &skb->dropcount);
|
||||
}
|
||||
|
||||
void sock_recv_ts_and_drops(struct msghdr *msg, struct sock *sk,
|
||||
void __sock_recv_ts_and_drops(struct msghdr *msg, struct sock *sk,
|
||||
struct sk_buff *skb)
|
||||
{
|
||||
sock_recv_timestamp(msg, sk, skb);
|
||||
sock_recv_drops(msg, sk, skb);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(sock_recv_ts_and_drops);
|
||||
EXPORT_SYMBOL_GPL(__sock_recv_ts_and_drops);
|
||||
|
||||
static inline int __sock_recvmsg_nosec(struct kiocb *iocb, struct socket *sock,
|
||||
struct msghdr *msg, size_t size, int flags)
|
||||
|
||||
Reference in New Issue
Block a user