Re: [PATCH RFC net-next 2/3] net: dsa: add tag formats for MxL862xx switches
From: Andrew Lunn
Date: Tue Dec 02 2025 - 20:15:54 EST
> + /* special tag ingress */
> + mxl862_tag = dsa_etype_header_pos_tx(skb);
> + mxl862_tag[0] = htons(ETH_P_MXLGSW);
> + mxl862_tag[2] = htons(usr_port + 16 - cpu_port);
> + mxl862_tag[3] = htons(FIELD_PREP(MXL862_IGP_EGP, cpu_port));
You appear to be leaving mxl862_tag[1] uninitialised. Is that
intentional?
This is a pretty odd tag format. The destination port is relative to
the CPU port? You need to include the CPU port in the tag itself? Is
this publicly documented somewhere?
Andrew