Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1687217rdb; Wed, 31 Jan 2024 06:20:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEKfBkmpC3XTTtUChNzXHd7YwJEUGzW0hqj+J2sNqBGoFVj/Zg4De6BBG/YsObh6eP2Cg/ X-Received: by 2002:a17:90b:802:b0:294:855b:633b with SMTP id bk2-20020a17090b080200b00294855b633bmr2010947pjb.32.1706710833086; Wed, 31 Jan 2024 06:20:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706710833; cv=pass; d=google.com; s=arc-20160816; b=DTPvX7kuU3lt2SYoIDPbYNKsBVxz1VaAz3WV0pZk+zKlJ0MZybxV4ZWDMTYHVyQL9s D05LECms3NLU81y8WbeHT5jiMdUsZBUBRlkzkM5bYjquh7RshpUJzLnZy6eQerTcHmn4 l7zi/eIVxX5sCO49io3DKwfhIa7c+2GPJqek7ZYOAeghPkuUsP3lkfy0cl79+HPPP9Y5 T2YUeS9O2vhi+vKF/OC26XJdrZIRnmjYFSjPYEU0T7qk2ypdrBJfSO/oljpGsp/xr3of CijQGyhLHUb5bFvHmOIXl209Uyedv5rr4Dlawmx/aupkV08hCJppXCP4OtXNcjG6iKI9 BWVA== 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=HRIlhUmLDjTPjpQJWhot1CNU7PKVSI6pop1UZB6zBPk=; fh=uZPZ2ENEh5/C7/v24OIdFmJ7o6F9xSbDMTQ7yNIJ8wQ=; b=tjHDg2GXjgCbJA1Xy24zB/l2iHVCAQFge4MhPoyuzqpEdLhCbJ7ZXI+09m3HvRO3n6 Tl8n5n9YNZPg40Q+Zt9yXVonN8/Cxkxvpj3gBGo2Ng0YNORyCfMI617IUJHidCmd7laa LSMRcaRUq4p4m621PhhG8WS5QSfSC/EJU0zGcCgKcXOOqi8attWwjL/dzE1hchZpNXVy 33smLJpGQb9BRWvZNS+3G7ze7MV2G0+Ob9rGS6Q3mYOCuaAAzxWeMQhNFI98pFRBnbCZ qyAw6B09yRX7Rh6UTk+BzZhgGSJOtrs6Kknmh3fUBqA0dT3A8YoXWvMlY+CoeN+umU2f C/JQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b="uPz8u/DH"; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-46392-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46392-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCU+bCfc0m9uaxHXVlb3+K06qVVVXEuFu2nGSRLweZiQR/dfc7lkCSjV22w6jQ5tdse3h3MQpUf/6CWS3SOel8tQ2Ghk8OjWwxIGOCKUBA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x3-20020a170902e04300b001d701962b21si3414851plx.490.2024.01.31.06.20.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 06:20:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46392-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=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b="uPz8u/DH"; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-46392-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46392-linux.lists.archive=gmail.com@vger.kernel.org" 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 452C928D252 for ; Wed, 31 Jan 2024 12:00:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1D2D78679; Wed, 31 Jan 2024 12:00:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b="uPz8u/DH" Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F179768FA for ; Wed, 31 Jan 2024 12:00:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706702412; cv=none; b=B/9hh37J8MxmP+UuqZcCRHFLVSW/6g/XwJqBJeb7p7cjqqNfS9VrhwzrbaCQa9Qb7fqz8qB9VsURYJgKq+Sg0P215zcxj8E71kPrdO1+mlgpFNDd1rW6hXmv1dbegBi1HFEekVfU4F2x0RNhfd6CZVgX+aX03cn8pqlq1yiTUOA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706702412; c=relaxed/simple; bh=mbaGmg6mYMDAv6U0bRENMo1BCyzpuN1OGZkDhvhXR0E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CeNBgmvKSfAr4rzRoXbQYPiUxW8AjJhZsqYRMBsifsHiPvD0TrVmi80Lny+wo13fL2vxNwL9J61Nb8F982h1Q1VTs4qK8MGgkHa3uc75NRQy4UY9K5aJB13V/dz2qQgJITKxmQCwK4GjiqXuF9kv0NNw1KQYMgKwBg7Mdcl37Ck= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us; spf=none smtp.mailfrom=resnulli.us; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b=uPz8u/DH; arc=none smtp.client-ip=209.85.221.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=resnulli.us Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-33ae3be1c37so494003f8f.0 for ; Wed, 31 Jan 2024 04:00:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1706702408; x=1707307208; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=HRIlhUmLDjTPjpQJWhot1CNU7PKVSI6pop1UZB6zBPk=; b=uPz8u/DHZEW7QjqmfmPZUKoTFrDZJRlQYAfRuxN4zsvBBZc5t3d+y8z9mYhMNE+TCA 28tP7hYJ4hBpANJsjAhVjSfC0ghdnC33MduTWnylpBJ0wgRA8lTFIttN8ABd+hUf+Eul o1XUXwa9xxdJEsKfSwyoF1ICmPjw9Mf29y335BT3HlMp9K2KVnXRkgFThV0Q79Jeh73I +N0WCzmGjgPWmbMQIqAsIwZtRUAXUUfSckx8wtyTmS7Ia2n5mKJSj72M9thSdEWdwBQ5 sUS4qsWraTr7Ep4ZwKg8q5fVFi1ztPG8iKtmlxFVIUxJMdt0vHkt4YTAciD9i5nbyRor I2fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706702408; x=1707307208; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=HRIlhUmLDjTPjpQJWhot1CNU7PKVSI6pop1UZB6zBPk=; b=tHYmZRFW811hY+j3T/wr+0dNJmURTaG+l7JUHXDOz44+V/J8b2r9BMfWinIxlepINv MVujkidgik/vmzZKf4MnGdBaR0NuWHhfrn7XIYvdw0XEPhwGzdL5lBvQk+78VVw4Sz7L 4k+h6Y6hhOEfNnvkEZmMzzrwGzhlu8q5m1bEMme4Qd+vpwHkKKCjYS6+vJ/1vRkOqwUM GRKkswtnXQ68yVDVRHq65cS3jjtuJDIhs19J6S9zWMmCkoo84GcCcuxPk27XQM+YtFux M8gBFqG+TXpRRdvqAY6cr6kIyjei22AJy9YkMV1+VDlYrzuWwag0encZIzwcIZplhf9c Zeog== X-Gm-Message-State: AOJu0Yxicz1qGgbUfWDKUmPWfDq/l0yaL1XAputyWF/qP5sxFGiQVh/c PrksGgmvzgJJlm6FGRf6BwkQh/vNoF2merb9NCOclDThCnUR8B2TbubragZhyDs= X-Received: by 2002:adf:dd8b:0:b0:33a:ded0:c309 with SMTP id x11-20020adfdd8b000000b0033aded0c309mr1288727wrl.13.1706702408470; Wed, 31 Jan 2024 04:00:08 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCU/uzCB3VwH+x4UZ0/JI+iYwp4TEf7h9P3oHFQu4kmLs2PpqfRUeMAuxSO2exbX8NFFnywp9GbXo9B0FY00u6gCHLamjEQFCckgF5FkQjjJtzeQxXC2AJxKfNm78BC6gqliQ9xHevRjGoOQ33Z5xahTB0cofWFeJ42FqQQFHCd2w8Kl2roAuskO5t/99Y49u1DiRdjrujfdB61Wo1J+QrPFK6s/SbDz86ixx+uyLMrCWo6z195T4OBXWsW5q2RYnQI5OODIvHQIn7Leh3JBndKSfm9r1xSISWUbihBsp3Pno0GQuIAxX8+9z1ip5PFJvmp9gGjnE0RUCIWuxPyCL9/CLzVg1Zqgjx92LA5FCZgDZFh2y1LYIV8ZVQStOu4/oEqFX8+K7Nrg9+fFdNiX7xmDig3ttLbaGZbIw74ofQJNPxU27aQhNdKNNY4N0QienQ9zXSHD6h3qhbZEY9IDheZpmCOjymOsAUtknS/q8nbmWA== Received: from localhost ([193.47.165.251]) by smtp.gmail.com with ESMTPSA id ch19-20020a5d5d13000000b00337b47ae539sm13337744wrb.42.2024.01.31.04.00.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 04:00:07 -0800 (PST) Date: Wed, 31 Jan 2024 13:00:04 +0100 From: Jiri Pirko To: Michal Swiatkowski Cc: karthiksundaravel , 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: Wed, Jan 31, 2024 at 11:43:44AM CET, michal.swiatkowski@linux.intel.com wrote: >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). What if it is in a different host? Would you still be able to change the mac? > >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). Rules are on the representor, not the VF, correct? Seems unrelated to me. > >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 >