aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/netdevice.h4
-rw-r--r--include/linux/usb/usbnet.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 423a5447d2ed..a4664cc68e2b 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -2599,8 +2599,8 @@ static inline int dev_ethtool_get_settings(struct net_device *dev,
2599 2599
2600static inline u32 dev_ethtool_get_rx_csum(struct net_device *dev) 2600static inline u32 dev_ethtool_get_rx_csum(struct net_device *dev)
2601{ 2601{
2602 if (dev->hw_features & NETIF_F_RXCSUM) 2602 if (dev->features & NETIF_F_RXCSUM)
2603 return !!(dev->features & NETIF_F_RXCSUM); 2603 return 1;
2604 if (!dev->ethtool_ops || !dev->ethtool_ops->get_rx_csum) 2604 if (!dev->ethtool_ops || !dev->ethtool_ops->get_rx_csum)
2605 return 0; 2605 return 0;
2606 return dev->ethtool_ops->get_rx_csum(dev); 2606 return dev->ethtool_ops->get_rx_csum(dev);
diff --git a/include/linux/usb/usbnet.h b/include/linux/usb/usbnet.h
index 201f2228f731..3c7329b8ea0e 100644
--- a/include/linux/usb/usbnet.h
+++ b/include/linux/usb/usbnet.h
@@ -97,6 +97,8 @@ struct driver_info {
97 97
98#define FLAG_LINK_INTR 0x0800 /* updates link (carrier) status */ 98#define FLAG_LINK_INTR 0x0800 /* updates link (carrier) status */
99 99
100#define FLAG_POINTTOPOINT 0x1000 /* possibly use "usb%d" names */
101
100/* 102/*
101 * Indicates to usbnet, that USB driver accumulates multiple IP packets. 103 * Indicates to usbnet, that USB driver accumulates multiple IP packets.
102 * Affects statistic (counters) and short packet handling. 104 * Affects statistic (counters) and short packet handling.