aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 5cbaa20f165..d3122321d8b 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -288,7 +288,7 @@ struct hh_cache {
288struct header_ops { 288struct header_ops {
289 int (*create) (struct sk_buff *skb, struct net_device *dev, 289 int (*create) (struct sk_buff *skb, struct net_device *dev,
290 unsigned short type, const void *daddr, 290 unsigned short type, const void *daddr,
291 const void *saddr, unsigned len); 291 const void *saddr, unsigned int len);
292 int (*parse)(const struct sk_buff *skb, unsigned char *haddr); 292 int (*parse)(const struct sk_buff *skb, unsigned char *haddr);
293 int (*rebuild)(struct sk_buff *skb); 293 int (*rebuild)(struct sk_buff *skb);
294 int (*cache)(const struct neighbour *neigh, struct hh_cache *hh, __be16 type); 294 int (*cache)(const struct neighbour *neigh, struct hh_cache *hh, __be16 type);
@@ -1689,7 +1689,7 @@ static inline void *skb_gro_network_header(struct sk_buff *skb)
1689static inline int dev_hard_header(struct sk_buff *skb, struct net_device *dev, 1689static inline int dev_hard_header(struct sk_buff *skb, struct net_device *dev,
1690 unsigned short type, 1690 unsigned short type,
1691 const void *daddr, const void *saddr, 1691 const void *daddr, const void *saddr,
1692 unsigned len) 1692 unsigned int len)
1693{ 1693{
1694 if (!dev->header_ops || !dev->header_ops->create) 1694 if (!dev->header_ops || !dev->header_ops->create)
1695 return 0; 1695 return 0;
@@ -1740,7 +1740,7 @@ struct softnet_data {
1740 unsigned int input_queue_head; 1740 unsigned int input_queue_head;
1741 unsigned int input_queue_tail; 1741 unsigned int input_queue_tail;
1742#endif 1742#endif
1743 unsigned dropped; 1743 unsigned int dropped;
1744 struct sk_buff_head input_pkt_queue; 1744 struct sk_buff_head input_pkt_queue;
1745 struct napi_struct backlog; 1745 struct napi_struct backlog;
1746}; 1746};
@@ -1925,7 +1925,7 @@ static inline void netdev_sent_queue(struct net_device *dev, unsigned int bytes)
1925} 1925}
1926 1926
1927static inline void netdev_tx_completed_queue(struct netdev_queue *dev_queue, 1927static inline void netdev_tx_completed_queue(struct netdev_queue *dev_queue,
1928 unsigned pkts, unsigned bytes) 1928 unsigned int pkts, unsigned int bytes)
1929{ 1929{
1930#ifdef CONFIG_BQL 1930#ifdef CONFIG_BQL
1931 if (unlikely(!bytes)) 1931 if (unlikely(!bytes))
@@ -1949,7 +1949,7 @@ static inline void netdev_tx_completed_queue(struct netdev_queue *dev_queue,
1949} 1949}
1950 1950
1951static inline void netdev_completed_queue(struct net_device *dev, 1951static inline void netdev_completed_queue(struct net_device *dev,
1952 unsigned pkts, unsigned bytes) 1952 unsigned int pkts, unsigned int bytes)
1953{ 1953{
1954 netdev_tx_completed_queue(netdev_get_tx_queue(dev, 0), pkts, bytes); 1954 netdev_tx_completed_queue(netdev_get_tx_queue(dev, 0), pkts, bytes);
1955} 1955}
@@ -2144,9 +2144,9 @@ extern void netdev_rx_handler_unregister(struct net_device *dev);
2144extern bool dev_valid_name(const char *name); 2144extern bool dev_valid_name(const char *name);
2145extern int dev_ioctl(struct net *net, unsigned int cmd, void __user *); 2145extern int dev_ioctl(struct net *net, unsigned int cmd, void __user *);
2146extern int dev_ethtool(struct net *net, struct ifreq *); 2146extern int dev_ethtool(struct net *net, struct ifreq *);
2147extern unsigned dev_get_flags(const struct net_device *); 2147extern unsigned int dev_get_flags(const struct net_device *);
2148extern int __dev_change_flags(struct net_device *, unsigned int flags); 2148extern int __dev_change_flags(struct net_device *, unsigned int flags);
2149extern int dev_change_flags(struct net_device *, unsigned); 2149extern int dev_change_flags(struct net_device *, unsigned int);
2150extern void __dev_notify_flags(struct net_device *, unsigned int old_flags); 2150extern void __dev_notify_flags(struct net_device *, unsigned int old_flags);
2151extern int dev_change_name(struct net_device *, const char *); 2151extern int dev_change_name(struct net_device *, const char *);
2152extern int dev_set_alias(struct net_device *, const char *, size_t); 2152extern int dev_set_alias(struct net_device *, const char *, size_t);