[PATCH 24/25] net/nfp: add the offload support of IPv6 NVGRE decap action
Chaoyong He
chaoyong.he at corigine.com
Tue Oct 18 05:22:38 CEST 2022
Add the offload support of decap action of IPv6 NVGRE tunnel.
Signed-off-by: Chaoyong He <chaoyong.he at corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund at corigine.com>
---
doc/guides/rel_notes/release_22_11.rst | 2 +-
drivers/net/nfp/nfp_flow.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/doc/guides/rel_notes/release_22_11.rst b/doc/guides/rel_notes/release_22_11.rst
index e2f7295..4f3edab 100644
--- a/doc/guides/rel_notes/release_22_11.rst
+++ b/doc/guides/rel_notes/release_22_11.rst
@@ -186,7 +186,7 @@ New Features
* Set the DSCP of IPv4 and IPv6
* Encap and decap of VXLAN tunnel
* Encap and decap of GENEVE tunnel
- * Encap of NVGRE tunnel
+ * Encap and decap of NVGRE tunnel
* **Updated NXP dpaa2 driver.**
diff --git a/drivers/net/nfp/nfp_flow.c b/drivers/net/nfp/nfp_flow.c
index 514e221..1ccc6ef 100644
--- a/drivers/net/nfp/nfp_flow.c
+++ b/drivers/net/nfp/nfp_flow.c
@@ -1661,6 +1661,8 @@ struct nfp_pre_tun_entry {
tun6 = (struct nfp_flower_ipv6_gre_tun *)*mbuf_off;
tun6->tun_key = tun_key;
tun6->tun_flags = rte_cpu_to_be_16(NFP_FL_GRE_FLAG_KEY);
+ if (!is_mask)
+ ret = nfp_tun_add_ipv6_off(app_fw_flower, tun6->ipv6.ipv6_dst);
} else {
tun4 = (struct nfp_flower_ipv4_gre_tun *)*mbuf_off;
tun4->tun_key = tun_key;
--
1.8.3.1
More information about the dev
mailing list