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 697BCC05027 for ; Fri, 10 Feb 2023 03:30:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230223AbjBJDaT (ORCPT ); Thu, 9 Feb 2023 22:30:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229825AbjBJDaS (ORCPT ); Thu, 9 Feb 2023 22:30:18 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76853EB42 for ; Thu, 9 Feb 2023 19:30:17 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id EE8AF61C9C for ; Fri, 10 Feb 2023 03:30:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98583C433EF; Fri, 10 Feb 2023 03:30:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675999816; bh=PQxKjQxxVhlB+Oyg6VHbfPCg/KJt+nBvWEmNPL+ZNV4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CT2f7lqP3MCXsA2Otn5BMevzU9aN+A8AS/CbjqYKCXAtruI9jJ5nn2OQh+emGUaVY qUj5NKVDoM7KX56LaX4B88Sp9TTucIZVbLV/sw5N5k1RMbvEz7+OUJzK2e+hPix0Lx rnyPE+440eZ5DOJf6NWl2ynalDEUgSYGkLKwOSJWnBFkFGrt/Q22IOACMAV3XWFFuS OvD63uqKdMONPNH4JPx/66UMWdLLe6qDek/vvSuvzoOIeWenWLcw3cU1/BQqkKpEkf 5YWebkWnhKJtC2OBre86AGeCUuySL5OueUOQ1TnSJ90EDjDkYWonp3QcJcDCZCLZYv 2G5nzBJA6pAaA== Date: Thu, 9 Feb 2023 19:30:14 -0800 From: Jakub Kicinski To: Yinjun Zhang Cc: Jiri Pirko , Saeed Mahameed , Simon Horman , Leon Romanovsky , David Miller , Paolo Abeni , Michael Chan , Andy Gospodarek , Gal Pressman , Jesse Brandeburg , Tony Nguyen , Edward Cree , Vladimir Oltean , Andrew Lunn , Fei Qin , "netdev@vger.kernel.org" , oss-drivers Subject: Re: [PATCH/RFC net-next 1/2] devlink: expose port function commands to assign VFs to multiple netdevs Message-ID: <20230209193014.3aae3f26@kernel.org> In-Reply-To: References: <20230206153603.2801791-2-simon.horman@corigine.com> <20230206184227.64d46170@kernel.org> <20230208153552.4be414f6@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, 10 Feb 2023 02:14:27 +0000 Yinjun Zhang wrote: > I understand in switchdev mode, the fine-grained manipulation by TC can do it. > While legacy has fixed forwarding rule, and we hope it can be implemented without > too much involved configuration from user if they only want legacy forwarding. > > As multi-port mapping to one PF NIC is scarce, maybe we should implement is as > vendor specific configuration, make sense? Vendor extension or not we are disallowing adding configuration for legacy SR-IOV mode. We want people to move to switchdev mode, otherwise we'll have to keep extending both for ever.