From nobody Tue Apr 7 05:57:35 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 C15FA38D6A9 for ; Mon, 16 Mar 2026 10:42:27 +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=1773657749; cv=none; b=dZ0DlXKgH4y4KZx6919hG94e4gg/kpUxzJfV196Xed3qb47pgzFX9tmVlkeSjWDzaYEH0YY41bcf+u9Rszw443DZzvj/CEGyfnoUTUTxZZq+a2Bf0OVdJX4Gd6ouj3Krjkc6fEfmkzNeikzI+YiGUGcSFr7nKI0K/GfqvGYcgiw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773657749; c=relaxed/simple; bh=c2KF/gaurLuOL9n21+yl+uvd1IemrDLGiIKtJu0QIBg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Gr7HxduTW4cushtwt/c6zeaFy9AoMioBlfGSB3GvFGb4DNNZMP6RXyP3R6cufGylCku32zi8vcosNYzM/3k7/iJMx6HMo0QFF86BaAvIzJKgCyoRPcuchIJt5SiUMKbanlWGs6SP9WwQTSsju7EgEx9lSJv7m20yuu/E8ybAFC4= 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=UBheTNUA; 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="UBheTNUA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1773657747; 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=UBheTNUAzPemebpGLYqHnV7DpEktMOlHBgHDC4i6GQKOeDU9U0PZm7xUQRlhyyrUD8Q2bd Ke/EVZ62dtVLTUnL0eartVmLYhEqS97L8OXJMOJ93dHOOEUfcnHflzWOnoCDL1OpzV/wg5 zPmXxqNsfSH/ikaHC4M8NjJD/68QhoY= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-663-k1oUlIuWOZai5fgpmNXITQ-1; Mon, 16 Mar 2026 06:42:21 -0400 X-MC-Unique: k1oUlIuWOZai5fgpmNXITQ-1 X-Mimecast-MFC-AGG-ID: k1oUlIuWOZai5fgpmNXITQ_1773657740 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id CE89D1956065; Mon, 16 Mar 2026 10:42:19 +0000 (UTC) Received: from ShadowPeak.redhat.com (unknown [10.45.224.235]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 6D859180035F; Mon, 16 Mar 2026 10:42:16 +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 iwl-next 1/4] iavf: rename IAVF_VLAN_IS_NEW to IAVF_VLAN_ADDING Date: Mon, 16 Mar 2026 11:42:06 +0100 Message-ID: <20260316104209.1285962-2-poros@redhat.com> In-Reply-To: <20260316104209.1285962-1-poros@redhat.com> References: <20260316104209.1285962-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.4.1 on 10.30.177.111 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 --- 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