|
@@ -2081,6 +2081,12 @@ static inline int sock_intr_errno(long timeo)
|
|
|
#define sock_skb_cb_check_size(size) \
|
|
|
BUILD_BUG_ON((size) > FIELD_SIZEOF(struct sk_buff, cb))
|
|
|
|
|
|
+static inline void
|
|
|
+sock_skb_set_dropcount(const struct sock *sk, struct sk_buff *skb)
|
|
|
+{
|
|
|
+ skb->dropcount = atomic_read(&sk->sk_drops);
|
|
|
+}
|
|
|
+
|
|
|
void __sock_recv_timestamp(struct msghdr *msg, struct sock *sk,
|
|
|
struct sk_buff *skb);
|
|
|
void __sock_recv_wifi_status(struct msghdr *msg, struct sock *sk,
|