Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 6E4286214D for ; Wed, 15 May 2024 14:22:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715782943; cv=none; b=VYGVtEo7UJhZ6CAtN6B/rf2JTSvmnf4m7JzwuTSuXsTcHF+fycMNXYnWqNp3BuVRrEnyHbsSrfImfPO4g6AYG0ZWI0p2HAJsGEvXdiJVhBYzZKGxCpCivgvK2Kq82iJSCRZAdRykM84AVaqvOlqQ/JiOdOhzcgddM1GGvdhbIrM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715782943; c=relaxed/simple; bh=NxGDLbAcKdwbtB6J8mw2EZXSli0OWp4mkgAH1PlvTWY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Nzn85bPnOSje41bKfuLX1RUWVdYUXR84HH52kSBak1v3H2gmbyHQPl+Ne60Ywwg+LkUumJsODSyrxuDHplBMotRe9vIAu3NPbKUpQznLJ+8Ox2bBc5QSInYTp8y+i9woBuMBydudwAyeaWOxrN0e3P28QRzsOX9GhgOGQhHakyA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=aFQ1MO4t; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="aFQ1MO4t" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715782941; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=QlQKAhS3Nec4t63RXRL98E390ZIIDklcYvobV4PMdfI=; b=aFQ1MO4tIUsix2385dupMSJTIFviX1p5I0bAnLO9fnS7w+LZY0qj82YHc2qO0W9KPCvfy4 xXcd7/dDrsL1VaE7cS5rvV7NjEONoGKIGFnNLLUAcaDfz8t0MZN2FEk/ihAcHk/LBmaPcs KaXB0NVupNhtxgNGf2Cxk2RCvKa9lIg= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-363-w8YsbS0INcuFErP9kKATHg-1; Wed, 15 May 2024 10:22:18 -0400 X-MC-Unique: w8YsbS0INcuFErP9kKATHg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AFF523C0E642; Wed, 15 May 2024 14:22:17 +0000 (UTC) Received: from ksundara-mac.redhat.com (unknown [10.74.16.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 460B51C22B67; Wed, 15 May 2024 14:22:09 +0000 (UTC) From: Karthik Sundaravel To: jesse.brandeburg@intel.com, wojciech.drewek@intel.com, sumang@marvell.com, jacob.e.keller@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, horms@kernel.org Cc: pmenzel@molgen.mpg.de, jiri@resnulli.us, michal.swiatkowski@linux.intel.com, rjarry@redhat.com, aharivel@redhat.com, vchundur@redhat.com, ksundara@redhat.com, cfontain@redhat.com Subject: [PATCH iwl-next v9] ice: Add get/set hw address for VFs using devlink commands Date: Wed, 15 May 2024 19:52:06 +0530 Message-Id: <20240515142207.27369-1-ksundara@redhat.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 Dear Maintainers, Thanks for the review and suggestions for my patch. v8 -> v9 -------- - Rebasing against dev-queue branch of next-queue tree v7 -> v8 -------- - Added const keyword for the parameter ``mac`` in ice_set_vf_fn_mac() v6 -> v7 -------- - Addressed Smatch and checkpatch issues v5 -> v6 -------- - Changed data type of vf_id to u16 - Used container_of(port, struct ice_vf, devlink_port) to get the vf instead of ice_get_vf_by_id()/ice_put_vf() v4 -> v5 -------- - Cloned ice_set_vf_mac() to ice_set_vf_fn_mac() so that the parameter ice_pf is used instead of net_device of vf - removed redundant error handling v3 -> v4 -------- - Released the vf device by calling ice_put_vf() v2 -> v3 -------- - Fill the extack message instead of dev_err() v1 -> v2 -------- - called ice_set_vf_mac() directly from the devlink port function handlers. RFC -> v1 --------- - Add the function handlers to set and get the HW address for the VF representor ports.