compat: Backport IPv4 reassembly.
[cascardo/ovs.git] / datapath / linux / compat / include / net / vrf.h
1 /*
2  * include/net/net_vrf.h - adds vrf dev structure definitions
3  * Copyright (c) 2015 Cumulus Networks
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  */
10
11 #ifndef __LINUX_NET_VRF_WRAPPER_H
12 #define __LINUX_NET_VRF_WRAPPER_H
13
14 #include <linux/version.h>
15
16 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,3,0)
17 #include_next <net/vrf.h>
18 #else
19
20 static inline int vrf_master_ifindex_rcu(const struct net_device *dev)
21 {
22         return 0;
23 }
24 #endif
25
26 #endif /* __LINUX_NET_VRF_WRAPPER_H */