From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 69088315D36; Sat, 6 Sep 2025 00:57:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757120238; cv=none; b=oZbSbF59ssmljn2dgxr/E07Q2UTrpSv9vMdez9FZ0mrGLcmZfC0pMsMqExNsihMX8Tf2X+ze7mNjcaaLnLPku7CPgtWoHNFwIzJZvPqRPgDuy57TyRYuIldIdbxXiELX3LV4r5VmQcuQYke1wEYtyMSlk4dWSolApXrXdqkzesM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757120238; c=relaxed/simple; bh=+sxRfhIdsdoZlB5L4S41jEe1jcrgb7fs6x8au4XainE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=moBshDMjdmltVfgvmdKrGxRjTrspC5AZ2wmY67I/xAHl83oNpT7W7JzHscyVqNGZ9bRvxXEafaZicZmquY+nkrZiSK81morK3O6jtBqb87v7j/Nyc7vRbMgs1hUXUTbuzoFtA9LybtOk7lKp4sIj5cbgWB2mwDcrEbGIk7zzlSY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=q4dlJ166; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="q4dlJ166" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27C38C4CEF1; Sat, 6 Sep 2025 00:57:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757120238; bh=+sxRfhIdsdoZlB5L4S41jEe1jcrgb7fs6x8au4XainE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=q4dlJ166c3Mc7w9Hm0YH4+cdNBMm3EF+h/LSb5yMzlx+2HGzmNZigeJ/Ob94eUg2i +FVKln9eBdMT6lw6Tz8vKND7MoBptqArhWcgy+qfhFPqagpFTchir6P7QaKmzuPKrp KhEcJda1cRgJAqdWoW6rVITcu+8RNQyd35HaTxAnTzl9atJsxXjBpzM0hxDHfZFn8/ 5y8h0fDfvWNQEgRb41skSC0h3JyxNvf3vBOkHhGa0lTfuV23m9oj06sbnNWgY7aDof 3C0KRlxSTubHdeJ6U03jwmBfP3mM7kleLoLTBRUhZkwv9IfFPmzgYIB/MzC6GzXYtb aqJSz9GAUqn/g== Date: Fri, 5 Sep 2025 17:57:16 -0700 From: Jakub Kicinski To: David Yang Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Shuah Khan , Ido Schimmel , Yong Wang , Nikolay Aleksandrov , Petr Machata , Andy Roulin , Vladimir Oltean , Amit Cohen , Alessandro Zanni , Li Shuang , Xin Long , Cong Wang , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] selftests: forwarding: Reorder arguments to obey POSIX getopt Message-ID: <20250905175716.098114bd@kernel.org> In-Reply-To: <20250905173947.3164807-1-mmyangfl@gmail.com> References: <20250905173947.3164807-1-mmyangfl@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 6 Sep 2025 01:39:41 +0800 David Yang wrote: > Quoted from musl wiki: > > GNU getopt permutes argv to pull options to the front, ahead of > non-option arguments. musl and the POSIX standard getopt stop > processing options at the first non-option argument with no > permutation. > > Thus these scripts stop working on musl since non-option arguments do > not always come last. Fix it by reordering arguments. Have you tested this? You seem to be breaking mausezahn. -- pw-bot: cr