From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) (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 E051F1F2BAD; Wed, 16 Jul 2025 03:39:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752637193; cv=none; b=LKWH5mLvMxdsucZRw7zyzYbKUct/2hH9/FyL9+fu7nmX8bxhVGr1mPrRQVzb3KAqD6/cqXBJ63WZgTVm0RVgMr5qiUnm6slsxLnBoE09DoHHwls5dTXrwgRchLmcy9ifF+uprBwEesrZzIiphNDjWtzAFVhUfvzKeEkQZiUvGMo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752637193; c=relaxed/simple; bh=ht4L0EE8uzKsmnLAJcGoceCLucMT6AcamHdiD/fbMjg=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=rTub2eKvWn/jQ+ciisCm12qE9H3LSUNokoYKBtNR0OMUtLc33pR6WrxOnp2zhkCXKXK6AU4YCTsWL3qpz/oNOURAfCM9W3GELkdKYSpr68H5V7v7w2hrZvEoERnZ/8VRa9XlSkkD0VyF+46BvwIhIAnJydTz4SvijLhHc33UIno= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.174]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4bhhXY4ZypzHrSs; Wed, 16 Jul 2025 11:35:41 +0800 (CST) Received: from dggemv705-chm.china.huawei.com (unknown [10.3.19.32]) by mail.maildlp.com (Postfix) with ESMTPS id BFCDB1402DB; Wed, 16 Jul 2025 11:39:48 +0800 (CST) Received: from kwepemq200002.china.huawei.com (7.202.195.90) by dggemv705-chm.china.huawei.com (10.3.19.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Wed, 16 Jul 2025 11:39:48 +0800 Received: from localhost.localdomain (10.175.104.82) by kwepemq200002.china.huawei.com (7.202.195.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Wed, 16 Jul 2025 11:39:47 +0800 From: Dong Chenchen To: , , , , , , , , , CC: , , Subject: [PATCH net v3 0/2] net: vlan: fix VLAN 0 refcount imbalance of toggling filtering during runtime Date: Wed, 16 Jul 2025 11:45:02 +0800 Message-ID: <20250716034504.2285203-1-dongchenchen2@huawei.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: kwepems500001.china.huawei.com (7.221.188.70) To kwepemq200002.china.huawei.com (7.202.195.90) Fix VLAN 0 refcount imbalance of toggling filtering during runtime. v2: Add auto_vid0 flag to track the refcount of vlan0 Add selftest case for vlan_filter v3: Add Suggested-by signature Modify commit message description Dong Chenchen (2): net: vlan: fix VLAN 0 refcount imbalance of toggling filtering during runtime selftests: Add test cases for vlan_filter modification during runtime net/8021q/vlan.c | 42 ++++++-- net/8021q/vlan.h | 1 + tools/testing/selftests/net/vlan_hw_filter.sh | 98 ++++++++++++++++--- 3 files changed, 120 insertions(+), 21 deletions(-) -- 2.25.1