From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8756C433F5 for ; Sun, 10 Apr 2022 18:00:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232884AbiDJSC4 (ORCPT ); Sun, 10 Apr 2022 14:02:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240531AbiDJSCc (ORCPT ); Sun, 10 Apr 2022 14:02:32 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B55C260DB7 for ; Sun, 10 Apr 2022 11:00:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id DD029CE1113 for ; Sun, 10 Apr 2022 18:00:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94FB6C385A1; Sun, 10 Apr 2022 18:00:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649613618; bh=flbQm9pdz61k2OfLsM8fnlztg37RQ54NFC0JRcUaj6E=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=qzLd6SHPwXuD2dA+W2vLyhofYNe+kDt+kVrH93OxJY1EkqpQ9dFCbqsL4FKmejlpH ub5hm5ydqfR0x2RlepqSIMRsJAs3f3ddFAhRPz5GHRaIMqGObH0PbBbGIqKz0vcy0t yYzvC0mvSqhB9WqBOSBWXmap9dXX+FMy5ouAQLiFIiFcw9TRAWn0PbClOjYoyGzo5I vi/YWXi3gAl6UNoEqozA1z8plVIMCN8vVRN90YYU3JNPT1xKGV9YJLmsVp3R6IQUuA n7J8V23AB2JTCX5ZKCQHlK+dM3tBYN6ApLKe91iS8b2PFfx8A5ZqgIbMgUSuLLuUvL kM1alWwqSG0Eg== Message-ID: <96ce3beb-7772-5027-5629-80932dc1aa5c@kernel.org> Date: Sun, 10 Apr 2022 12:00:16 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH net-next 3/5] netdevsim: Use dscp_t in struct nsim_fib4_rt Content-Language: en-US To: Guillaume Nault , David Miller , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, Taras Chornyi , Ido Schimmel , Petr Machata , Hideaki YOSHIFUJI References: <1f643c547fc22298afe21953492112de9b9df872.1649445279.git.gnault@redhat.com> From: David Ahern In-Reply-To: <1f643c547fc22298afe21953492112de9b9df872.1649445279.git.gnault@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 4/8/22 2:08 PM, Guillaume Nault wrote: > Use the new dscp_t type to replace the tos field of struct > nsim_fib4_rt. This ensures ECN bits are ignored and makes it compatible > with the dscp fields of struct fib_entry_notifier_info and struct > fib_rt_info. > > This also allows sparse to flag potential incorrect uses of DSCP and > ECN bits. > > Signed-off-by: Guillaume Nault > --- > drivers/net/netdevsim/fib.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > Reviewed-by: David Ahern