aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Smith <mgsmith@netgate.com>2021-07-02 15:30:37 -0500
committerMatthew Smith <mgsmith@netgate.com>2021-08-16 15:25:26 +0000
commitfc1f3ef76abf08661c4b214414710a1793dceb6e (patch)
treeac115db27b6e6cf5e8363d41d85f1222337d4a91
parent76b19ceafcf892b56a679d3d7fe5c6f4b93f7de7 (diff)
dpdk: patch i40e PMD to disable source pruning
Type: improvement X710/XL710 devices have source pruning enabled by default and DPDK provides no option to disable it. This prevents VRRP from working properly. Disable source pruning while setting up the main VSI. Change-Id: Iaf89f7dae8992e3bd0b9fae83878daa27a5bb931 Signed-off-by: Matthew Smith <mgsmith@netgate.com>
-rw-r--r--build/external/patches/dpdk_21.05/0001-net-i40e-disable-source-pruning-on-pf.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/build/external/patches/dpdk_21.05/0001-net-i40e-disable-source-pruning-on-pf.patch b/build/external/patches/dpdk_21.05/0001-net-i40e-disable-source-pruning-on-pf.patch
new file mode 100644
index 00000000000..b1e840f9a03
--- /dev/null
+++ b/build/external/patches/dpdk_21.05/0001-net-i40e-disable-source-pruning-on-pf.patch
@@ -0,0 +1,43 @@
+From 7f12cf029c8be96314711bd02b3ea8b2d180d8ca Mon Sep 17 00:00:00 2001
+From: Matthew Smith <mgsmith@netgate.com>
+Date: Fri, 2 Jul 2021 15:09:25 -0500
+Subject: [PATCH] net/i40e: disable source pruning on pf
+
+VRRP advertisement packets are dropped on X710 and XL710 devices
+because when a MAC address is added to a device, packets originating
+from that MAC address are dropped. We disable source pruning to work
+around that issue.
+
+Signed-off-by: Matthew Smith <mgsmith@netgate.com>
+---
+ drivers/net/i40e/i40e_ethdev.c | 14 ++++++++++++++
+ 1 file changed, 14 insertions(+)
+
+diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
+index dd61258739..f5d2a262ec 100644
+--- a/drivers/net/i40e/i40e_ethdev.c
++++ b/drivers/net/i40e/i40e_ethdev.c
+@@ -5794,6 +5794,20 @@ i40e_vsi_setup(struct i40e_pf *pf,
+ * interrupt from device side only.
+ */
+
++ /* disable source pruning */
++ memset(&ctxt, 0, sizeof(ctxt));
++ ctxt.seid = vsi->seid;
++ ctxt.pf_num = hw->pf_id;
++ ctxt.vf_num = 0;
++ ctxt.info.valid_sections |=
++ rte_cpu_to_le_16(I40E_AQ_VSI_PROP_SWITCH_VALID);
++ ctxt.info.switch_id =
++ rte_cpu_to_le_16(I40E_AQ_VSI_SW_ID_FLAG_LOCAL_LB);
++ ret = i40e_aq_update_vsi_params(hw, &ctxt, NULL);
++ if (ret != I40E_SUCCESS) {
++ PMD_DRV_LOG(ERR, "Failed to disable source pruning");
++ }
++
+ /* Get default VSI parameters from hardware */
+ memset(&ctxt, 0, sizeof(ctxt));
+ ctxt.seid = vsi->seid;
+--
+2.30.1 (Apple Git-130)
+