提交 920572b7 编写于 作者: E Edward Cree 提交者: David S. Miller

net: core: unwrap skb list receive slightly further

Signed-off-by: NEdward Cree <ecree@solarflare.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e090bfb9
...@@ -223,6 +223,13 @@ DEFINE_EVENT(net_dev_rx_verbose_template, netif_receive_skb_entry, ...@@ -223,6 +223,13 @@ DEFINE_EVENT(net_dev_rx_verbose_template, netif_receive_skb_entry,
TP_ARGS(skb) TP_ARGS(skb)
); );
DEFINE_EVENT(net_dev_rx_verbose_template, netif_receive_skb_list_entry,
TP_PROTO(const struct sk_buff *skb),
TP_ARGS(skb)
);
DEFINE_EVENT(net_dev_rx_verbose_template, netif_rx_entry, DEFINE_EVENT(net_dev_rx_verbose_template, netif_rx_entry,
TP_PROTO(const struct sk_buff *skb), TP_PROTO(const struct sk_buff *skb),
......
...@@ -4920,8 +4920,10 @@ void netif_receive_skb_list(struct list_head *head) ...@@ -4920,8 +4920,10 @@ void netif_receive_skb_list(struct list_head *head)
{ {
struct sk_buff *skb, *next; struct sk_buff *skb, *next;
list_for_each_entry(skb, head, list)
trace_netif_receive_skb_list_entry(skb);
list_for_each_entry_safe(skb, next, head, list) list_for_each_entry_safe(skb, next, head, list)
netif_receive_skb(skb); netif_receive_skb_internal(skb);
} }
EXPORT_SYMBOL(netif_receive_skb_list); EXPORT_SYMBOL(netif_receive_skb_list);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册