From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DCE1C433EF for ; Wed, 6 Jul 2022 23:13:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234254AbiGFXN3 (ORCPT ); Wed, 6 Jul 2022 19:13:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234243AbiGFXNZ (ORCPT ); Wed, 6 Jul 2022 19:13:25 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80DA120B for ; Wed, 6 Jul 2022 16:13:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id D2130CE2114 for ; Wed, 6 Jul 2022 23:13:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4FF9C3411C; Wed, 6 Jul 2022 23:13:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657149198; bh=/7Z2wAifQZLj8I9vXQFW1L8Rs8kHrY2bo+I9bF85Tlg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=toHvukS3fJbqSYC9rVHF9Fak2zAcSfNJ2NQRcWj1OV5j/qs5ua5aEP49iSHQkhGbU K3jGdRGFFXS63kDm4OzSO7YnEV0UurwxIyp43Xfa/CQo7j4eiTxEALT1lZLA7ueKKp PBiLzNxv3E/F5tInaksObD5qzZWM1igrCMOFFVNgBp/SOsIthKhsoQ5TKZq4jooM+C aJxbS+0DsNnxqz7VOCipbRm0ppYIIxgWb+tXjFZiP5s7ApjjkvvLoTzunxCAjX4nY/ ddVbQT/EjrcpK5as1BLs7Z9otXCnF1N/sHrodYktAzNs1tpz5PEQWuhEPDjAHHjabw KDZwctHbcV1CA== From: Saeed Mahameed To: "David S. Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet Cc: Saeed Mahameed , netdev@vger.kernel.org, Eli Cohen , Maor Dickman , Mark Bloch Subject: [net 1/9] net/mlx5: TC, allow offload from uplink to other PF's VF Date: Wed, 6 Jul 2022 16:13:01 -0700 Message-Id: <20220706231309.38579-2-saeed@kernel.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220706231309.38579-1-saeed@kernel.org> References: <20220706231309.38579-1-saeed@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Eli Cohen Redirecting traffic from uplink to a VF is a legal operation of mulitport eswitch mode. Remove the limitation. Fixes: 94db33177819 ("net/mlx5: Support multiport eswitch mode") Signed-off-by: Eli Cohen Reviewed-by: Maor Dickman Reviewed-by: Mark Bloch Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c index 3a39a50146dd..9ca2c8763237 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c @@ -3793,7 +3793,7 @@ static bool is_lag_dev(struct mlx5e_priv *priv, static bool is_multiport_eligible(struct mlx5e_priv *priv, struct net_device *out_dev) { - if (mlx5e_eswitch_uplink_rep(out_dev) && + if (same_hw_reps(priv, out_dev) && MLX5_CAP_PORT_SELECTION(priv->mdev, port_select_flow_table) && MLX5_CAP_GEN(priv->mdev, create_lag_when_not_master_up)) return true; -- 2.36.1