diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/if_bridge.h | 2 | ||||
-rw-r--r-- | include/linux/if_macvlan.h | 4 | ||||
-rw-r--r-- | include/linux/netdevice.h | 7 |
3 files changed, 7 insertions, 6 deletions
diff --git a/include/linux/if_bridge.h b/include/linux/if_bridge.h index 938b7e81df95..0d241a5c4909 100644 --- a/include/linux/if_bridge.h +++ b/include/linux/if_bridge.h | |||
@@ -102,8 +102,6 @@ struct __fdb_entry { | |||
102 | #include <linux/netdevice.h> | 102 | #include <linux/netdevice.h> |
103 | 103 | ||
104 | extern void brioctl_set(int (*ioctl_hook)(struct net *, unsigned int, void __user *)); | 104 | extern void brioctl_set(int (*ioctl_hook)(struct net *, unsigned int, void __user *)); |
105 | extern struct sk_buff *(*br_handle_frame_hook)(struct net_bridge_port *p, | ||
106 | struct sk_buff *skb); | ||
107 | extern int (*br_should_route_hook)(struct sk_buff *skb); | 105 | extern int (*br_should_route_hook)(struct sk_buff *skb); |
108 | 106 | ||
109 | #endif | 107 | #endif |
diff --git a/include/linux/if_macvlan.h b/include/linux/if_macvlan.h index 9ea047aca795..c26a0e4f0ce8 100644 --- a/include/linux/if_macvlan.h +++ b/include/linux/if_macvlan.h | |||
@@ -84,8 +84,4 @@ extern int macvlan_link_register(struct rtnl_link_ops *ops); | |||
84 | extern netdev_tx_t macvlan_start_xmit(struct sk_buff *skb, | 84 | extern netdev_tx_t macvlan_start_xmit(struct sk_buff *skb, |
85 | struct net_device *dev); | 85 | struct net_device *dev); |
86 | 86 | ||
87 | |||
88 | extern struct sk_buff *(*macvlan_handle_frame_hook)(struct macvlan_port *, | ||
89 | struct sk_buff *); | ||
90 | |||
91 | #endif /* _LINUX_IF_MACVLAN_H */ | 87 | #endif /* _LINUX_IF_MACVLAN_H */ |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index bd6b75317d5f..5156b806924c 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -381,6 +381,8 @@ enum gro_result { | |||
381 | }; | 381 | }; |
382 | typedef enum gro_result gro_result_t; | 382 | typedef enum gro_result gro_result_t; |
383 | 383 | ||
384 | typedef struct sk_buff *rx_handler_func_t(struct sk_buff *skb); | ||
385 | |||
384 | extern void __napi_schedule(struct napi_struct *n); | 386 | extern void __napi_schedule(struct napi_struct *n); |
385 | 387 | ||
386 | static inline int napi_disable_pending(struct napi_struct *n) | 388 | static inline int napi_disable_pending(struct napi_struct *n) |
@@ -957,6 +959,7 @@ struct net_device { | |||
957 | #endif | 959 | #endif |
958 | 960 | ||
959 | struct netdev_queue rx_queue; | 961 | struct netdev_queue rx_queue; |
962 | rx_handler_func_t *rx_handler; | ||
960 | 963 | ||
961 | struct netdev_queue *_tx ____cacheline_aligned_in_smp; | 964 | struct netdev_queue *_tx ____cacheline_aligned_in_smp; |
962 | 965 | ||
@@ -1689,6 +1692,10 @@ static inline void napi_free_frags(struct napi_struct *napi) | |||
1689 | napi->skb = NULL; | 1692 | napi->skb = NULL; |
1690 | } | 1693 | } |
1691 | 1694 | ||
1695 | extern int netdev_rx_handler_register(struct net_device *dev, | ||
1696 | rx_handler_func_t *rx_handler); | ||
1697 | extern void netdev_rx_handler_unregister(struct net_device *dev); | ||
1698 | |||
1692 | extern void netif_nit_deliver(struct sk_buff *skb); | 1699 | extern void netif_nit_deliver(struct sk_buff *skb); |
1693 | extern int dev_valid_name(const char *name); | 1700 | extern int dev_valid_name(const char *name); |
1694 | extern int dev_ioctl(struct net *net, unsigned int cmd, void __user *); | 1701 | extern int dev_ioctl(struct net *net, unsigned int cmd, void __user *); |