napi->skb = NULL;
}
- extern int netdev_rx_handler_register(struct net_device *dev,
- rx_handler_func_t *rx_handler,
- void *rx_handler_data);
- extern void netdev_rx_handler_unregister(struct net_device *dev);
-
- extern bool dev_valid_name(const char *name);
- extern int dev_ioctl(struct net *net, unsigned int cmd, void __user *);
- extern int dev_ethtool(struct net *net, struct ifreq *);
- extern unsigned int dev_get_flags(const struct net_device *);
- extern int __dev_change_flags(struct net_device *, unsigned int flags);
- extern int dev_change_flags(struct net_device *, unsigned int);
- void __dev_notify_flags(struct net_device *,
- unsigned int old_flags,
- unsigned int gchanges);
- extern int dev_change_name(struct net_device *, const char *);
- extern int dev_set_alias(struct net_device *, const char *, size_t);
- extern int dev_change_net_namespace(struct net_device *,
- struct net *, const char *);
- extern int dev_set_mtu(struct net_device *, int);
- extern void dev_set_group(struct net_device *, int);
- extern int dev_set_mac_address(struct net_device *,
- struct sockaddr *);
- extern int dev_change_carrier(struct net_device *,
- bool new_carrier);
- extern int dev_get_phys_port_id(struct net_device *dev,
- struct netdev_phys_port_id *ppid);
- extern int dev_hard_start_xmit(struct sk_buff *skb,
- struct net_device *dev,
- struct netdev_queue *txq);
- extern int dev_forward_skb(struct net_device *dev,
- struct sk_buff *skb);
+ int netdev_rx_handler_register(struct net_device *dev,
+ rx_handler_func_t *rx_handler,
+ void *rx_handler_data);
+ void netdev_rx_handler_unregister(struct net_device *dev);
+
+ bool dev_valid_name(const char *name);
+ int dev_ioctl(struct net *net, unsigned int cmd, void __user *);
+ int dev_ethtool(struct net *net, struct ifreq *);
+ unsigned int dev_get_flags(const struct net_device *);
+ int __dev_change_flags(struct net_device *, unsigned int flags);
+ int dev_change_flags(struct net_device *, unsigned int);
-void __dev_notify_flags(struct net_device *, unsigned int old_flags);
++void __dev_notify_flags(struct net_device *, unsigned int old_flags,
++ unsigned int gchanges);
+ int dev_change_name(struct net_device *, const char *);
+ int dev_set_alias(struct net_device *, const char *, size_t);
+ int dev_change_net_namespace(struct net_device *, struct net *, const char *);
+ int dev_set_mtu(struct net_device *, int);
+ void dev_set_group(struct net_device *, int);
+ int dev_set_mac_address(struct net_device *, struct sockaddr *);
+ int dev_change_carrier(struct net_device *, bool new_carrier);
+ int dev_get_phys_port_id(struct net_device *dev,
+ struct netdev_phys_port_id *ppid);
+ int dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev,
+ struct netdev_queue *txq);
+ int dev_forward_skb(struct net_device *dev, struct sk_buff *skb);
extern int netdev_budget;