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@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net 1/4] net: dsa: motorcomm: Fix extack message on unsupported TC actions
Date: Thu, 5 Nov 2026 23:20:37 +0100 [thread overview]
Message-ID: <a1d44a84-d180-407f-b312-ef29eeaeecd5@lunn.ch> (raw)
In-Reply-To: <20261102071119.3435180-2-mmyangfl@gmail.com>
On Mon, Nov 02, 2026 at 03:11:13PM +0800, David Yang wrote:
> No extack reasons were given to unsupported TC actions. Fix it.
>
> Fixes: 8eb9e7520b17 ("net: dsa: yt921x: Add ACL support")
> Signed-off-by: David Yang <mmyangfl@gmail.com>
> ---
> drivers/net/dsa/motorcomm/tc.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/dsa/motorcomm/tc.c b/drivers/net/dsa/motorcomm/tc.c
> index 9dbd61e48fee..8835907366bf 100644
> --- a/drivers/net/dsa/motorcomm/tc.c
> +++ b/drivers/net/dsa/motorcomm/tc.c
> @@ -1122,6 +1122,7 @@ yt921x_acl_rule_ext_parse_flow_action(struct yt921x_acl_rule_ext *ruleext,
> break;
> }
> default:
> + reason = "Unsupported by HW";
> fallback:
> if (cls->common.skip_sw) {
> NL_SET_ERR_MSG_FMT_MOD(extack,
Maybe also change:
const char *reason = NULL;
to
const char *reason;
That way, the compiler is likely to warn you if reason is used but not
set.
Andrew
next prev parent reply other threads:[~2026-11-05 22:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 7:11 [PATCH net 0/4] net: dsa: motorcomm: ACL fixup David Yang
2026-11-02 7:11 ` [PATCH net 1/4] net: dsa: motorcomm: Fix extack message on unsupported TC actions David Yang
2026-11-05 22:20 ` Andrew Lunn [this message]
2026-11-02 7:11 ` [PATCH net 2/4] net: dsa: motorcomm: Fix IPv4/IPv6 address key dispatch in flower David Yang
2026-11-03 7:55 ` netdev-bot+sashiko
2026-11-02 7:11 ` [PATCH net 3/4] net: dsa: motorcomm: Stop at the first terminal flower action David Yang
2026-11-03 7:55 ` netdev-bot+sashiko
2026-11-02 7:11 ` [PATCH net 4/4] net: dsa: motorcomm: Delete the ACL rule of the port being unbound David Yang
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=a1d44a84-d180-407f-b312-ef29eeaeecd5@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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®