datapath: rhel: Move RHEL OVS hook registration to netdev_rx_handler_register() backport
[sliver-openvswitch.git] / datapath / linux / compat / netdevice.c
index d26fb5e..f03efde 100644 (file)
@@ -1,6 +1,10 @@
 #include <linux/netdevice.h>
 #include <linux/if_vlan.h>
 
+#ifdef HAVE_RHEL_OVS_HOOK
+int nr_bridges = 0;
+#endif
+
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
 #ifndef HAVE_CAN_CHECKSUM_PROTOCOL
 static bool can_checksum_protocol(unsigned long features, __be16 protocol)