Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Add support for VXLAN+IPSEC usecase for tunnel and transport mode#27

Draft
nupuruttarwar wants to merge 1 commit intomainfrom
vxlan_ipsec_support
Draft

Add support for VXLAN+IPSEC usecase for tunnel and transport mode#27
nupuruttarwar wants to merge 1 commit intomainfrom
vxlan_ipsec_support

Conversation

@nupuruttarwar
Copy link
Contributor

To support VXLAN+IPSEC, information coming from strongswan is programmed in tables related to VXLAN+IPSEC along with IPSEC only case

@nupuruttarwar nupuruttarwar force-pushed the vxlan_ipsec_support branch 2 times, most recently from fcc0cc7 to 35aa883 Compare December 11, 2023 22:15
DBG2(DBG_KNL, "Inline_crypto_ipsec ipsec_tx_sa_classification_table:"
"add entry failed");

err = vxlan_ipsec_tx_sa_classification_table(IPSEC_TABLE_ADD,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this table will allow subnet mask in ip addresses. This is useful for tunnel mode only. If this table is used then the regular exact match fixed function table is not needed.
Instead of calling it vxlan* We can give a better name such as ipsec_tx_sa_classification_table_with_subnet().
This is only needed for tunnel mode. The exact match table will be used for transport mode. In this case we can reduce the no of arguments in this API !!


// Program the same information in both the tables to support
// IPSEC ONLY and VXLAN+IPSEC case in one package
err = vxlan_ipsec_outer_ipv4_encap_mod_table(IPSEC_TABLE_ADD,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be duplicate table. The existing ipsec_encap table is sufficient

bool tunnel_mode,
char src_ip_mask[16],
char dst_ip_mask[16]);
extern "C" enum ipsec_status tep_term_with_ipsec_tunnel_table(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please describe purpose of this table.

To support VXLAN+IPSEC, information coming from strongswan is programmed
in tables related to VXLAN+IPSEC along with IPSEC only case

This modifications are tempory with D-river P4
Signed-off-by: nupuruttarwar <nupur.uttarwar@intel.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants