RHEL 6.6 has backported the version of netdev_rx_handler_register() that allows OVS to register on old kernels. It's presumably the same as ours, so it's simpler to just keep using the one that we have.
Reported-by: Chris <cont...@progbau.de> Signed-off-by: Jesse Gross <je...@nicira.com> --- datapath/linux/compat/include/linux/netdevice.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/datapath/linux/compat/include/linux/netdevice.h b/datapath/linux/compat/include/linux/netdevice.h index d726390..3763200 100644 --- a/datapath/linux/compat/include/linux/netdevice.h +++ b/datapath/linux/compat/include/linux/netdevice.h @@ -25,6 +25,8 @@ extern void dev_disable_lro(struct net_device *dev); #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36) || \ defined HAVE_RHEL_OVS_HOOK +#define netdev_rx_handler_register rpl_netdev_rx_handler_register + #ifdef HAVE_RHEL_OVS_HOOK typedef struct sk_buff *(openvswitch_handle_frame_hook_t)(struct sk_buff *skb); extern openvswitch_handle_frame_hook_t *openvswitch_handle_frame_hook; @@ -40,6 +42,7 @@ int netdev_rx_handler_register(struct net_device *dev, void *rx_handler_data); #endif +#define netdev_rx_handler_unregister rpl_netdev_rx_handler_unregister void netdev_rx_handler_unregister(struct net_device *dev); #endif -- 2.1.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev