From de32ec32d720ca3070a48a24da1a18eb315003fe Mon Sep 17 00:00:00 2001 From: Ivan Malov Date: Fri, 18 Feb 2022 01:25:09 +0300 Subject: [PATCH] net/sfc: fix flow tunnel support detection The condition for that must use the new MAE admin status. Fixes: 2f577f0ea1a3 ("net/sfc: allow ports without MAE privilege") Cc: stable@dpdk.org Signed-off-by: Ivan Malov Reviewed-by: Andrew Rybchenko Reviewed-by: Andy Moreton --- drivers/net/sfc/sfc_flow_tunnel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/sfc/sfc_flow_tunnel.c b/drivers/net/sfc/sfc_flow_tunnel.c index 463b01c596..e9eca90012 100644 --- a/drivers/net/sfc/sfc_flow_tunnel.c +++ b/drivers/net/sfc/sfc_flow_tunnel.c @@ -21,7 +21,7 @@ sfc_flow_tunnel_is_supported(struct sfc_adapter *sa) SFC_ASSERT(sfc_adapter_is_locked(sa)); return ((sa->priv.dp_rx->features & SFC_DP_RX_FEAT_FLOW_MARK) != 0 && - sa->mae.status == SFC_MAE_STATUS_SUPPORTED); + sa->mae.status == SFC_MAE_STATUS_ADMIN); } bool -- 2.39.5