compat: Detect and use inet_frags->lock.
authorJoe Stringer <joe@ovn.org>
Thu, 24 Dec 2015 19:06:18 +0000 (11:06 -0800)
committerJoe Stringer <joe@ovn.org>
Tue, 2 Feb 2016 22:26:45 +0000 (14:26 -0800)
commitd1c390e6791f5e51ab50bf51f2cca34957040da5
treed488604650cb93122408b5c90b910e051dde9144
parent91408ae00320154d4b3ee970c25c219a9782e67d
compat: Detect and use inet_frags->lock.

Prior to ab1c724f6330 ("inet: frag: use seqlock for hash rebuild")
upstream, a rwlock was used when rebuilding inet_frags. Rather than
using a version check to detect this, search for it in the header and
enable the code based on whether it exists.

Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
acinclude.m4
datapath/linux/compat/inet_fragment.c