Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2473222rda; Wed, 25 Oct 2023 04:00:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQp9Q0U8w4sqA+dqgR4izpi42ZCeLgcd70sJ4pyZXCVBkeqfYxS3c2s9oVosdhqIwLk0uO X-Received: by 2002:a05:6870:9e90:b0:1e9:9c04:9ca4 with SMTP id pu16-20020a0568709e9000b001e99c049ca4mr19537857oab.41.1698231655855; Wed, 25 Oct 2023 04:00:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698231655; cv=none; d=google.com; s=arc-20160816; b=UoZey7YXjsmLSzhqJ6wDY5+URyUgfYmwyOsBwOQ/zJ8PiTXvKhQXxZkur5JDJRf0e2 alZZH/hxpXQdh6Kc5k/LJEtVubSxChzddGRdFWRJ4BQlEplVFVGLPzbuiUTFX+G1jD1W CHCNmfjoHl6goEihY7v1E4EPXhwUXDHA8r48OE2SrUXbQA2245lTnQPGJreNVH/Aw7LY jK+8b1O2XGEPK3N9zgnQvhBWoqlHZLqYJSuD3v6AU+MjHozn7qao9qiQjPELEcILAKFV MQt+Qd2FNUXVjF1SDEqv17WUOocpY3nkrRiwy12Nm5MYGDr5m2vPYi7BDFqYpFUzQq9n dBFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hbl9d2tDVXT45ZlkhFJ2cNIXoUOP4mWOh9E5YishFi8=; fh=hhMJ1IH5jsaNs/iJy6xKKw5JkB3l0loBuIDYA/HZDLY=; b=nzBlXNdGputxkAiSgr+CCJBnS2YRkkt6eP6nAUtfs7aq+G//htCbYh8n1/rRGeXIkq WeORJ1c/jD7S/1LKqH0zOi0xy5o/R2qyaiB1u6bFHE/9KF1ho77GLkGPc53Bp8Ku/3qT IoGwSy2g7UfTlO/dEaXvAjgjXcNoFkfSkqnbGuvhahW7i7rBWmoZFRbZiMzriJDM1VVj qeYIW3xi7nOoF+mi7BJyJ48EPhYAFh9GUqrBXM3F99rOfq0ObeeiDpWQCDF6xQR9CVCF +8eALZHnLQMtriIM4lkpM7dy/vke24M14VVYu4BckNbZZS0pAJ55tqB8qrhroyD8wTSy 3T0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L4CsUodU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id x79-20020a81a052000000b005a81db314fdsi10920926ywg.420.2023.10.25.04.00.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 04:00:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L4CsUodU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id BFC7D8078982; Wed, 25 Oct 2023 04:00:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232076AbjJYLAE (ORCPT + 99 others); Wed, 25 Oct 2023 07:00:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjJYLAD (ORCPT ); Wed, 25 Oct 2023 07:00:03 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B30F1C1 for ; Wed, 25 Oct 2023 03:59:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698231557; 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=hbl9d2tDVXT45ZlkhFJ2cNIXoUOP4mWOh9E5YishFi8=; b=L4CsUodUg8/5OHDWmKzfKNzUo/IT/DvkEktBVWhI5EM2mVukCyJgi58gDjMd8E3eH7I5Az L1KYNtfxptu6FlnLLoceIfn96DlAvf9XudRcqEzkcfao1mAISixKAcSLTtO6Uz05Bb0gUn byIbgUPIfPZXC7ol9uUAQCXRVlrqPAY= 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-692-T7Rw2M5QPlWoXC_SolU-0g-1; Wed, 25 Oct 2023 06:59:14 -0400 X-MC-Unique: T7Rw2M5QPlWoXC_SolU-0g-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (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 5733F101A54C; Wed, 25 Oct 2023 10:59:14 +0000 (UTC) Received: from p1.luc.cera.cz (unknown [10.45.225.62]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5086F492BD9; Wed, 25 Oct 2023 10:59:12 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Cc: Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org, Jacob Keller , Michal Schmidt Subject: [PATCH iwl-next] i40e: Delete unused i40e_mac_info fields Date: Wed, 25 Oct 2023 12:59:11 +0200 Message-ID: <20231025105911.1204326-1-ivecera@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 25 Oct 2023 04:00:11 -0700 (PDT) From commit 9eed69a9147c ("i40e: Drop FCoE code from core driver files") the field i40e_mac_info.san_addr is unused (never filled). The field i40e_mac_info.max_fcoeq is unused from the beginning. Remove both. Co-developed-by: Michal Schmidt Signed-off-by: Ivan Vecera --- drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c | 5 +---- drivers/net/ethernet/intel/i40e/i40e_debugfs.c | 3 +-- drivers/net/ethernet/intel/i40e/i40e_type.h | 2 -- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c b/drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c index 1ee77a2433c0..4721845fda6e 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c +++ b/drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c @@ -827,15 +827,12 @@ static void i40e_dcbnl_get_perm_hw_addr(struct net_device *dev, u8 *perm_addr) { struct i40e_pf *pf = i40e_netdev_to_pf(dev); - int i, j; + int i; memset(perm_addr, 0xff, MAX_ADDR_LEN); for (i = 0; i < dev->addr_len; i++) perm_addr[i] = pf->hw.mac.perm_addr[i]; - - for (j = 0; j < dev->addr_len; j++, i++) - perm_addr[i] = pf->hw.mac.san_addr[j]; } static const struct dcbnl_rtnl_ops dcbnl_ops = { diff --git a/drivers/net/ethernet/intel/i40e/i40e_debugfs.c b/drivers/net/ethernet/intel/i40e/i40e_debugfs.c index e0849f0c9c27..88240571721a 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_debugfs.c +++ b/drivers/net/ethernet/intel/i40e/i40e_debugfs.c @@ -147,9 +147,8 @@ static void i40e_dbg_dump_vsi_seid(struct i40e_pf *pf, int seid) " state[%d] = %08lx\n", i, vsi->state[i]); if (vsi == pf->vsi[pf->lan_vsi]) - dev_info(&pf->pdev->dev, " MAC address: %pM SAN MAC: %pM Port MAC: %pM\n", + dev_info(&pf->pdev->dev, " MAC address: %pM Port MAC: %pM\n", pf->hw.mac.addr, - pf->hw.mac.san_addr, pf->hw.mac.port_addr); hash_for_each(vsi->mac_filter_hash, bkt, f, hlist) { dev_info(&pf->pdev->dev, diff --git a/drivers/net/ethernet/intel/i40e/i40e_type.h b/drivers/net/ethernet/intel/i40e/i40e_type.h index e3d40630f689..76bcbaec8ae5 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_type.h +++ b/drivers/net/ethernet/intel/i40e/i40e_type.h @@ -270,9 +270,7 @@ struct i40e_mac_info { enum i40e_mac_type type; u8 addr[ETH_ALEN]; u8 perm_addr[ETH_ALEN]; - u8 san_addr[ETH_ALEN]; u8 port_addr[ETH_ALEN]; - u16 max_fcoeq; }; enum i40e_aq_resources_ids { -- 2.41.0