From: Andrew Lunn <andrew@lunn.ch>
To: David Yang <mmyangfl@gmail.com>
Cc: netdev@vger.kernel.org, Vladimir Oltean <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
Russell King <linux@armlinux.org.uk>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] net: dsa: tag_yt921x: add support for Motorcomm YT921x tags
Date: Fri, 8 Aug 2025 21:06:07 +0200 [thread overview]
Message-ID: <1bfb3b4f-eae3-4454-8d61-674bed3a8673@lunn.ch> (raw)
In-Reply-To: <20250808173808.273774-2-mmyangfl@gmail.com>
On Sat, Aug 09, 2025 at 01:38:02AM +0800, David Yang wrote:
> Add support for Motorcomm YT921x tags, which includes a configurable
> ethertype field (default to 0x9988).
Hi David
Please take a read of:
https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html
We are in the merge window at the moment, so you need to post patches
as RFC. And you need to indicate the tree in the Subject: line.
> +#define YT921X_TAG_PORT_ENf BIT(15)
> +#define YT921X_TAG_RX_PORTf GENMASK(14, 11)
> +#define YT921X_TAG_TX_PORTf GENMASK(10, 0)
> +#define YT921X_TAG_TX_PORTnv(port) BIT(port)
These lower case letters at the end are unusual. What do they
represent?
> +static struct sk_buff *
> +yt921x_tag_xmit(struct sk_buff *skb, struct net_device *netdev)
> +{
> + struct dsa_port *dp = dsa_user_to_port(netdev);
> + __be16 *tag;
> +
> + skb_push(skb, YT921X_TAG_LEN);
> + dsa_alloc_etype_header(skb, YT921X_TAG_LEN);
> +
> + tag = (__be16 *)(skb->data + 2 * ETH_ALEN);
dsa_etype_header_pos_tx() ?
> +static struct sk_buff *
> +yt921x_tag_rcv(struct sk_buff *skb, struct net_device *netdev)
> +{
> + __be16 *tag;
> + u16 rx;
> + int rx_port;
Reverse Christmas tree. Longest to shortest.
Andrew
---
pw-bot: cr
next prev parent reply other threads:[~2025-08-08 19:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-08 17:38 [PATCH 0/2] net: dsa: yt921x: Add support for Motorcomm YT921x David Yang
2025-08-08 17:38 ` [PATCH 1/2] net: dsa: tag_yt921x: add support for Motorcomm YT921x tags David Yang
2025-08-08 19:06 ` Andrew Lunn [this message]
2025-08-08 17:38 ` [PATCH 2/2] net: dsa: yt921x: Add support for Motorcomm YT921x David Yang
2025-08-08 19:33 ` Andrew Lunn
2025-08-11 7:22 ` Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1bfb3b4f-eae3-4454-8d61-674bed3a8673@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mmyangfl@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®