Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115941606
D32356.id101946.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
D32356.id101946.diff
View Options
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -192,7 +192,8 @@
#define IF_SND_TAG_TYPE_UNLIMITED 1
#define IF_SND_TAG_TYPE_TLS 2
#define IF_SND_TAG_TYPE_TLS_RATE_LIMIT 3
-#define IF_SND_TAG_TYPE_MAX 4
+#define IF_SND_TAG_TYPE_TLS_RX 4
+#define IF_SND_TAG_TYPE_MAX 5
struct if_snd_tag_alloc_header {
uint32_t type; /* send tag type, see IF_SND_TAG_XXX */
@@ -214,6 +215,13 @@
const struct ktls_session *tls;
};
+struct if_snd_tag_alloc_tls_rx {
+ struct if_snd_tag_alloc_header hdr;
+ struct inpcb *inp;
+ const struct ktls_session *tls;
+ uint16_t vlan_id; /* valid if non-zero */
+};
+
struct if_snd_tag_alloc_tls_rate_limit {
struct if_snd_tag_alloc_header hdr;
struct inpcb *inp;
@@ -229,11 +237,26 @@
uint32_t flags; /* M_NOWAIT or M_WAITOK */
};
+struct if_snd_tag_modify_tls_rx {
+ /* TCP sequence number of TLS header in host endian format */
+ uint32_t tls_hdr_tcp_sn;
+
+ /*
+ * TLS record length, including all headers, data and trailers.
+ * If the tls_rec_length is zero, it means HW encryption resumed.
+ */
+ uint32_t tls_rec_length;
+
+ /* TLS sequence number in host endian format */
+ uint64_t tls_seq_number;
+};
+
union if_snd_tag_alloc_params {
struct if_snd_tag_alloc_header hdr;
struct if_snd_tag_alloc_rate_limit rate_limit;
struct if_snd_tag_alloc_rate_limit unlimited;
struct if_snd_tag_alloc_tls tls;
+ struct if_snd_tag_alloc_tls_rx tls_rx;
struct if_snd_tag_alloc_tls_rate_limit tls_rate_limit;
};
@@ -241,6 +264,7 @@
struct if_snd_tag_rate_limit_params rate_limit;
struct if_snd_tag_rate_limit_params unlimited;
struct if_snd_tag_rate_limit_params tls_rate_limit;
+ struct if_snd_tag_modify_tls_rx tls_rx;
};
union if_snd_tag_query_params {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 1, 4:44 PM (15 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17886492
Default Alt Text
D32356.id101946.diff (1 KB)
Attached To
Mode
D32356: ktls: Add full support for TLS RX offloading via network interface.
Attached
Detach File
Event Timeline
Log In to Comment