Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp265553pxx; Thu, 29 Oct 2020 01:59:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwC5aISrW2BZhoI7UBfzaDPFjeCK30cxmWnH7BT+mtaZ9kG6ODGfnulbHpe66VPSFxlCJC X-Received: by 2002:a50:ff10:: with SMTP id a16mr2875684edu.83.1603961940760; Thu, 29 Oct 2020 01:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603961940; cv=none; d=google.com; s=arc-20160816; b=ZN+D1VQJdAoYwRtQrNDV+/M3CjxxWoHYzSdLkDfGTYntwzTb12h/n8GgyVKKLUKkgr M16CymsWzyZBgsxU091dOWtSjBC2KG7frGLVGQL7B1vtINZ9GCpolvkQltmOkAMFadrs FKegEQFRRAmGBsnZzBa3vIUtj6UD3b9LSYnUQglLHL5sHQFTiPb+2WNazC90W0jx4G3A bMl8g5x/rlmiCgDPZKJnicnWm0P0cgsyE89yVGnMcsowj+hwSZVgJUOCEzSR9L7VV9rq KaitJQFjDMoliQ1GZnD6tL0fX8ERFMaEW53dgQKw9Y1D/rO4XdbvHc+/Ok4rNDtxnwUX H9QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=SfPETHJW2bmykg6fooNc2zKiaqTDW1VZc2TFcTnVdDQ=; b=Yd/Z8bpZErkaVB9xB9nkL5o/5cCsqPpBFvputHj32+5t1abtiSG1mxuV1wBIQuZKLN B3JosUtFCq/XsjDJaNA0WMP2ql2C5uUDMs39o0HhEz+WCi4h9O5cZnUKA3kOvOoPy86v 9fQw73jr+PbvluuQ2vcbqdVAZsSYyMNVfk6GwujPapITzCkYzjSkD1XVpmCTY5nMbxqe L14zjNWJ1HfMum3nrmyn0n2LtdPNr1POXtmxy26j3ENe5gVIytXVLwLmylA8BHwjS9C8 sMjc7SVkxTe1zljbFRGyjjczOJ4hzs05k30an8+RbG0U6EZQ3/YQZOY/f8bANvvlPr0Y /PqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=q9NVcsWu; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w15si1490800eds.448.2020.10.29.01.58.39; Thu, 29 Oct 2020 01:59:00 -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=@gmail.com header.s=20161025 header.b=q9NVcsWu; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404461AbgJ2CiK (ORCPT + 99 others); Wed, 28 Oct 2020 22:38:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404438AbgJ2ChT (ORCPT ); Wed, 28 Oct 2020 22:37:19 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F1CEC0613CF; Wed, 28 Oct 2020 19:37:18 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id 13so1111009pfy.4; Wed, 28 Oct 2020 19:37:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=SfPETHJW2bmykg6fooNc2zKiaqTDW1VZc2TFcTnVdDQ=; b=q9NVcsWumb0BvVd7t17D7q3L8lpBvEaRkcqzGGHDO5z+CrqRkZZVXxPFOCIsMa8ZIe Qp8fnOFdoqcPhY5o6kNLTFnAqG3HXy2VlL48fWZunRI3BCDq1U4zNpFYCO58hdnqvF4R YTI/lxVtolU72nq3PJCsRLDTbkK+UilS5uhAM8FNcl1kthZwdJIYf4gHuPxjV2xAXA7u S2BrUs4fCcMT+UFa8nRtP4zIl25GSh/BMw1Uupazf26lM78cM3qF7wgFZFWcnfn7yAWm 0xgCZzk23S2WqWEnMXlPoPJfohI25dY09C3J4kq9ZrMCKDB7OSuK/Tt+nwXxzfhNAFgM s05w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=SfPETHJW2bmykg6fooNc2zKiaqTDW1VZc2TFcTnVdDQ=; b=hOPLJ54rTX/4TShVQ8Tfl0zHMLRNjhb5dQalzTbPMfZG/q7D6gIxDt2QftCY8e44z8 j7cAVnHAvfj83jefh9btazmxPMrdofHMYf8GDVT5M3SKptpGLdcTI9D6ZXr7PxWXIJR3 TJj7O2puI0U9W0Mytpip15QaEPrLNadDjE3SFqLGJZe0LRglaE0RQBAlAPBC9A6R0GRN ez9MDKj0hbZvxyf2QdNI30iMnk2HwH5+NYyeZf/E6b4JngHEEO7M7As3SXnHwGMYqtFC MbTg7AlfvajoxHfYCFT4PA/ja8pPW2iu4qJ5WE/0kYyVM4E5AHZNGu5pAKPDfwO1dHJy DRZQ== X-Gm-Message-State: AOAM533WJ9yHj7UonIN2hhpMGli4K2xtYo5B76St9q1Vsyb/18489Np0 qpiywS5DHaelU+hhxEAst6fe+KmPvio= X-Received: by 2002:a17:90b:204:: with SMTP id fy4mr2054895pjb.156.1603939037529; Wed, 28 Oct 2020 19:37:17 -0700 (PDT) Received: from [10.230.28.251] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id z3sm906832pfk.159.2020.10.28.19.37.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Oct 2020 19:37:16 -0700 (PDT) Subject: Re: [PATCH net-next 4/5] net: mscc: ocelot: make entry_type a member of struct ocelot_multicast To: Vladimir Oltean , Microchip Linux Driver Support , Claudiu Manoil , Alexandre Belloni , Andrew Lunn , Vivien Didelot , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20201029022738.722794-1-vladimir.oltean@nxp.com> <20201029022738.722794-5-vladimir.oltean@nxp.com> From: Florian Fainelli Message-ID: <5831e03c-1714-4ac8-3073-d18f807aff26@gmail.com> Date: Wed, 28 Oct 2020 19:37:09 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201029022738.722794-5-vladimir.oltean@nxp.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/28/2020 7:27 PM, Vladimir Oltean wrote: > This saves a re-classification of the MDB address on deletion. > > Signed-off-by: Vladimir Oltean > --- [snip] > mc = ocelot_multicast_get(ocelot, mdb->addr, vid); > if (!mc) { > /* New entry */ > - int pgid = ocelot_mdb_get_pgid(ocelot, entry_type); > + int pgid; > + > + mc = devm_kzalloc(ocelot->dev, sizeof(*mc), GFP_KERNEL); If the MDB object is programmed with SWITCHDEV_OBJ_ID_HOST_MDB then you would need this gfp_t to be GFP_ATOMIC per net/bridge/br_mdb.c::__br_mdb_notify, if this is a regular SWITCHDEV_OBJ_ID_MDB then GFP_KERNEL appears to be fine. Looks like this existed before, so that might have to be fixed separately. Reviewed-by: Florian Fainelli -- Florian