Skip to content

Commit

Permalink
datapath: Check for existence of nf_hook_ops member list
Browse files Browse the repository at this point in the history
The list member of nf_hook_ops has been removed in Linux kernel
release 4.13. Check for the definition of it in pre-4.13 kernels.

Signed-off-by: Greg Rose <[email protected]>
Signed-off-by: Andy Zhou <[email protected]>
  • Loading branch information
gvrose8192 authored and azhou-nicira committed Sep 22, 2017
1 parent a522069 commit cfb9880
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datapath/linux/compat/stt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2110,7 +2110,9 @@ int stt_init_module(void)
if (rc)
goto out2;

#ifdef HAVE_LIST_IN_NF_HOOK_OPS
INIT_LIST_HEAD(&nf_hook_ops.list);
#endif
pr_info("STT tunneling driver\n");
return 0;
out2:
Expand Down

0 comments on commit cfb9880

Please sign in to comment.