From nobody Thu Apr 9 13:31:45 2026 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 52A3D3446C0 for ; Mon, 2 Mar 2026 11:40:48 +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=1772451649; cv=none; b=acWxQgG4ePPI08ZuRolLoqwb7vB/QWGYMf1Uu0h2SmUTLAdoHnGfN2qtP7Fd4nPpmRXOdRFPmfPFw2Fd7tp4GMHkYoTN6Tj67zI7y0myzXB+VfZl3pYhxMKCfvJnqoMFELLh3avAQtXjmt0X+jRAz07ZNgmc3IL+yEoooxL6jZI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772451649; c=relaxed/simple; bh=c2KF/gaurLuOL9n21+yl+uvd1IemrDLGiIKtJu0QIBg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dGgPTzJP9RseTTGQ2e3JCTjt8+85/FMyK9n48k/Ag/eZnkWCeebwYdMj2+Quz/X42CBEoHOMabxJZTgp3hU5OReD+Q8bXY4/j+zKNQnRQ4HpQY6C0aM/LeRbM/DjQp2F8Co0XF79SNpAxfKGJiltVsn5gWB74D8szB95BIfqdQs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=iVHBly3C; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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="iVHBly3C" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1772451647; 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: in-reply-to:in-reply-to:references:references; bh=ncsRh6apqUu7E9HPi27BmsmzD0caQNYcAoNEUyrUMUo=; b=iVHBly3CxFUpX/f1Gttbs1TXszINjLvftuzjCis/sNuRzkimBQXnTz+xScWLKtfLztOpKm MpY7Q/tApAxq+wV9sWBTEH/ePpAzfTKIceOLzgIXcwZ/teBYzMaSj82kswTXj4H3u7Ujhh yeyJCRTaXC2BcWnCCTil3ofdlMkgXl8= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-19-1xsk06_QN0qcax7gYv94nA-1; Mon, 02 Mar 2026 06:40:37 -0500 X-MC-Unique: 1xsk06_QN0qcax7gYv94nA-1 X-Mimecast-MFC-AGG-ID: 1xsk06_QN0qcax7gYv94nA_1772451635 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 35E891800259; Mon, 2 Mar 2026 11:40:35 +0000 (UTC) Received: from ShadowPeak.redhat.com (unknown [10.44.32.50]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id C4E621955F22; Mon, 2 Mar 2026 11:40:31 +0000 (UTC) From: Petr Oros To: netdev@vger.kernel.org Cc: jacob.e.keller@intel.com, Petr Oros , Tony Nguyen , Przemek Kitszel , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH RFC iwl-next 1/4] iavf: rename IAVF_VLAN_IS_NEW to IAVF_VLAN_ADDING Date: Mon, 2 Mar 2026 12:40:22 +0100 Message-ID: <20260302114025.1017985-2-poros@redhat.com> In-Reply-To: <20260302114025.1017985-1-poros@redhat.com> References: <20260302114025.1017985-1-poros@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Content-Type: text/plain; charset="utf-8" Rename the IAVF_VLAN_IS_NEW state to IAVF_VLAN_ADDING to better describe what the state represents: an ADD request has been sent to the PF and is waiting for a response. This is a pure rename with no behavioral change, preparing for a cleanup of the VLAN filter state machine. Signed-off-by: Petr Oros Reviewed-by: Aleksandr Loktionov Tested-by: Rafal Romanowski --- drivers/net/ethernet/intel/iavf/iavf.h | 2 +- drivers/net/ethernet/intel/iavf/iavf_virtchnl.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/intel/iavf/iavf.h b/drivers/net/ethernet/= intel/iavf/iavf.h index a87e0c6d4017ad..8e6db72828ae14 100644 --- a/drivers/net/ethernet/intel/iavf/iavf.h +++ b/drivers/net/ethernet/intel/iavf/iavf.h @@ -158,7 +158,7 @@ struct iavf_vlan { enum iavf_vlan_state_t { IAVF_VLAN_INVALID, IAVF_VLAN_ADD, /* filter needs to be added */ - IAVF_VLAN_IS_NEW, /* filter is new, wait for PF answer */ + IAVF_VLAN_ADDING, /* ADD sent to PF, waiting for response */ IAVF_VLAN_ACTIVE, /* filter is accepted by PF */ IAVF_VLAN_DISABLE, /* filter needs to be deleted by PF, then marked INACT= IVE */ IAVF_VLAN_INACTIVE, /* filter is inactive, we are in IFF_DOWN */ diff --git a/drivers/net/ethernet/intel/iavf/iavf_virtchnl.c b/drivers/net/= ethernet/intel/iavf/iavf_virtchnl.c index 88156082a41da6..5114934fe81fa6 100644 --- a/drivers/net/ethernet/intel/iavf/iavf_virtchnl.c +++ b/drivers/net/ethernet/intel/iavf/iavf_virtchnl.c @@ -746,7 +746,7 @@ static void iavf_vlan_add_reject(struct iavf_adapter *a= dapter) =20 spin_lock_bh(&adapter->mac_vlan_list_lock); list_for_each_entry_safe(f, ftmp, &adapter->vlan_filter_list, list) { - if (f->state =3D=3D IAVF_VLAN_IS_NEW) { + if (f->state =3D=3D IAVF_VLAN_ADDING) { list_del(&f->list); kfree(f); adapter->num_vlan_filters--; @@ -812,7 +812,7 @@ void iavf_add_vlans(struct iavf_adapter *adapter) if (f->state =3D=3D IAVF_VLAN_ADD) { vvfl->vlan_id[i] =3D f->vlan.vid; i++; - f->state =3D IAVF_VLAN_IS_NEW; + f->state =3D IAVF_VLAN_ADDING; if (i =3D=3D count) break; } @@ -874,7 +874,7 @@ void iavf_add_vlans(struct iavf_adapter *adapter) vlan->tpid =3D f->vlan.tpid; =20 i++; - f->state =3D IAVF_VLAN_IS_NEW; + f->state =3D IAVF_VLAN_ADDING; } } =20 @@ -2911,7 +2911,7 @@ void iavf_virtchnl_completion(struct iavf_adapter *ad= apter, =20 spin_lock_bh(&adapter->mac_vlan_list_lock); list_for_each_entry(f, &adapter->vlan_filter_list, list) { - if (f->state =3D=3D IAVF_VLAN_IS_NEW) + if (f->state =3D=3D IAVF_VLAN_ADDING) f->state =3D IAVF_VLAN_ACTIVE; } spin_unlock_bh(&adapter->mac_vlan_list_lock); --=20 2.52.0