mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
31 lines
967 B
Diff
31 lines
967 B
Diff
--- a/include/linux/netdevice.h
|
|
+++ b/include/linux/netdevice.h
|
|
@@ -3318,6 +3318,7 @@ int do_xdp_generic(struct bpf_prog *xdp_prog, struct sk_buff *skb);
|
|
int netif_rx(struct sk_buff *skb);
|
|
int netif_rx_ni(struct sk_buff *skb);
|
|
int netif_receive_skb(struct sk_buff *skb);
|
|
+void netif_receive_skb_list(struct list_head *head);
|
|
gro_result_t napi_gro_receive(struct napi_struct *napi, struct sk_buff *skb);
|
|
void napi_gro_flush(struct napi_struct *napi, bool flush_old);
|
|
struct sk_buff *napi_get_frags(struct napi_struct *napi);
|
|
--- a/include/linux/skbuff.h
|
|
+++ b/include/linux/skbuff.h
|
|
@@ -1336,6 +1336,17 @@ static inline void skb_zcopy_abort(struct sk_buff *skb)
|
|
}
|
|
}
|
|
|
|
+static inline void skb_mark_no_on_list(struct sk_buff *skb)
|
|
+{
|
|
+ skb->next = NULL;
|
|
+}
|
|
+
|
|
+static inline void skb_list_del_init(struct sk_buff *skb)
|
|
+{
|
|
+ __list_del_entry(&skb->list);
|
|
+ skb_mark_no_on_list(skb);
|
|
+}
|
|
+
|
|
/**
|
|
* skb_queue_empty - check if a queue is empty
|
|
* @list: queue head
|