]> git.proxmox.com Git - mirror_ovs.git/commit
compat:inet_frag.h: Check for frag_percpu_counter_batch
authorGreg Rose <gvrose8192@gmail.com>
Fri, 5 Jan 2018 19:30:24 +0000 (11:30 -0800)
committerJustin Pettit <jpettit@ovn.org>
Tue, 23 Jan 2018 21:04:01 +0000 (13:04 -0800)
commit822afef74f5e65af0cdc3916249ce85a70ae7b83
tree4f4fa266da7e9973d295bce5f66e7bbdf5bf2910
parenta8e2addc6787cd2fda2a837519cb8662f91c2c9c
compat:inet_frag.h: Check for frag_percpu_counter_batch

Fix up the compat layer to check for frag_percpu_counter_batch and
if not present then use atomic_sub and atomic_add as per the
backport in the 3.16.50 LTS kernel.  Fixes compile errors on
3.16 series kernels from 3.16.50 on.

Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: Justin Pettit <jpettit@ovn.org>
datapath/linux/compat/include/net/inet_frag.h