๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26231

Re: [PATCH net] selftests: net: nl_genl_mcast: unload drop_monitor if already loaded

#26231
From: Nicolas Dichtel
Date: Thu, 03 Dec 2026 09:07
24 lines
12133 bytes
Le 02/12/2026 ร  16:41, Matthieu Baerts (NGI0) a รฉcritย :> The bind_before_family
subtest is skipped when the NET_DM family is
> already registered.
> 
> On the netdev CI, this happens each time nl_genl_mcast.py is executed
> from the same VM after drop_monitor_tests.sh, which loads the
> drop_monitor module via dwdump, and does not unload it.
> 
> Instead of skipping, try to unload drop_monitor first, and only skip if
> NET_DM is still registered after that, e.g. when it is built-in or in
> use. The subtest already unloads the module at the end.
With this change, the test now unloads a drop_monitor module that was
loaded by someone else, and does not load it again afterwards. This is
fine on NIPA, but on a developer machine where drop_monitor was loaded on
purpose, the test leaves the system in a different state. Would it be
worth loading it again at the end when it was registered before the
test? If not, maybe the commit log could say that this is acceptable.

Anyway, the fix LGTM:
Reviewed-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>

Regards,
Nicolas
Technical Details
Message-ID: <f47eb739-f42e-4d16-bd3a-14d7c92fdae4@6wind.com>
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376427-linux-kernel-netdev=dewy.ru
References: <20261202-net-genetlink-sft-skip-v1-1-87cb0f64d522@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376427-linux-kernel-netdev=dewy.ru
From: nicolas.dichtel@6wind.com (Nicolas Dichtel)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] selftests: net: nl_genl_mcast: unload drop_monitor if
 already loaded
Date: Thu, 3 Dec 2026 10:07:45 +0100
Organization: Usenet Network
Message-ID: <f47eb739-f42e-4d16-bd3a-14d7c92fdae4@6wind.com>
References: <20261202-net-genetlink-sft-skip-v1-1-87cb0f64d522@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2444021"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:DJbUk0x8u+Fup1tqU2Kw0rLq95Y= sha256:dqPSqVyhxcg6+N1rndy0k+I9c5D/TeJwfhiTHRBlPXo=
	sha1:ArsmZLqg/XQHcyUEIdigTjK28Kg= sha256:CZ3RNes+BVaetO+o2jjmBY/q8a222F2+vUT2X/MKtyU=
