Skip to content

Commit

Permalink
net: core: unwrap skb list receive slightly further
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Edward Cree authored and David S. Miller committed Jul 4, 2018
1 parent e090bfb commit 920572b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions include/trace/events/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,13 @@ DEFINE_EVENT(net_dev_rx_verbose_template, netif_receive_skb_entry,
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,

TP_PROTO(const struct sk_buff *skb),
Expand Down
4 changes: 3 additions & 1 deletion net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -4920,8 +4920,10 @@ void netif_receive_skb_list(struct list_head *head)
{
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)
netif_receive_skb(skb);
netif_receive_skb_internal(skb);
}
EXPORT_SYMBOL(netif_receive_skb_list);

Expand Down

0 comments on commit 920572b

Please sign in to comment.