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 smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (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 5756BC00A8F for ; Tue, 24 Oct 2023 08:12:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id E7C5E84434; Tue, 24 Oct 2023 08:12:25 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org E7C5E84434 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1698135146; bh=VQpRPq4Wj9uoSPx20v3ceG8WWOv8GMcc/gLINjjLsjA=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Cc:From; b=AC6NNW089fGPFW1aIbuufIK2He7T2VrrlqCohpNHbbmJMheVpSpGD9gdR2DU0E3KR 7qOs1dUp26cGFfLfyvHPEXMnHIX+JW7Ff20+hL60+4IN2Lk+e6Y6Ta8v6rdT+Z/AKh cJ4a2Y71ld4GTolWAk7t69umy2twFQIKbzCumlRd9gKKBdGb7As6UVCDuZRnJUrhy9 uhSFY3mmAUEgktl8lBh8BLRGP7e/N2CLThhO0uwiuosiqxlmX9qB/BUeZ/sgboIWY3 1rjUvVSOhl4OhN7TDYQUViQLUue/KSCgvkeRI83gFgp/7NnG/mMjq2zuwn/qKW7EDp F3ozdjkDJjs2g== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qZ6IrobrCyOE; Tue, 24 Oct 2023 08:12:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id EF4228443A; Tue, 24 Oct 2023 08:12:24 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org EF4228443A Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 8E8501BF338 for ; Tue, 24 Oct 2023 08:12:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 5A73F6FA96 for ; Tue, 24 Oct 2023 08:12:23 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 5A73F6FA96 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 BBTdurJnuTCT for ; Tue, 24 Oct 2023 08:12:22 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp3.osuosl.org (Postfix) with ESMTPS id 949906F5FE for ; Tue, 24 Oct 2023 08:12:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 949906F5FE Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-277-yxYj-cPHOz2shsJQt_URWg-1; Tue, 24 Oct 2023 04:12:16 -0400 X-MC-Unique: yxYj-cPHOz2shsJQt_URWg-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (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 D73231019C86; Tue, 24 Oct 2023 08:12:15 +0000 (UTC) Received: from p1.luc.com (unknown [10.43.2.183]) by smtp.corp.redhat.com (Postfix) with ESMTP id DC239492BFB; Tue, 24 Oct 2023 08:12:13 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Date: Tue, 24 Oct 2023 10:12:08 +0200 Message-ID: <20231024081211.677502-1-ivecera@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698135141; 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=M4KgBKcWnOf+HdfkmOB81ZgiYiCuChuxsC6xnZ9eoT8=; b=GfrjyfmgHZ7j3YzCoskLDNjo2ZLPr45DsPNYrUcgNsZU3Fxqls+jaJfHgnDpmjgwafbSvC MgpuF4FQBBVnjBflrgTnTfHEKNmRN5woFy9ALLyhLfaoCJU7OVaWnOQjC0MarHYBsHkqcj zUNygIyiXA2wRsvQalSUtRq0075cylI= 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=Gfrjyfmg Subject: [Intel-wired-lan] [PATCH iwl-next v2 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 Changes: v2 - Fixed indentation 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 | 56 ++++++--------- 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, 108 insertions(+), 77 deletions(-) -- 2.41.0 _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan