diff options
author | Jiri Pirko <jpirko@redhat.com> | 2010-06-09 23:34:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-15 14:47:11 -0400 |
commit | 93e2c32b5cb2ad92ceb1d7a4684f20a0d25bf530 (patch) | |
tree | c15af2642af01702097ade735506d15d7a910c54 /include/linux/netdevice.h | |
parent | 91d2c34a4eed32876ca333b0ca44f3bc56645805 (diff) |
net: add rx_handler data pointer
Add possibility to register rx_handler data pointer along with a rx_handler.
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index fb20cc55ba52..361ff1145cf1 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -979,6 +979,7 @@ struct net_device { | |||
979 | 979 | ||
980 | struct netdev_queue rx_queue; | 980 | struct netdev_queue rx_queue; |
981 | rx_handler_func_t *rx_handler; | 981 | rx_handler_func_t *rx_handler; |
982 | void *rx_handler_data; | ||
982 | 983 | ||
983 | struct netdev_queue *_tx ____cacheline_aligned_in_smp; | 984 | struct netdev_queue *_tx ____cacheline_aligned_in_smp; |
984 | 985 | ||
@@ -1712,7 +1713,8 @@ static inline void napi_free_frags(struct napi_struct *napi) | |||
1712 | } | 1713 | } |
1713 | 1714 | ||
1714 | extern int netdev_rx_handler_register(struct net_device *dev, | 1715 | extern int netdev_rx_handler_register(struct net_device *dev, |
1715 | rx_handler_func_t *rx_handler); | 1716 | rx_handler_func_t *rx_handler, |
1717 | void *rx_handler_data); | ||
1716 | extern void netdev_rx_handler_unregister(struct net_device *dev); | 1718 | extern void netdev_rx_handler_unregister(struct net_device *dev); |
1717 | 1719 | ||
1718 | extern void netif_nit_deliver(struct sk_buff *skb); | 1720 | extern void netif_nit_deliver(struct sk_buff *skb); |