The RTE_ETH_RSS_PPPOE case tested pppoe_configured as a guard against
adding the extract twice, but never set it, leaving the guard dead. Set
it like the other protocol cases.

Signed-off-by: Maxime Leroy <[email protected]>
---
 drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c 
b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c
index f1d670f213..2724672a5e 100644
--- a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c
+++ b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c
@@ -260,6 +260,8 @@ dpaa2_distset_to_dpkg_profile_cfg(
                        case RTE_ETH_RSS_PPPOE:
                                if (pppoe_configured)
                                        break;
+                               pppoe_configured = 1;
+
                                kg_cfg->extracts[i].extract.from_hdr.prot =
                                        NET_PROT_PPPOE;
                                kg_cfg->extracts[i].extract.from_hdr.field =
-- 
2.43.0

Reply via email to