Article View: linux.kernel.netdev
Article #15419Re: [PATCH net-next v2 10/10] net: dsa: realtek: rtl8365mb: report the DCB DSCP-to-priority map
From: Linus Walleij
Date: Thu, 12 Nov 2026 20:36
Date: Thu, 12 Nov 2026 20:36
45 lines
11279 bytes
11279 bytes
On Thu, Nov 12, 2026 at 9:38 AM Oleksij Rempel <o.rempel@pengutronix.de> wrote: > Report the DSCP-to-priority map through dcbnl, so that "dcb app show" > lists, on every port, the priority a DSCP value gets once the port > trusts DSCP. > > The switch has one DSCP-to-priority table for all its ports, with > exactly one priority per DSCP value. dcbnl, in contrast, configures DSCP > priorities per port and allows several priorities for one DSCP value. > DSA could mirror a change to every port (dscp_prio_mapping_is_global), > but a request on one port would still change the classification of all > ports. Keep the map read-only. The QoS baseline seeds it with the > default mapping from ietf_dscp_to_ieee8021q_tt(). Requests to change a > DSCP entry fail with -EOPNOTSUPP. > > Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> > --- > Q: The v1 review (Linus) suggested DSCP get, add and delete callbacks > in the common code, and setting ds->dscp_prio_mapping_is_global when > registering DSCP offload. Why are add, delete and the flag gone in v2? > A: The DSCP get moved into the shared code as asked. Add and del were > dropped because the table is chip-wide, as the commit message explains. > Without add and del, nothing would use the flag, so it is not set. > > Changes in v2: > - make the DSCP map read-only, as the table is shared by all ports of > the chip and per-port remapping would change every port > - drop the DSCP add/del ops, whose delete path could leave the hardware > out of step with the remaining APP entries (sashiko) > - do not set ds->dscp_prio_mapping_is_global; without DSCP add/del > nothing needs its global set/del path (sashiko) > - retitled (was "offload DCB DSCP-to-priority") > - move the DSCP get handling into rtl83xx-qos.c behind a new > qos_get_dscp_prio callback (Linus) > - DSCP table seeding moved to the baseline patch > - read the table entry through rtl8365mb_qos_regmap_read_field(), which > uses field_get() (Luiz) Excellent revision here, all requests fulfilled from my PoV: Reviewed-by: Linus Walleij <linusw@kernel.org> Yours, Linus Walleij
Technical Details
Message-ID:
<CAD++jLnuUdZeGz=rZyPayJEC2EK-RsKm7obecA7Jy0SETSD5jw@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362209-linux-kernel-netdev=dewy.ruReferences:
<20261112-rtl8365mb-dcb-ingress-v2-0-f8e6fbdf8c99@pengutronix.de> <20261112-rtl8365mb-dcb-ingress-v2-10-f8e6fbdf8c99@pengutronix.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362209-linux-kernel-netdev=dewy.ru
From: linusw@kernel.org (Linus Walleij)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2 10/10] net: dsa: realtek: rtl8365mb: report
the DCB DSCP-to-priority map
Date: Thu, 12 Nov 2026 21:36:45 +0100
Organization: Usenet Network
Message-ID: <CAD++jLnuUdZeGz=rZyPayJEC2EK-RsKm7obecA7Jy0SETSD5jw@mail.gmail.com>
References: <20261112-rtl8365mb-dcb-ingress-v2-0-f8e6fbdf8c99@pengutronix.de> <20261112-rtl8365mb-dcb-ingress-v2-10-f8e6fbdf8c99@pengutronix.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="1194768"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:qmJfW3w6a1L5ACntPIDIphL8Lxc= sha256:glgftcMdbbJY24uSSq3rKiy9acwRnPI6tf0VoAHe3UM=
sha1:/ROpOq5Y7+Zd4YkRsai5LRYlDSQ= sha256:kgQlNbo2/0Sz4ITFbQT6MzXvZ4oeQm0jE0pD1a+tASg=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 2C30F1143B1; Fri, 13 Nov 2026 01:32:49 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id srurBAiOiqXn;
Fri, 13 Nov 2026 01:32:46 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-362209-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id D211A1143AD; Fri, 13 Nov 2026 01:32:37 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id DB1E2181B64; Thu, 12 Nov 2026 20:37:14 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1794515824;
b=e/Zpf7xOG4bZa82bopmAypwCgwC/E395WPMO1dB473pRVCASgL0tnJXntMw+6FGnJKt9
QjiOC4+J983FjGoUkAI/g1MomFHP21CqTlcwgo0seG2/GQDaEwFYEIN7M+GEpjZNnN1Ll
/jFG6RRmHXRdkCNGbzZCClMgSRuI5UvOtVKXSTwoJiZIKEYNbGtcKyPEpof1w7biMiJ7k
7JeKU58XYkC8sFjU/tnR+wiGiJTxEqBfNVvRx6Evx3XIYUj2nnjO0UTlASSmBbWmg4Tuh
AcgnBzHKKiOL6c7hwh0uf7ebZo4qy+Prth5xiZC1i3ZeOjt+9KBkD9dbUWu8iztJLww==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794515824;
h=X-Original-To:Received:Received:DKIM-Signature:Received:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:References:In-Reply-To:From:Date:
X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:Subject:To:Cc:
Content-Type:Content-Transfer-Encoding;
bh=jTWXcQAEVRNiJ37CZvBOzUnHBbdFQM+hm9VF7G9FXek=;
b=VSxcrlqvbbuY8wvoriMHhP0Exp635RMFiHuIocV8asIZE8K/0osJLfY0ogNpOhTWUQ+o
/opVji+JgBKWQaBFfGz7jKw/aV1cOKf93PvR4X7BOOAD2tX/z7XfCUZFbhDxzd2NRczFT
fQF29GkxYTmEU5lxLe1DdzBOwIFFT3C3K0Q92YPMbODNGlqurcaKEFZ7nKZrmFbdremSg
B01aEVf8MKoku4ZlqmPaKDmeUBTecvxU0VRuaCznDdsPqs0MAJqUA0HjhnK1cCObBVV4S
ihTI+O2xWhGHQyVB9FYL5i9A8PfQ7ICKjS6mLhclKDHMoDIXxSNC7zbBbj9dXjlNt1Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=joUWLRfh;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id BB5DF606A32E;
Thu, 12 Nov 2026 20:37:04 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=joUWLRfh
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794515818;
b=Zi6+y0suw+9ZuE9G7K5M6U8PQAhIbSa0E02pPM2B0b+PcMxwJu2D8U4z5zg8QzRxWKTm
HQ5hy5FGNDJVSiGZ7ev3VCZ23xi5Bc4hC+PWL3p9OME1qH404772h7/5LK9C43CAirnAf
2CxTC9qJXapc0KttW2HTyxAGsBdsLwlsVGPgDj2TgSXhucS0qog0tVMKJGG/+IZrOzwJM
n5B2vjMFlu7k6z8oYkvDul8dkCeRw5N+u6QDVAavj8pZGiCJ86KdpJT6NtmYg8K0vPVds
QckG5awfEkHhWuVoO0dDGrCoVeNCMzWC02aUQMUC8dVcn56vjyCtH6UMNcNgLRrNbow==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794515818;
h=Received:DKIM-Signature:Received:X-Forwarded-Encrypted:
X-Gm-Message-State:X-Received:MIME-Version:References:In-Reply-To:
From:Date:X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:
Subject:To:Cc:Content-Type:Content-Transfer-Encoding;
bh=jTWXcQAEVRNiJ37CZvBOzUnHBbdFQM+hm9VF7G9FXek=;
b=4CqhsUjEbcNapcHZfa5XJvfSq9/jYELEsO7TxH+gXbvoUtxl80n6d+9W+xtgzT9DSOI5
cmcmZ5wRQug5ZwlgCfuz+zAYB6wpFORsv4VXkHRwfSOiz6BeoBykg3pjeKKOsVSmUN66f
dbNVflVZp0VB/uG4oRnqdBxcPe1jlGVIAomgu8joqxSeA2VVY0XiDgP3/dLdpat980c79
WFVSGNoyh3NaEqyoAzw043YHyPHP0myjqQeaQ2CLGS9GtGquxBfu5KrfnvbO26xytPxZS
xbhW17VPb4te1fF8MFdgKlNnpwk8l/HmeC6dpexkaVquiLqeySWHeoCCmJIeo9QYqIQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=joUWLRfh;
arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id D372B606A323
for <netdev@vger.kernel.org>; Thu, 12 Nov 2026 20:36:58 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69C0E1F000C7
for <netdev@vger.kernel.org>; Thu, 12 Nov 2026 20:36:58 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1794515818;
bh=jTWXcQAEVRNiJ37CZvBOzUnHBbdFQM+hm9VF7G9FXek=;
h=References:In-Reply-To:From:Date:Subject:To:Cc;
b=joUWLRfh/F4X2DVorHfnYB/IDXtZrEVITyXQl1zPB0u5DmL02wbZtZioQQ5t44sUK
gSTkiDM8CBitNqoExoE6NnAWgB8qikoG3mMUmzrbLyr71MATULfiYhhvMJBHtP5WDB
oJe6XZ/SKMxGhi6bEVcqm/ckQGm+tZBQupPU8YzWkn74LF1FY4ctk5+tRUhC/q5NSc
zkn/noi+FvCdBXzThJJ+GIY2WW5PW4uygJUiFpQqetBJ8sLzOYImiXwGm5tiAoesDh
j0dfkgb1K8vdJFqsfgy02nxdNZrrWTBF9HUNVdV+ZYXMjCJmzn+Xt/up5SkrJIQ3Zk
/1qKS7pW7qDyg==
X-Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-5c102ad8420so236455e87.1
for <netdev@vger.kernel.org>; Thu, 12 Nov 2026 12:36:58 -0800 (PST)
X-Forwarded-Encrypted: i=1; AL+hErGyENLq/LhCav/UhcKSYNLet5xE+/1ZxJCI+wRWhnr1BMqEpAdP/hyn098ZeMpi5nENe0Gt904=@vger.kernel.org
X-Gm-Message-State: APuU4Z8Ke/PBNxAYLJE/UyGuWAbq03zXnGn/mUhljI/IUR0+aTdYvKFq
x2Wl6yDCw4vlk1i9yLRaFpmkwZelh8+dJH8hhnU9Jk/Qr5R9tAbOJELeEA6z7YZa8Y36bFLM0Kp
IhWMpQwM+TGnWS6eRlVb7DE3GVcaL1h4=
X-Received: by 2002:a05:6512:401c:b0:5bf:b952:e57f with SMTP id
2adb3069b0e04-5c170b68b50mr169690e87.59.1794515817248; Thu, 12 Nov 2026
12:36:57 -0800 (PST)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261112-rtl8365mb-dcb-ingress-v2-10-f8e6fbdf8c99@pengutronix.de>
X-Gmail-Original-Message-ID: <CAD++jLnuUdZeGz=rZyPayJEC2EK-RsKm7obecA7Jy0SETSD5jw@mail.gmail.com>
X-Gm-Features: AclHuK-6O1MZON6TJKg3hL1WcNrsf_X-QgpBux5gGIeVOIdYXCWrRn5tPX8QLAg
X-Cc: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
Luiz Angelo Daros de Luca <luizluca@gmail.com>, Alvin Šipraga <alvin.sipraga@analog.com>,
Andrew Lunn <andrew@lunn.ch>, Vladimir Oltean <olteanv@gmail.com>, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, kernel@pengutronix.de