Content-Language: en-US
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id F05D5117894; Thu,  3 Dec 2026 12:08:02 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=6wind.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 4AWUvckEHa-W;
	Thu,  3 Dec 2026 12:08:00 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-376427-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=6wind.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id A9992117889; Thu,  3 Dec 2026 12:07:51 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 1758F241E3; Thu,  3 Dec 2026 09:07:50 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796288870;
	b=4n5yLy2fbChy8ANZNRow/zZzfOk6noQloZiwzxSEptaYW00nvb/z1/FJl5dU00gZoeLx
	 YEhd5x9VNDltVEpNX8byeRp9VyJFekcctXAjqnLHHV6ygxFnMotj+AgOBJ/Jc2fZ/Kh8V
	 ymN1WFbrv2DPwjRYu2rXJT/OrLTewNeCm3zyOzeqFjFa8JN2ATp2Dpyh/860gVXfKHcQA
	 tC1cBBG+rlrpFCNJ6UkG6btqmfn44LSALPpXMgumaZPd/vfWvO2CJfKEh8mhpjTMS0CNh
	 vBifdi9h6Dhbca8dC3i0SNo9PkCKlCdLdtJFlj4KzhzICFsndXyxxtLeYeNShf2UFHg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796288870;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 Received:Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 User-Agent:Reply-To:Subject:To:Cc:References:From:Content-Language:
	 Organization:In-Reply-To:Content-Type:Content-Transfer-Encoding;
	bh=yc9osb/dl/zO7RtuBIgOrQ7lEr3giS8SSM36Q1o4oK0=;
	b=mJiOgDFKIo9bGSDYNXglHXSEtQ8oltliBOsLmXJ+N95JGkDtP+hKZTQ8cDHsf84WJu1B
	 hvvh/o+1iqgy0842o+aMueNJETHZO54rj2w/5xvBF2BQbHscEHg+fltMbR6Axs/KAnULs
	 bsjpHBkTLjbjRfVKgyyO9xDxoM4+F7biq0gyONn6jYcreag+0JEVU3id1Wep8403qAQt9
	 6ryrqCmKZ+rw911NopHN7irkEceUg/suRY9+2aziBSlbke+alwsXBaoUeqaBaFqHH1klT
	 WJDjwfwGhzbjVwmJ7KlPZGtUxRMdIHHWv6pvE2SDVPXDfjlDyz0RRKuWHj36vDNJuGQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=6wind.com header.i=@6wind.com header.a=rsa-sha256 header.s=google header.b=OLrXu7ws;
	dmarc=pass header.from=6wind.com;
	spf=pass smtp.mailfrom=6wind.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id E485F606A334;
	Thu,  3 Dec 2026 09:07:49 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=6wind.com header.i=@6wind.com header.a=rsa-sha256 header.s=google header.b=OLrXu7ws
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.42
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796288869;
	b=XZ95Ha/tb+0PB/e+sGp7WAFWZ3HGEoHeU/s4gLUlG2CF825G5ZwZ1a7ZsyWNi6sNqtJF
	 gtUtGk0dunCEV+ZLF+mg5oTQoCidAlDfxRgWyb/qA7UK/m9e9Rg66sA+6QDolV3qPpjLS
	 UhJLQHsQxO+bYNIOnr/j+3iighLyh2TBzi3YGdgq0/vuQ37SSCfVClFnIUTiWL7Wx4q2u
	 2HiOxmxXiA5AdL6OEK4w5/QKeaijjNP4oCRuN/Eap99lXu+IabPW34f/6cr83mfXPTb+R
	 rzmIGeGaO7faYw2E6sNXPCLeM/MoAGFrBZxcN+e5UTAi5+Qe4qmxiRHTt380sLTjy5g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796288869;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Message-ID:Date:
	 MIME-Version:User-Agent:Reply-To:Subject:To:Cc:References:From:
	 Content-Language:Organization:In-Reply-To:Content-Type:
	 Content-Transfer-Encoding;
	bh=yc9osb/dl/zO7RtuBIgOrQ7lEr3giS8SSM36Q1o4oK0=;
	b=Xli8hnNoEauWsSklmMohbkPT2SNfkXMMTB/W8sfDBWRudOXM7olB5VTB4FrCyoGCbvV4
	 Wy9OEI/JXhCTizTlint1uaa+2lPVsaRSt+W5DvNGHc1//GPRb3x7h01jetMSg4Q8WsDG3
	 zM5K0KrgXWNjH+D4cWnrRUAaRut+9VlVqeRIK8s1REr+y4+In39byxUVodE75oZShQtND
	 3FJfAzZE29Od/E82C3cM6Jhibd11LKY9BDFq0TKlzmbN7pHEK1L+0KEXWmsPbSYNyfxTN
	 n776I0eJPS2ONR56lrhj0W9d2ck9g4RCJ87v8zN8ETI9Sz1phT8CUxu8+MrZgSCP0vw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=6wind.com;
	spf=pass smtp.mailfrom=6wind.com;
	dkim=pass header.d=6wind.com header.i=@6wind.com header.a=rsa-sha256 header.s=google header.b=OLrXu7ws;
	arc=none smtp.remote-ip=209.85.128.42
