Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp2002865lqe; Tue, 9 Apr 2024 07:06:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWOnPdjN+fS7RJusvHmeJsVlww3EbiKc0bZKseED6xuMmvwv9Xz3Pplt+ouT7wFvZI0LwzDrVDIQTVwoVN02pq3ZmkUnAvpCFXlpXCQpg== X-Google-Smtp-Source: AGHT+IEI45vFXw1w73OguVUSKaqkX23b3TpOWtzU0WnqRgNkthcfikdTPDuicfs86a5pGbaD5B8k X-Received: by 2002:a17:907:6d0c:b0:a51:cdfd:8ef7 with SMTP id sa12-20020a1709076d0c00b00a51cdfd8ef7mr5791768ejc.39.1712671578507; Tue, 09 Apr 2024 07:06:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712671578; cv=pass; d=google.com; s=arc-20160816; b=soLgWMSjEJbbnNLuHLjRAMkxgeDwzzD9bHLKHdDPN4h1A3CZ+/uDirGsJBQ9hNrbn4 3dG9IRs1AO8jkMylGmR69CgOj/70cx+fjZYUfnnpSCWJhxhtqv+W5/kBNfaKZYJ3qKXp /gsmwpUjTWO0EW7aXxb//2c36LZIr8bIvpIhB3H/afrP8is/1l69usDQ7cw6/KXtL5Qj ZrCqk/u8/Y2/2wAVS6GzD62pf3LpQSozL7m/xdYiwgUDNwTT4QB/V5uf6qPXQra+AsGk Our7crefu3H9kbfJbzVLA+aTWiKJrPNrkahU+bP10ClY8l0a7Q13ydQmuOTrHnWe0wlP hg8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UxK10F2GV0ZXV4x1lM8+KDUBHKhEFSOqUMKGi8Yqgkg=; fh=RXBlYiRyFjuqT1/koVlRAF+m+2r3xpFSw8BL3x39gsk=; b=KZfU16uAYq8m6Denm1Mv7FsnNcm1qDy+di2NtTvb+/KAS6yOvqJFJf6If25BlR9qGd 5RvN6eyPZNOJlqWkmLdZEtRYF5EHLkpAVz+f/Y8r8ng7D9S8H2OolEu+pNUlZRfX/A4j UejYZXA2jgA8CM/rg3zRlqXXV/8jd1e2a7RoKdWq4B2IpKU4ed7F4ytzd6zkP1bIntAT mn/4qf3SlbfV7QFQpZ0X7kSrtqb/crmAiIzRHBCTb6f92uiWIPrzTk3o5XXHxyJ7qIPP MvBuG3J1v8eQmU/qdn8juB+WpKFy/hMHWZP9Awys4+fwB9a5CLiVTn9A1Ws8V9KT44IO OlTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=BI2WNaYJ; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-137056-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137056-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t26-20020a1709064f1a00b00a51f5ce58d7si798057eju.22.2024.04.09.07.06.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 07:06:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137056-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=BI2WNaYJ; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-137056-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137056-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.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 am.mirrors.kernel.org (Postfix) with ESMTPS id C12541F24400 for ; Tue, 9 Apr 2024 14:06:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E4E112F584; Tue, 9 Apr 2024 14:04:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="BI2WNaYJ" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5B2E12F37B; Tue, 9 Apr 2024 14:04:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712671494; cv=none; b=NGS0KCyyhthAnM+K1BILPHgifOBJaLGFfqZbxFsgfIdT8OeYLYCZ3WNLHjYFC7PLawmyYf0z3xvk686J+xR4ZWzLcuz5lVjyxyH1l9Tbkaa0YMqg6WEJ+uhBJ3JXCTHGgR7EKCdLrdLSfN+UVHCqA/U5YC9HJyWCwqP+e+f4oUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712671494; c=relaxed/simple; bh=ZfJgQ+0Djfvx+LbeItuW7wp7/1+oMaOmn6GRrZla1GM=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=T7EB/7vwM2hLzA9VannlojpTyJ4xr6awEtKmki4yfa5S7hOq++qf3+OkazUBRKBS9gev7YM4Bua3bwIu1JuSvK9/cTzp1xDOte5yBNChQ5rQqh/0n3pJyYzJ/vATzKG79UAdUwRin0iBiGccjSBewGj/p/KAyV+Qi2nSC71GskU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=BI2WNaYJ; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1712671492; x=1744207492; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ZfJgQ+0Djfvx+LbeItuW7wp7/1+oMaOmn6GRrZla1GM=; b=BI2WNaYJ+g1D7vfcQNkIcR4e1+VXAlsVgdoqYyHraXkCXtoyfLvLYVGI iS6vOK379BeQKu7pg3NCr3/gowCQqgoMkD2IyHRdPqKDLiS7/MYEY2IAh uf7q5Y0nLRXiVBkaNqgNZ92hy9ewCYUSolW7kwV0phMI5xfALWGyvm/rQ l8AtoryYRR/oWOVloaDtk8aUJ84aq7B2tm8MgOQnV73/6QX/jxEoqomz/ AC2obpFYTb6vnwkIEav68YZxPso1qM0ZHOz3gAO0BbqKjne9DOi0kTz1A y+CWsGo5MOYVCKmNm5TRlsbdDypk+Frb/vPmUW+es/EOJy18p3XD5LtvD A==; X-CSE-ConnectionGUID: VSAYxGtOTA60prrClmzs5Q== X-CSE-MsgGUID: VOiVzVOcTsO5ka6CTTiuKg== X-IronPort-AV: E=Sophos;i="6.07,189,1708412400"; d="scan'208";a="20143798" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 09 Apr 2024 07:04:51 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 9 Apr 2024 07:03:54 -0700 Received: from DEN-DL-M70577 (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 9 Apr 2024 07:03:50 -0700 Date: Tue, 9 Apr 2024 14:03:50 +0000 From: Daniel Machon To: Oleksij Rempel CC: "David S. Miller" , Andrew Lunn , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Paolo Abeni , "Vladimir Oltean" , Woojung Huh , "Arun Ramadoss" , Florian Fainelli , , , , , David Ahern , "Simon Horman" , Willem de Bruijn , =?utf-8?B?U8O4cmVu?= Andersen Subject: Re: [PATCH net-next v5 1/9] net: dsa: add support for DCB get/set apptrust configuration Message-ID: <20240409140350.vgi52z75qygbwgid@DEN-DL-M70577> References: <20240409081851.3530641-1-o.rempel@pengutronix.de> <20240409081851.3530641-2-o.rempel@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240409081851.3530641-2-o.rempel@pengutronix.de> Hi Oleksij > +static int __maybe_unused > +dsa_user_dcbnl_set_apptrust(struct net_device *dev, u8 *sel, int nsel) > +{ > + struct dsa_port *dp = dsa_user_to_port(dev); > + struct dsa_switch *ds = dp->ds; > + int port = dp->index; > + This should be !ds->ops->port_set_apptrust, right :-) > + if (!ds->ops->port_get_apptrust) > + return -EOPNOTSUPP; > + > + return ds->ops->port_set_apptrust(ds, port, sel, nsel); > +}