aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/bpf/bpf_struct_ops_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/bpf/bpf_struct_ops_types.h')
-rw-r--r--kernel/bpf/bpf_struct_ops_types.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/bpf/bpf_struct_ops_types.h b/kernel/bpf/bpf_struct_ops_types.h
new file mode 100644
index 000000000000..066d83ea1c99
--- /dev/null
+++ b/kernel/bpf/bpf_struct_ops_types.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/* internal file - do not include directly */
+
+#ifdef CONFIG_BPF_JIT
+#ifdef CONFIG_INET
+#include <net/tcp.h>
+BPF_STRUCT_OPS_TYPE(tcp_congestion_ops)
+#endif
+#endif