#ifndef EFD_SEMAPHORE #define EFD_SEMAPHORE 1 #endif #ifndef EFD_NONBLOCK #define EFD_NONBLOCK 00004000 #endif #ifndef EFD_CLOEXEC #define EFD_CLOEXEC 02000000 #endif static size_t syscall_arg__scnprintf_eventfd_flags(char *bf, size_t size, struct syscall_arg *arg) { int printed = 0, flags = arg->val; if (flags == 0) return scnprintf(bf, size, "NONE"); #define P_FLAG(n) \ if (flags & EFD_##n) { \ printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ flags &= ~EFD_##n; \ } P_FLAG(SEMAPHORE); P_FLAG(CLOEXEC); P_FLAG(NONBLOCK); #undef P_FLAG if (flags) printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); return printed; } #define SCA_EFD_FLAGS syscall_arg__scnprintf_eventfd_flags > index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/net/ipv4/xfrm4_policy.c
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2017-01-30 06:45:38 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2017-01-30 06:45:38 +0100
commitf991bb9da142ba79b54ed0757f22e756f45e2c5a (patch)
tree0c1e5ec4de598c841b8fae187c4b1b783c1ceb02 /net/ipv4/xfrm4_policy.c
parenteb758c8864d49f5786432ce38fd8a72bdbbd10cf (diff)
net: Drop secpath on free after gro merge.
With a followup patch, a gro merged skb can have a secpath. So drop it before freeing or reusing the skb. Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv4/xfrm4_policy.c')