X-Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1E31606A322
	for <netdev@vger.kernel.org>; Thu,  3 Dec 2026 09:07:48 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A1E31606A322
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=6wind.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=6wind.com
X-Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4bb72b6e1b2so11993165e9.2
        for <netdev@vger.kernel.org>; Thu, 03 Dec 2026 01:07:48 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=6wind.com; s=google; t=1796288867; x=1796893667; darn=vger.kernel.org;
        h=content-transfer-encoding:content-type:in-reply-to:organization
         :content-language:from:references:cc:to:subject:reply-to:user-agent
         :mime-version:date:message-id:from:to:cc:subject:date:message-id
         :reply-to:content-type;
        bh=yc9osb/dl/zO7RtuBIgOrQ7lEr3giS8SSM36Q1o4oK0=;
        b=OLrXu7ws3pqKagYMY8v0PvM8m1xfc/emoIYobXonsLkw1gDmjwzCYSQEa10tT7boWq
         EYlUGELcnK9ryvR1oXCzPJje+E7+NLJvx+9GA/ceO2gIzhMp2yOU9zPnm3ddGYw+Dfc3
         19o2t4dE0FWF9ub4v7hg20wj0P/hEnJxgQvd2qECWLvzCdvo+rPV+0y7eGE0PswB66Ul
         3Fblw+mno+MR8X+b8B1rfIPkfrLSM56HuaFV78/Pnhblx9QxjA217+Gwlu+k1cJnNn3E
         Qu+f84tsqFLMSCngMp9Bz+le2A4Sogv7d5yC6hJ3645ChkQRFuP214dTxxICQg+JyfeW
         ZqMg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1796288867; x=1796893667;
        h=content-transfer-encoding:content-type:in-reply-to:organization
         :content-language:from:references:cc:to:subject:reply-to:user-agent
         :mime-version:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc
         :subject:date:message-id:reply-to:content-type;
        bh=yc9osb/dl/zO7RtuBIgOrQ7lEr3giS8SSM36Q1o4oK0=;
        b=wc3kQ1dBWXH0T4Z4Y+WV2qhYz3CeTkjxvJeoVzpQus7bX58q0ZReIVgd94i+zYrtZC
         AEJ2ZnooOhKHHphNi+d5OBRns54gPdjdX/QsncvENo/IefLyi1ECuednfv65AiC15AzP
         sTJKdnyOZWblCO5F7KCDwyZttVkjhcnk6kkh8Lg/sc1HGx164oO4uF0kCpeZD2lsNWgC
         66kV/6HTXkbJntRUoJAjiYBScskJLV3Km83nanyy7/mWdQhXSMH03S0uqWXX4t7+o6om
         IUeDuAGlqEquiqrzkgaCODKBNujqsbHo3ZUIHMuzE9HNY8y1mzsj6gphZXcDudUOxxP9
         8OzQ==
X-Gm-Message-State: APuU4Z98dDsBhDhReDOC3GuJU8zhnWfkOgtfVaSw62L+Z1nblL/KD3kZ
	56QAUNEd78DqOlXPOyvVqu9pw7NKmLK+k3XJcY2aKup+Bgp6d/4uwQZNu6FLuMePMVE=
X-Gm-Gg: AZFdTZcrSIVfQg3yPjKyfykXMGmXlg20VmMSBq+jH1ZbvBgx0oy1OZS5DvOtyLiFqeZ
	8gi+u1Eb0EIlsy7HOCQFMXlFyPZMiU4xrMHHGKfCWnHjIY7pn1uA9PLfkojbiUO79zZFIBoYXEL
	z2hiI1QLpMCMJ8RjXA2ujegn2eCNryXx/aaUtlzFXXEOrQnMavKU5erwCTo7AYrCcSw10B/1ckG
	1j1FVNIYEbRjrFfI/ZbrZaDnuMPmJOiFH3fKJVkFk26zhpOp0Bd8GCur/7sBfg2hYItlaAZmJyS
	Zk+5eFNgNI3w42Mr1ZfJxRWVxkcUNbD0K1yeHCHt5k7mdAg01ZblfhLD4JUo1M14Jv+mBKKjQgc
	N1fpd6EFFIXgRArLaJVfxEwip4PTAyPh9qY2NAzPWCaX64IysagGuuukdE0LDU+U/O/OIHDeg5L
	URhI+sHyKSXuCfPZIAHcqPL8zrnc3uQ40Yvbz55zmWraTwyxKJrVocawfAnIthoE1m5UgkCSRmX
	7a4jbqLG97+6yAjYfSzAb1K3eA8ihy8537gjnjGejtpnkXT1deKBC4voyQzkLBicCGGUose2q7A
	IthtqVbDy5/zqRhaxpFSbLKmEt19f68eyeB/N0KOguiu0GYSSjJwo9tVX590qNv7TcX/Ux89s/V
	cuhOO
X-Received: by 2002:a05:600c:a105:b0:4bb:bf7e:e264 with SMTP id 5b1f17b1804b1-4bbe2e64accmr11829535e9.2.1796288866953;
        Thu, 03 Dec 2026 01:07:46 -0800 (PST)
X-Received: from ?IPV6:2a01:e0a:ab7:2110:6a1d:efff:fe52:1959? ([2a01:e0a:ab7:2110:6a1d:efff:fe52:1959])
        by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbe0030c6fsm63830885e9.2.2026.12.03.01.07.46
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Thu, 03 Dec 2026 01:07:46 -0800 (PST)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-User-Agent: Mozilla Thunderbird
X-Reply-To: nicolas.dichtel@6wind.com
X-Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org
X-Organization: 6WIND
X-In-Reply-To: <20261202-net-genetlink-sft-skip-v1-1-87cb0f64d522@kernel.org>