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>
This commit is contained in:
committed by
David S. Miller
parent
91d2c34a4e
commit
93e2c32b5c
@ -979,6 +979,7 @@ struct net_device {
|
||||
|
||||
struct netdev_queue rx_queue;
|
||||
rx_handler_func_t *rx_handler;
|
||||
void *rx_handler_data;
|
||||
|
||||
struct netdev_queue *_tx ____cacheline_aligned_in_smp;
|
||||
|
||||
@ -1712,7 +1713,8 @@ static inline void napi_free_frags(struct napi_struct *napi)
|
||||
}
|
||||
|
||||
extern int netdev_rx_handler_register(struct net_device *dev,
|
||||
rx_handler_func_t *rx_handler);
|
||||
rx_handler_func_t *rx_handler,
|
||||
void *rx_handler_data);
|
||||
extern void netdev_rx_handler_unregister(struct net_device *dev);
|
||||
|
||||
extern void netif_nit_deliver(struct sk_buff *skb);
|
||||
|
Reference in New Issue
Block a user