datapath: support Linux 3.7
[sliver-openvswitch.git] / datapath / linux / compat / include / net / inet_frag.h
1 #ifndef __NET_INET_FRAG_WRAPPER_H
2 #define __NET_INET_FRAG_WRAPPER_H 1
3
4 #include <linux/version.h>
5 #include_next <net/inet_frag.h>
6
7 #if LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0)
8 #define inet_frag_evictor(nf, f, force)                                 \
9         do {                                                            \
10                 if (force || atomic_read(&nf->mem) > nf->high_thresh) { \
11                         inet_frag_evictor(nf, f);                       \
12                 }                                                       \
13         } while (0)
14 #endif
15
16 #endif /* inet_frag.h */