Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109427874
D39232.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D39232.diff
View Options
diff --git a/sys/kern/uipc_ktls.c b/sys/kern/uipc_ktls.c
--- a/sys/kern/uipc_ktls.c
+++ b/sys/kern/uipc_ktls.c
@@ -66,10 +66,8 @@
#endif
#include <net/route.h>
#include <net/route/nhop.h>
-#if defined(INET) || defined(INET6)
#include <netinet/in.h>
#include <netinet/in_pcb.h>
-#endif
#include <netinet/tcp_var.h>
#ifdef TCP_OFFLOAD
#include <netinet/tcp_offload.h>
@@ -302,14 +300,11 @@
static MALLOC_DEFINE(M_KTLS, "ktls", "Kernel TLS");
-#if defined(INET) || defined(INET6)
static void ktls_reset_receive_tag(void *context, int pending);
static void ktls_reset_send_tag(void *context, int pending);
-#endif
static void ktls_work_thread(void *ctx);
static void ktls_alloc_thread(void *ctx);
-#if defined(INET) || defined(INET6)
static u_int
ktls_get_cpu(struct socket *so)
{
@@ -340,7 +335,6 @@
cpuid = ktls_cpuid_lookup[inp->inp_flowid % ktls_number_threads];
return (cpuid);
}
-#endif
static int
ktls_buffer_import(void *arg, void **store, int count, int domain, int flags)
@@ -505,7 +499,6 @@
return (error);
}
-#if defined(INET) || defined(INET6)
static int
ktls_create_session(struct socket *so, struct tls_enable *en,
struct ktls_session **tlsp, int direction)
@@ -1826,7 +1819,6 @@
return (mst->sw->snd_tag_modify(mst, ¶ms));
}
#endif
-#endif
static void
ktls_destroy_help(void *context, int pending __unused)
@@ -3265,7 +3257,6 @@
}
}
-#if defined(INET) || defined(INET6)
static void
ktls_disable_ifnet_help(void *context, int pending __unused)
{
@@ -3354,4 +3345,3 @@
TASK_INIT(&tls->disable_ifnet_task, 0, ktls_disable_ifnet_help, tls);
(void)taskqueue_enqueue(taskqueue_thread, &tls->disable_ifnet_task);
}
-#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 5, 10:40 PM (20 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16482157
Default Alt Text
D39232.diff (1 KB)
Attached To
Mode
D39232: ktls: Drop all the INET and INET6 compile-time guards.
Attached
Detach File
Event Timeline
Log In to Comment