mirror of
https://github.com/openvswitch/ovs
synced 2025-10-23 14:57:06 +00:00
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>
17 lines
390 B
C
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 */
|