]> git.baikalelectronics.ru Git - kernel.git/commit
skbuff: increase verbosity when dumping skb data
authorWillem de Bruijn <willemb@google.com>
Sun, 7 Jul 2019 09:51:55 +0000 (05:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jul 2019 02:38:46 +0000 (19:38 -0700)
commit74fd0b22ca13c3cb2ca65df047ae301de9b59196
tree7e90b2293b4625453e05c8e513bcc9af53c0cad6
parent0e86d7cdae9fc4ad0f27f5b018da62a44c98373e
skbuff: increase verbosity when dumping skb data

skb_warn_bad_offload and netdev_rx_csum_fault trigger on hard to debug
issues. Dump more state and the header.

Optionally dump the entire packet and linear segment. This is required
to debug checksum bugs that may include bytes past skb_tail_pointer().

Both call sites call this function inside a net_ratelimit() block.
Limit full packet log further to a hard limit of can_dump_full (5).

Based on an earlier patch by Cong Wang, see link below.

Changes v1 -> v2
  - dump frag_list only on full_pkt

Link: https://patchwork.ozlabs.org/patch/1000841/
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/dev.c
net/core/skbuff.c