vxlan: break dependency with netdev drivers
[deliverable/linux.git] / include / net / vxlan.h
index d442eb3129cde47b0350333a292b7e72744396c7..673e9f9e6da7687d24d4b28f6d726fcb26e9384b 100644 (file)
@@ -390,13 +390,11 @@ static inline __be32 vxlan_compute_rco(unsigned int start, unsigned int offset)
        return vni_field;
 }
 
-#if IS_ENABLED(CONFIG_VXLAN)
-void vxlan_get_rx_port(struct net_device *netdev);
-#else
 static inline void vxlan_get_rx_port(struct net_device *netdev)
 {
+       ASSERT_RTNL();
+       call_netdevice_notifiers(NETDEV_OFFLOAD_PUSH_VXLAN, netdev);
 }
-#endif
 
 static inline unsigned short vxlan_get_sk_family(struct vxlan_sock *vs)
 {
This page took 0.025526 seconds and 5 git commands to generate.