Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1741439rdb; Wed, 31 Jan 2024 07:47:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IH90X7zKHHxD+h0tTHxk2UlCvUvPgpLf0QAXsyEoThoS4hUN9cpz6WvjyFCxjF94QTJUu0M X-Received: by 2002:a05:6e02:ed3:b0:363:8ce0:c8c0 with SMTP id i19-20020a056e020ed300b003638ce0c8c0mr2281676ilk.15.1706716062265; Wed, 31 Jan 2024 07:47:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706716062; cv=pass; d=google.com; s=arc-20160816; b=oYhUEfZ4Q9550Sda/CQVscW50IC4U92u+xBc1/XM4LmEO4vkh6rvGzS4NO/bO53D4E Pry5EC1s1Qo/ia4K1WpizUtGp6PeGR01VFg5hotUHbSgBX30LPjQpAERZqftVV1hPQHu AlYJuOTBjhhYWPOslRf6Z6XAM83eggXyKfeOVJkTSKN26j611os0wIJpql2G1qiPd4Ab 5Oxql2lCorf90Qi/8mqwSzgz8gb/vFoqno4wu2Hh5trrYQ43c1cc5OXcynfTxlAQxRvb EiZUFlEHniWheN7gblXG8JS8sm20FZ7v37t1kIVSX4aVSa5hF7TP0VcAu5U5d/9XCvix cdUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=E6ejbGClvBv398K1WdkQP4IM2cZhM5gcu/lc2gKYjn4=; fh=9YO37dqeqNeAGCsm+ok87b7JIEjKuaUc23qtvRdjdhk=; b=rrHBkxyTR5+vTRciGKG1sti338mZ52rtbxB24kcBpy3dE/X0co1iI7iz9KrGHVdPqj VUXK4V7Xa5dYTI7XifxWPN1UMAMPFx8PnVBEeqSCA8b3rtVV0ALj9WcakOJf5FGUHiAI kG4DXHp7OlVIf+OyiZxHU8jbqHSbwMVQiZAuQH01vOgn0qrW2JarY+oTSPLfIW5XdS80 sjzkRuyiorrRjnsetY2JSjDEVONVFLUzoaGBQWmkZo7BJNk0BxCdY4zeg30Q7l8usEB+ 1i0HvDHJIpyjyaPQJ8lFs57SNe3jg9CU28+2cTXxWt+dBawNtBtUCr54krlFihOy50c2 StyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AcGYPJ3i; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-46255-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46255-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCVMlUcPWsIwS45+WHholSXi58BurFl0G3aEIvaUHdeMEbFcgUzB3G7/9z/7fXEiL8UDDU2W1DWv4M1lz50UXg2UFO3+b1hmOCfDNBVCJg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e5-20020a656885000000b005d5c89bd684si9883735pgt.414.2024.01.31.07.47.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 07:47:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46255-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AcGYPJ3i; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-46255-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46255-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id AC680295D05 for ; Wed, 31 Jan 2024 10:44:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9EA26E2A0; Wed, 31 Jan 2024 10:43:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="AcGYPJ3i" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 410AD6A34B; Wed, 31 Jan 2024 10:43:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706697838; cv=none; b=mZZxgg9c3cxFFwe6QxgBE1bdZP1qygWzo/gBRGHcLxYRckgL/xvfxw/3l1FVX2udT57HuNSYRiCeuGqWVbg39cLCstCOqDEtKZ+KMfJ/rtVIYfbQPE6/e607GOSXffKdMr62+8xMDRUyzhF0CAtYyxNYQBRf6HS0qRAP33z77ug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706697838; c=relaxed/simple; bh=GMHh/yDFgs8E7du6dshuQUH8e/3SPnyzYtKxUfHT/jQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=r3Ah1gKxVtmqN01+gIffUQieVV6UtQObTIqPDFJkorEhwXzqGtr4G1RiHmobjJLaee364KIkBUGSDmddpovf9sxb4wB0Xp66OFarjAP7SzFMVdHnfZuVRQi84uJGVMpBLyGJj/YKqpTUSqj+ShnilY0IGaaD5r6NeW5L2bRMON8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=AcGYPJ3i; arc=none smtp.client-ip=192.198.163.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706697837; x=1738233837; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=GMHh/yDFgs8E7du6dshuQUH8e/3SPnyzYtKxUfHT/jQ=; b=AcGYPJ3ideWaN1qV5YGqvAC6dh/0sBRfUKNN22Y9V1Qct6qtAeaffA30 /kX3k0jhKMb6U7cv9kRVIkuQMOXeGnNYLS54MeFv67aJ/StYRKJiBQjxJ t83D5XhFrI0nGtqacKmHiE5p7MQ6pfQTTyHVPN/cE3jFixd39ZjhTgPxJ uDrcsLtlyP1sAVy0fDnOd7WatHLzBghCNVZ5EQ8C4hY1B6dEvdxekxLKM zWi7Zp9emf6Ea5aCZyqfzibNvgAbZCV/gOVCoXaSLvY+t6f3MLNjCspxO LSKwuJi2FoYh0Fy8zBLiM6ZyB9W7INEgH/fr+wBzjVWlQ0Xe81XJjRIDF Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="10316962" X-IronPort-AV: E=Sophos;i="6.05,231,1701158400"; d="scan'208";a="10316962" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2024 02:43:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,231,1701158400"; d="scan'208";a="4121359" Received: from unknown (HELO mev-dev) ([10.237.112.144]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2024 02:43:53 -0800 Date: Wed, 31 Jan 2024 11:43:44 +0100 From: Michal Swiatkowski To: karthiksundaravel Cc: jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, rjarry@redhat.com, aharivel@redhat.com, vchundur@redhat.com, cfontain@redhat.com Subject: Re: [PATCH] ice: Add get/set hw address for VF representor ports Message-ID: References: <20240131080847.30614-1-ksundara@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240131080847.30614-1-ksundara@redhat.com> On Wed, Jan 31, 2024 at 01:38:47PM +0530, karthiksundaravel wrote: > Changing the mac address of the VF representor ports are not > available via devlink. Add the function handlers to set and get > the HW address for the VF representor ports. > > Signed-off-by: karthiksundaravel > --- > drivers/net/ethernet/intel/ice/ice_devlink.c | 134 ++++++++++++++++++- > 1 file changed, 132 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/ethernet/intel/ice/ice_devlink.c b/drivers/net/ethernet/intel/ice/ice_devlink.c > index 80dc5445b50d..56d81836c469 100644 > --- a/drivers/net/ethernet/intel/ice/ice_devlink.c > +++ b/drivers/net/ethernet/intel/ice/ice_devlink.c > @@ -9,6 +9,8 @@ As Jiri already wrote, you are not changing MAC of VF in your code. Try to look at ice_set_vf_mac in ice_sriov.c. In current implementation you nedd to set new MAC value for VF and reset it. You shouldn't use PF VSI. Pointer to VF you can get from representor struct (through parent VSI). You shouldn't manage the rules during MAC changing, as in switchdev slow-path there shouldn't be VF MAC rules. It can be problematic as user already can have MAC + sth rule (which also needs to be change). I will leave it to user (most probably the MAC change happens before adding any rules). In few days we will send patchset for subfunction support where the subfunction MAC chaning is implementing from devlink API. I will add you to the CC. Thanks for working on it, it is a gap in our solution. Thanks, Michal