Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp968814pxk; Thu, 1 Oct 2020 19:43:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdbRckpAJkPbWgUpTHR7JDCOqvQmggN4ng6nF69D8VZXC3I1AwZ/aNPSA9VgGUp4h+DsSx X-Received: by 2002:aa7:d296:: with SMTP id w22mr28846edq.327.1601606629236; Thu, 01 Oct 2020 19:43:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601606629; cv=none; d=google.com; s=arc-20160816; b=Rj7M44rfW7+s5/STc1yRHhPWUojb+VKFHIgyjIj8WOS+a9iz6d7Kl6e3taIedz03y4 ruRU8NAwfYPr5mFLRC4qc7d7EXiRCWVNytVDE+kxUwWCqgv/UZr7IJTfcQ64QqW5DY8U qFIaKgVD5AEMZ3ACgpfklGJoN8L8xiToxUeWFOkHchgPvN6tWGOykBFeBCQr+Kzlv6Os gakEPOYo1dS4DUxo6Cqa4Gs6MDePIt+Ly6kUADVvs8y+6t5z2/JdqtoUrkhF90HJVPYo RhNsW+g14tkvx5JpEEIi4rKrWe1iK38daP86IrcCHFyNyQRhm/ZAWZ1kqXkU2/YXTxzN R+cw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=100c9rxitQt5qbuJCo9yvdI7R1bkchG5uqsRfefrRjc=; b=EAnOfVj8wOJvd5h+gxwc72MvReeDvHDH60lGKtOyrA2HWZ33ZlKECokHxR5hJ0VQd4 fmlVwQn7FSiOfX2d4c8L6iBg9nhZ14E4QoTYxjSC52J+NvAskN0zGsEPet8egkWQaQzT Rd5uK3Vw6WRwR6kAKhkkucJCSfSav9pdtIaU3p8NsazpObDI1CL/6PSqRC6CTLlCd/N9 KDCyxtTiX46ch+Fg74FpHzeDN4CyACQOxpejM1t5p6t7F9i3pE1V2p/IdK0DZ9tVchx0 Ml7ppl3hnVivXSfx8FHKPc03EKgMo0rfxflYJq8Rs/3vyJdjccPKUjs/EYHj9Yzg/5Sd 2PPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bwSJuVmq; 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 ly27si57682ejb.672.2020.10.01.19.43.26; Thu, 01 Oct 2020 19:43:49 -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=bwSJuVmq; 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 S2387545AbgJBCma (ORCPT + 99 others); Thu, 1 Oct 2020 22:42:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387485AbgJBCma (ORCPT ); Thu, 1 Oct 2020 22:42:30 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71474C0613D0; Thu, 1 Oct 2020 19:42:28 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id l126so216266pfd.5; Thu, 01 Oct 2020 19:42:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=100c9rxitQt5qbuJCo9yvdI7R1bkchG5uqsRfefrRjc=; b=bwSJuVmqqhUdLU3EgwINxXhEBjetEmncvdOjqvMr+3zn5lxZUDDHaWrSUNGpFEbqcD Bb0heppEbof/uN4zgAPE1CGnrT03XoiFOOt3Tew0CpaLblKYbuiPZLueNb0wEVTKlKft C8JLXgeTF+N4TMP7OpjSlJnnD3HauxFC+6fsdxJsangNEOe6mppsSw6P9KUR0m4FPa04 jGUkdQ3KgX3aLUePvGc8R5ew8toPZyFfTjxNMzCBvWT8DPsoVGCK6kIzVOZ10k9U5bvT JFttAQmgAdv+YOlOFs41nzZ6sw3lc8SiTfsd3M/wIT4GROa0TACL3snEKI+mOof2L07j 8wbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=100c9rxitQt5qbuJCo9yvdI7R1bkchG5uqsRfefrRjc=; b=XGOLv8giWC7zrxB8wWIsznEP8mFBbXTPkUqHt5tEDXoW1E3MjPx0UXzyHj84vBGa4T V3MZs9Kt4qSvYfMAIGXYAqaQEpXZHyKyQ8uOvpjFGlZo7I6Tzvt2BOzMwjPD1wI9i8Qx tl3hxKwbNDHV+5ZmG0pKwl4Zzl8sUQt3+C7kmbTFvVHOGjV5x0BCd/Kih+YzsphfcFum xj6fhpRmUKA5Ez3hZnsiAdDxzVtuP8mfFuur+4BSqTTLXVEc++a3JrCuBahWLR7z95xN i08705fJHIBJPRy2PU+DQBAEfubWp1wdlnT1WRyRQi/wWTd5jEpk6iWsGN+c5w8TydLB BaKw== X-Gm-Message-State: AOAM5306geReCLFmQj3ZYKr7FRRf/OAEDi8rlNQRsVKSqNHB1qznim6Q UCNPacX3PU10tHg3EcxvFWmu8JY9c1cUWg== X-Received: by 2002:a63:161e:: with SMTP id w30mr8517363pgl.255.1601606547430; Thu, 01 Oct 2020 19:42:27 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id gt11sm150185pjb.48.2020.10.01.19.42.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Oct 2020 19:42:26 -0700 (PDT) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , Andrew Lunn , Vivien Didelot , "David S. Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org (open list), vladimir.oltean@nxp.com, olteanv@gmail.com Subject: [PATCH net-next 0/4] net: dsa: Improve dsa_untag_bridge_pvid() Date: Thu, 1 Oct 2020 19:42:11 -0700 Message-Id: <20201002024215.660240-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, Jakub, This patch series is based on the recent discussions with Vladimir: https://lore.kernel.org/netdev/20201001030623.343535-1-f.fainelli@gmail.com/ the simplest way forward was to call dsa_untag_bridge_pvid() after eth_type_trans() has been set which guarantees that skb->protocol is set to a correct value and this allows us to utilize __vlan_find_dev_deep_rcu() properly without playing or using the bridge master as a net_device reference. Florian Fainelli (4): net: dsa: Call dsa_untag_bridge_pvid() from dsa_switch_rcv() net: dsa: b53: Set untag_bridge_pvid net: dsa: Obtain VLAN protocol from skb->protocol net: dsa: Utilize __vlan_find_dev_deep_rcu() drivers/net/dsa/b53/b53_common.c | 1 + include/net/dsa.h | 8 ++++++++ net/dsa/dsa.c | 9 +++++++++ net/dsa/dsa_priv.h | 14 ++++---------- net/dsa/tag_brcm.c | 15 ++------------- 5 files changed, 24 insertions(+), 23 deletions(-) -- 2.25.1