2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-23 14:57:06 +00:00
Files
openvswitch/datapath/linux/compat/include/net/inet_frag.h
Isaku Yamahata 28aea917d5 datapath: support Linux 3.7
datapath: backport 15e473046cb6e5d18a4d0057e61d76315230382b

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
[jesse: fix kernel version in error message]
Signed-off-by: Jesse Gross <jesse@nicira.com>
2012-12-20 14:47:22 -08:00

17 lines
390 B
C

#ifndef __NET_INET_FRAG_WRAPPER_H
#define __NET_INET_FRAG_WRAPPER_H 1
#include <linux/version.h>
#include_next <net/inet_frag.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0)
#define inet_frag_evictor(nf, f, force) \
do { \
if (force || atomic_read(&nf->mem) > nf->high_thresh) { \
inet_frag_evictor(nf, f); \
} \
} while (0)
#endif
#endif /* inet_frag.h */