git: b494e256a492 - main - ipsec offload: add xform_history to the ipsec_accel_in_tag
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Jul 2025 09:36:49 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=b494e256a492c3d26eadfec9cd45956fb2d9c72e
commit b494e256a492c3d26eadfec9cd45956fb2d9c72e
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-07-07 22:30:42 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-07-17 09:36:22 +0000
ipsec offload: add xform_history to the ipsec_accel_in_tag
The layout makes ipsec_accel_in_tag compatible with
PACKET_TAG_IPSEC_IN_DONE.
Reviewed by: Ariel Ehrenberg <aehrenberg@nvidia.com>, slavash
Sponsored by: Nvidia networking
---
sys/netipsec/ipsec_offload.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/netipsec/ipsec_offload.h b/sys/netipsec/ipsec_offload.h
index 6e374d721a4f..fb8cd7438598 100644
--- a/sys/netipsec/ipsec_offload.h
+++ b/sys/netipsec/ipsec_offload.h
@@ -30,6 +30,7 @@
#include <sys/errno.h>
#include <net/if.h>
#include <net/if_var.h>
+#include <netipsec/xform.h>
struct secpolicy;
struct secasvar;
@@ -42,6 +43,7 @@ struct ipsec_accel_out_tag {
struct ipsec_accel_in_tag {
struct m_tag tag;
+ struct xform_history xh; /* Must be first to mimic IPSEC_IN_DONE */
uint16_t drv_spi;
};