]> git.ipfire.org Git - thirdparty/linux.git/commit
net: dsa: tag_yt921x: use the dsa_xmit_port_mask() helper
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 27 Nov 2025 12:09:02 +0000 (14:09 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 Nov 2025 04:03:41 +0000 (20:03 -0800)
commit64b0d2edb61aba9009a1c957568ad674059841a0
treea68f0649ee470b8b5912172c76e8ec08c6d90aa4
parent24099389a63fb9a3cf79d04f38c7892a9957858b
net: dsa: tag_yt921x: use the dsa_xmit_port_mask() helper

The "yt921x" tagging protocol populates a bit mask for the TX ports,
so we can use dsa_xmit_port_mask() to centralize the decision of how to
set that field.

Cc: David Yang <mmyangfl@gmail.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20251127120902.292555-16-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dsa/tag_yt921x.c