aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2018-11-12 14:47:18 -0800
committerDavid S. Miller <davem@davemloft.net>2018-11-15 11:37:04 -0800
commit7fe50ac83f4319c18ed7c634d85cad16bd0bf509 (patch)
tree01d945a82db6dbeaab6e624132f3a84f8628ed61 /include/linux/netdevice.h
parentnet: dsa: mv88e6xxx: Work around mv886e6161 SERDES missing MII_PHYSID2 (diff)
downloadlinux-dev-7fe50ac83f4319c18ed7c634d85cad16bd0bf509.tar.xz
linux-dev-7fe50ac83f4319c18ed7c634d85cad16bd0bf509.zip
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>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 97b4233120e4..917ae7b6263e 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -4343,9 +4343,10 @@ static inline bool can_checksum_protocol(netdev_features_t features,
}
#ifdef CONFIG_BUG
-void netdev_rx_csum_fault(struct net_device *dev);
+void netdev_rx_csum_fault(struct net_device *dev, struct sk_buff *skb);
#else
-static inline void netdev_rx_csum_fault(struct net_device *dev)
+static inline void netdev_rx_csum_fault(struct net_device *dev,
+ struct sk_buff *skb)
{
}
#endif