Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp218449lqi; Wed, 6 Mar 2024 15:13:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUFmoQWFatIbsbwvp43cGlFkm5ZRFLMEQytT7ODwoXo/w6HDbhpqm8a7b1CFEN4534xm1rUy701e6yrOr8/TRkr6Yawyy9nnjB9VmV/3w== X-Google-Smtp-Source: AGHT+IER1lfChzMTa333HORJD0BaE8CJutwVDtZQ6uocOW5P9mebAemrMcmcILNgCdH7eUzwltdf X-Received: by 2002:a05:6808:1ca:b0:3c1:e835:51b6 with SMTP id x10-20020a05680801ca00b003c1e83551b6mr5834742oic.15.1709766785617; Wed, 06 Mar 2024 15:13:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709766785; cv=pass; d=google.com; s=arc-20160816; b=lVygH2nJQ5dvI3ZBZt/4HtvW3KtYXrqFJ1Fp1VkmVJKqctjAXP8eDviuVTfPgu19+E n8gZ3rVwB9tB9oqKi0RxXVf/zlRDmi9xqj38KtAET6/FFO99R7rWVBcjtWIGzoSYNoyc juGRG/y/bSdXR7VPLlbrzisgQWisDRpMNC0Z/YuRj3nOubZRZEInHKn6jyc+mPFWtVZB C6lKjK8oCAuzS9+nGeLwcYa2LnumvPMCLiGCsKbX5ah4KSyfKyWVKXwpF3x5ZtzTdGrA LeN04gc/D5yaUdSKz/059xX8/mzJ2x6O9y1kBS4ygwr9baB4bbxGEXnwGQyOKBOati8E jvGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=bAAZ1TKs5DPhStds0Wt4vCLnpYfnvVYbANe/i6k/0oQ=; fh=792gGQ0B9nfq3Qy3fxNALXDnXyqrxekySk68n0zsT4E=; b=PpyHifQbY7z37howUUVz2rEZ5exT+OVLcP+gRo4tuA6/VstNTOWOpn5HChy/xiJVhd kPtfiO4/3D8Pboqo8HRZ2u2nKFiSt0wAzRT5H6fqwGkGk+iYN3x4w4pB3j3HiGNVjaIB y/ftu/AvEpBbrwEUL69DLZ47xgrCYAVOvHsf0H6z/mLhmuwGOzni9IQoCcigJwH94A2h H/xXILMH5D7FJvpDdY/+yzSa0AizxpdUbRZShdTtG+B3Xh6Qn9jGIvEdCQSDIu3boBJJ 5/0aLIVuDbTauULu3No/Tfd1HqXpTAFcnGG+g/U9vRSOFe05up1rzQipyxJVWbh9frpY a3pw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DRHDqAwp; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-94689-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94689-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h31-20020a63121f000000b005e1c589e380si12820750pgl.83.2024.03.06.15.13.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 15:13:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94689-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DRHDqAwp; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-94689-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94689-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CD0C728257C for ; Wed, 6 Mar 2024 23:13:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3A371C6A6; Wed, 6 Mar 2024 23:12:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DRHDqAwp" Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95C4E1B299; Wed, 6 Mar 2024 23:12:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709766774; cv=none; b=XdBZB5+tPbg/nKFCQqr1shfEEiPl0jKuR/zjZuo9lgFg/+iV4JxnMkbskVepoEZpF3KX0ya741SCeIX/V7oW01GNG1OhGrN8rV3JecEThD1YtrJw2zknvQQ5jUKgPFMf4rkpkjNY+eIVVENjvQYBao9LK8rEWBcyvmRnf4Bkyg8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709766774; c=relaxed/simple; bh=sstFOImg+mIZZeO6YTA82ZGkIqfGG50up4ahrfPW+lQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=aLeHUHiEmrepwJEOHUbGNe5OvSkZHeR7KIIFu+aIwB732xZAXLU4ZtphTb0DTvbCEE38D8XLf56f1A4sZtjuW4OqWFPFjEgUV3gVVUayKQD5Bw0ubj/kv37Bheejnqt/R+j7NZPFvrkkmgHQJ005BG+/uOs2eDw8s8K3ebJMZJ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DRHDqAwp; arc=none smtp.client-ip=209.85.216.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-2997cb49711so103227a91.3; Wed, 06 Mar 2024 15:12:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709766773; x=1710371573; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=bAAZ1TKs5DPhStds0Wt4vCLnpYfnvVYbANe/i6k/0oQ=; b=DRHDqAwpK+2k+fbIq+X/19+9XGgpOFSJ9LwoTvKpBUFCI/02th7prbJblRuBxfmK46 dyNYngWGQJcQBeQ3Kq+5WvLxED45ZmgqSgbMXXl4Pbz1h8k3M6+hvoTHuPDWU0pDc/re 88IpxqQDBoKdua6a3AHi+Dud7CS81uD061S8LswDlpbtZePhiZFtKBwNaxcVC6ICmFZq MLeON1aS/B6tHGdRqX/pcWE0x2egvCz+SSivemVSjNak+YJKbu4BedPTYusoa7vtGMB/ OhnNDVG9yE7i7Ym2IvhFn44X49mToF1QWJrzfgwzGES2rPdYVEETe/00tFOjwEEB0ntq b/UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709766773; x=1710371573; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bAAZ1TKs5DPhStds0Wt4vCLnpYfnvVYbANe/i6k/0oQ=; b=g3WIXmtNn5to3yg5zPPkww4Vk/6ZOQWwe2CAwegbayDEetP8nCuosrAqSNzKISSlm8 6tZUiDgRdi6R+ZzHTpFZ2D808nlRaqu2o+qu6XHwwQluv53jI8xBMTBhNv+3V+GZd/Py Gc8n47aiO3hG18Yr8rFQEINH4Tpr6Sun7iDUEh0qoGB7a/uWC2agguRJ0xFCmPaNs3T3 tR2TRHZ49IpDRtlaJ8SP6gb2ymhq3c4Zx5mjwyuKDNKkBMt5k3ZLULb61V6ese47w7A1 BB0UKKqx8HK+OpfPOnrxVNyKLuc5ZK3mFgsZR8H8Sj/C1mfAC687rObj7EJulRw8dOCk R6OA== X-Forwarded-Encrypted: i=1; AJvYcCWnvfxXK3aithqPcvDmeLa2QhCsOSf3Nk4njK8yQtTY6804TRBLWFjjDLKj7NVDu1F8Bq1eoNrgmxmKxOvvz0uT3kgoPftuAzEHq/EvFCU46389+AbTIctyNS4BxtDdxnyDRkD1 X-Gm-Message-State: AOJu0Yyhe345VnYARqDgoPTPpFpQmcZsA2wrv9ZLmMzu3ir429EhwIwm HD009pzqG1wshbrqSe22sTS29IwLjNSydutDolSh75+LxHRY1nJE X-Received: by 2002:a17:90b:11cd:b0:29b:8118:9822 with SMTP id gv13-20020a17090b11cd00b0029b81189822mr1412110pjb.17.1709766772807; Wed, 06 Mar 2024 15:12:52 -0800 (PST) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id ee13-20020a17090afc4d00b0029a8d207010sm257560pjb.54.2024.03.06.15.12.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Mar 2024 15:12:50 -0800 (PST) Message-ID: Date: Wed, 6 Mar 2024 15:12:45 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v6 11/16] net: dsa: tag_sja1105: refactor skb->dev assignment to dsa_tag_8021q_find_user() Content-Language: en-US To: Pawel Dembicki , netdev@vger.kernel.org Cc: Linus Walleij , Simon Horman , Vladimir Oltean , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Russell King , linux-kernel@vger.kernel.org References: <20240301221641.159542-1-paweldembicki@gmail.com> <20240301221641.159542-12-paweldembicki@gmail.com> From: Florian Fainelli In-Reply-To: <20240301221641.159542-12-paweldembicki@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/1/24 14:16, Pawel Dembicki wrote: > From: Vladimir Oltean > > A new tagging protocol implementation based on tag_8021q is on the > horizon, and it appears that it also has to open-code the complicated > logic of finding a source port based on a VLAN header. > > Create a single dsa_tag_8021q_find_user() and make sja1105 call it. > > Signed-off-by: Vladimir Oltean > Signed-off-by: Pawel Dembicki Reviewed-by: Florian Fainelli -- Florian