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 smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E054FC001E0 for ; Mon, 23 Oct 2023 16:30:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 94232417E7; Mon, 23 Oct 2023 16:30:01 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 94232417E7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1698078601; bh=Kp1VL+hY5j2FOKtakbDstk5Ijzg2KaXFFt3lMrng+7Q=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Cc:From; b=QNsxWfQOXb0hOAvwWSvfJXAoalcYqDkUOFaaROocNjdUp118h9qHuZzw/6PPlDgCv RoESvDSn1hQ4iwfURsnyPZVsV/HhqNbSQ+B2gsNdeLiXYmynDJkDawT1ZZ2uw7dcvy na+oO+1Sa+1UzHgkUvx5i42+rdlxynfcG60l6CyyGWla7mtWwTHpmzXqDSnmsz7cNj gOxoYJEIQ2xorCqNShZk27HNbRaP86xXjepM5E3QgYkgY8qegvlbmTaf14jdN0YUxc BMBcwwjH9R1Sw9+ynP+5JLgMtTI8Rt/Nci70mSq+2RWHLEf40fFRBWOX+Oyg7Wuiih +DTX2BPb/ZYYA== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id usTkFHDw4Iyb; Mon, 23 Oct 2023 16:30:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 76E15417DD; Mon, 23 Oct 2023 16:30:00 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 76E15417DD Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 86C5F1BF41D for ; Mon, 23 Oct 2023 16:29:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 6C75C6128D for ; Mon, 23 Oct 2023 16:29:58 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 6C75C6128D X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6Omx8auV369l for ; Mon, 23 Oct 2023 16:29:57 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp3.osuosl.org (Postfix) with ESMTPS id B8B0D61273 for ; Mon, 23 Oct 2023 16:29:57 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org B8B0D61273 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-680-tZq6VPX4Mye2f5hKABNMOQ-1; Mon, 23 Oct 2023 12:29:47 -0400 X-MC-Unique: tZq6VPX4Mye2f5hKABNMOQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (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 443E93827967; Mon, 23 Oct 2023 16:29:31 +0000 (UTC) Received: from p1.luc.cera.cz (unknown [10.45.224.17]) by smtp.corp.redhat.com (Postfix) with ESMTP id 528C325C0; Mon, 23 Oct 2023 16:29:29 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Date: Mon, 23 Oct 2023 18:29:25 +0200 Message-ID: <20231023162928.245583-1-ivecera@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698078596; 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=vUKxPOoWV9B5U7uvi2XDDGj+trRuDSgbS765fvrE7hM=; b=SOymM/MzP6b0CV3iUbkxmi8p9JzcMzC/ajymm0h1r5SlCIDbzUp+3P0B/nDKnPBSLZt6TF AbW2TjzgiTca2utjoIotM1XW9Ib79pKtzdckf/jDVWK1T1UypsoFIpesLYJzesiGXGFSyZ +NwAGdeP7kidHgUccScletKTsMnBNf4= X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=SOymM/Mz Subject: [Intel-wired-lan] [PATCH iwl-next 0/3] i40e: Add and use version check helpers X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-wired-lan@lists.osuosl.org, Jesse Brandeburg , linux-kernel@vger.kernel.org, Eric Dumazet , Tony Nguyen , dacampbe@redhat.com, Jacob Keller , Jakub Kicinski , Paolo Abeni , "David S. Miller" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" The series moves an existing check for AQ API version to header file, adds another ones for firmware version check and use them to refactor existing open-coded version checks. Series content: Patch 1: Moves i40e_is_aq_api_ver_ge() helper to header file Patch 2: Adds another helpers to check running FW version Patch 3: Re-factors existing open-coded checks to use the new helpers Ivan Vecera (3): i40e: Move i40e_is_aq_api_ver_ge helper i40e: Add other helpers to check version of running firmware and AQ API i40e: Use helpers to check running FW and AQ API versions drivers/net/ethernet/intel/i40e/i40e_adminq.c | 69 +++++++------------ drivers/net/ethernet/intel/i40e/i40e_common.c | 48 +++++-------- drivers/net/ethernet/intel/i40e/i40e_dcb.c | 7 +- drivers/net/ethernet/intel/i40e/i40e_main.c | 6 +- drivers/net/ethernet/intel/i40e/i40e_type.h | 68 ++++++++++++++++++ 5 files changed, 115 insertions(+), 83 deletions(-) -- 2.41.0 _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan