]> git.baikalelectronics.ru Git - kernel.git/commit
net: dump more useful information in netdev_rx_csum_fault()
authorCong Wang <xiyou.wangcong@gmail.com>
Mon, 12 Nov 2018 22:47:18 +0000 (14:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Nov 2018 19:37:04 +0000 (11:37 -0800)
commit9a2e913fcf1b4947a4868ce835e237af4b9e7693
tree01d945a82db6dbeaab6e624132f3a84f8628ed61
parent09ae7828d5b4e2c999f5280f5e0ecd1183f3b90b
net: dump more useful information in netdev_rx_csum_fault()

Currently netdev_rx_csum_fault() only shows a device name,
we need more information about the skb for debugging csum
failures.

Sample output:

 ens3: hw csum failure
 dev features: 0x0000000000014b89
 skb len=84 data_len=0 pkt_type=0 gso_size=0 gso_type=0 nr_frags=0 ip_summed=0 csum=0 csum_complete_sw=0 csum_valid=0 csum_level=0

Note, I use pr_err() just to be consistent with the existing one.

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/datagram.c
net/core/dev.c
net/core/skbuff.c
net/sunrpc/socklib.c