net: filter: let bpf_tell_extensions return SKF_AD_MAX
[linux.git] / include / linux / filter.h
index 1a95a2dcf113a9a61a479b99abd564ac617ef413..e568c8ef896bf170de5578d7d898343a457b7724 100644 (file)
@@ -85,13 +85,7 @@ static inline void bpf_jit_free(struct sk_filter *fp)
 
 static inline int bpf_tell_extensions(void)
 {
-       /* When adding new BPF extension it is necessary to enumerate
-        * it here, so userspace software which wants to know what is
-        * supported can do so by inspecting return value of this
-        * function
-        */
-
-       return 0;
+       return SKF_AD_MAX;
 }
 
 enum {