Skip to content

Commit 4abf39c

Browse files
vladimirolteankuba-moo
authored andcommitted
net: dsa: tag_rtl4_a: use the dsa_xmit_port_mask() helper
The "rtl4a" 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: Linus Walleij <linus.walleij@linaro.org> Cc: "Alvin Šipraga" <alsi@bang-olufsen.dk> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Link: https://patch.msgid.link/20251127120902.292555-11-vladimir.oltean@nxp.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 48afaba commit 4abf39c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/dsa/tag_rtl4_a.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static struct sk_buff *rtl4a_tag_xmit(struct sk_buff *skb,
5757

5858
out = (RTL4_A_PROTOCOL_RTL8366RB << RTL4_A_PROTOCOL_SHIFT);
5959
/* The lower bits indicate the port number */
60-
out |= BIT(dp->index);
60+
out |= dsa_xmit_port_mask(skb, dev);
6161

6262
p = (__be16 *)(tag + 2);
6363
*p = htons(out);

0 commit comments

Comments
 (0)