From: Ivan Malov Date: Thu, 17 Feb 2022 22:25:09 +0000 (+0300) Subject: net/sfc: fix flow tunnel support detection X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=de32ec32d720ca3070a48a24da1a18eb315003fe;p=dpdk.git 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 --- 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