Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1717845pxx; Fri, 30 Oct 2020 18:01:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybRmveKlQXgsivudusiLqK8Eo6WDbi7rMjpFIqayD9OeWMWwf3VqWgv7NM1ZkG+EliWlhi X-Received: by 2002:a17:906:6d48:: with SMTP id a8mr5022429ejt.502.1604106105981; Fri, 30 Oct 2020 18:01:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604106105; cv=none; d=google.com; s=arc-20160816; b=Iy7OWu7ZH0lZS5XOYQB4Ttq5oUHd1H2aclhs47Ee6LNnpv9DN/bCnFdBttW2MuN8ON froml2g4c1Bal65NGGZM2usDWKKaSpuFUPD8yGU0DEanfgkynjK9nX+7pA8OcCdKamzs +tXK5u/xDnbwgVqSrMGYfZGtAvUrNdH77BPMgWOmyM1IJvFWWgymcSD62CGzN1RCtyAQ W8KLVZLEB0h+2XeyViw/SP//a6wHHoPWqpUhO+poEq6DkcoCQYH2HMtZgANudM6yhdx0 HC4RVgV972JFP+qMs4ziKAThqZy3TZIvE73achvacTpYuTh7CHiD22X4LkwNyIHlZsQt 2BkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=bawuruG3r1Q/y8YwSIGhpaD8KbYTKzNT1foGEHlQw1I=; b=VQ1b+kM4XTeqEEryUls6RARDtxRkzZkf9J0ydu3cRxshlR2R12+UGr4hqXec4eItpf Pty2+iMSot1b5+DmhRy9IGer5mqMRhU4V3alyJEF0d4ObTKJ3bMgBCRfAA/TRdx2k+Nw k6MiMCidKZriefQwLubz1BGgwXR4oAK3IwZDgEqdj36Y49OAfrwTrU264BcdgCdtcWxG hGJPcQgriD0xkcqr1L96vGd7X6k4ZlE420dVdTgDmaHYRIjldlJz+gN+fnno1KZdO8EN OiNdFXmj0bO+GFQifoglq3/fa35ZHHxueaOHdSr7my/ZvOVWPzDSXyO2vpuPG84gIJx1 mnZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="W/hL/Fpo"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si4555633edx.567.2020.10.30.18.01.23; Fri, 30 Oct 2020 18:01:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="W/hL/Fpo"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726136AbgJaA72 (ORCPT + 99 others); Fri, 30 Oct 2020 20:59:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:52550 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725536AbgJaA71 (ORCPT ); Fri, 30 Oct 2020 20:59:27 -0400 Received: from kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net (unknown [163.114.132.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 091CD2087E; Sat, 31 Oct 2020 00:59:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604105967; bh=cVlkYBQn4AVUKpo9IrkEihc7Z9GmAo1XSN3I3NkOHfU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=W/hL/Fpon9IaclV9nSVJhHw0iiobWpti0PMBQihqHSX3+X7/iD2bkD3UGNzyQ2A93 NFLbxqRMAW87SHo6rR1eMtEaHHvsXeUB3c0fNXpFZQh6lLeeXXOwr/zTCqBYOjOT1z BWHoWIbbT5XzigepQJ2RRgCQ3dBgWVnTvqZbryV0= Date: Fri, 30 Oct 2020 17:59:26 -0700 From: Jakub Kicinski To: Vladimir Oltean Cc: Roopa Prabhu , Nikolay Aleksandrov , "David S. Miller" , bridge@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: bridge: explicitly convert between mdb entry state and port group flags Message-ID: <20201030175926.5e30a1e6@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> In-Reply-To: <20201028234815.613226-1-vladimir.oltean@nxp.com> References: <20201028234815.613226-1-vladimir.oltean@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Oct 2020 01:48:15 +0200 Vladimir Oltean wrote: > When creating a new multicast port group, there is implicit conversion > between the __u8 state member of struct br_mdb_entry and the unsigned > char flags member of struct net_bridge_port_group. This implicit > conversion relies on the fact that MDB_PERMANENT is equal to > MDB_PG_FLAGS_PERMANENT. > > Let's be more explicit and convert the state to flags manually. > > Signed-off-by: Vladimir Oltean Applied, thanks!