All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Ido Schimmel <idosch@nvidia.com>
Cc: petrm@nvidia.com, netdev@vger.kernel.org, razor@blackwall.org,
	bridge@lists.linux-foundation.org, edumazet@google.com,
	mlxsw@nvidia.com, roopa@nvidia.com, pabeni@redhat.com,
	davem@davemloft.net
Subject: Re: [Bridge] [PATCH net-next 3/4] bridge: mcast: Move validation to a policy
Date: Fri, 10 Feb 2023 19:20:57 -0800	[thread overview]
Message-ID: <20230210192057.4927b002@kernel.org> (raw)
In-Reply-To: <20230209071852.613102-4-idosch@nvidia.com>

On Thu,  9 Feb 2023 09:18:51 +0200 Ido Schimmel wrote:
> +	if (nla_len(attr) != sizeof(struct br_mdb_entry)) {
> +		NL_SET_ERR_MSG_MOD(extack, "Invalid MDBA_SET_ENTRY attribute length");
> +		return -EINVAL;

Well, you're just moving it, but NL_SET_ERR_MSG_ATTR() would be better.
We shouldn't be adding _MOD() in the core implementation of the family.

WARNING: multiple messages have this Message-ID (diff)
From: Jakub Kicinski <kuba@kernel.org>
To: Ido Schimmel <idosch@nvidia.com>
Cc: netdev@vger.kernel.org, bridge@lists.linux-foundation.org,
	davem@davemloft.net, pabeni@redhat.com, edumazet@google.com,
	razor@blackwall.org, roopa@nvidia.com, petrm@nvidia.com,
	mlxsw@nvidia.com
Subject: Re: [PATCH net-next 3/4] bridge: mcast: Move validation to a policy
Date: Fri, 10 Feb 2023 19:20:57 -0800	[thread overview]
Message-ID: <20230210192057.4927b002@kernel.org> (raw)
In-Reply-To: <20230209071852.613102-4-idosch@nvidia.com>

On Thu,  9 Feb 2023 09:18:51 +0200 Ido Schimmel wrote:
> +	if (nla_len(attr) != sizeof(struct br_mdb_entry)) {
> +		NL_SET_ERR_MSG_MOD(extack, "Invalid MDBA_SET_ENTRY attribute length");
> +		return -EINVAL;

Well, you're just moving it, but NL_SET_ERR_MSG_ATTR() would be better.
We shouldn't be adding _MOD() in the core implementation of the family.

  parent reply	other threads:[~2023-02-11  3:20 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-09  7:18 [Bridge] [PATCH net-next 0/4] bridge: mcast: Preparations for VXLAN MDB Ido Schimmel
2023-02-09  7:18 ` Ido Schimmel
2023-02-09  7:18 ` [Bridge] [PATCH net-next 1/4] bridge: mcast: Use correct define in MDB dump Ido Schimmel
2023-02-09  7:18   ` Ido Schimmel
2023-02-09  8:18   ` [Bridge] " Nikolay Aleksandrov
2023-02-09  8:18     ` Nikolay Aleksandrov
2023-02-09  7:18 ` [Bridge] [PATCH net-next 2/4] bridge: mcast: Remove pointless sequence generation counter assignment Ido Schimmel
2023-02-09  7:18   ` Ido Schimmel
2023-02-09  8:19   ` [Bridge] " Nikolay Aleksandrov
2023-02-09  8:19     ` Nikolay Aleksandrov
2023-02-09  7:18 ` [Bridge] [PATCH net-next 3/4] bridge: mcast: Move validation to a policy Ido Schimmel
2023-02-09  7:18   ` Ido Schimmel
2023-02-09  8:23   ` [Bridge] " Nikolay Aleksandrov
2023-02-09  8:23     ` Nikolay Aleksandrov
2023-02-11  3:20   ` Jakub Kicinski [this message]
2023-02-11  3:20     ` Jakub Kicinski
2023-02-11 15:45     ` [Bridge] " Ido Schimmel
2023-02-11 15:45       ` Ido Schimmel
2023-02-09  7:18 ` [Bridge] [PATCH net-next 4/4] selftests: forwarding: Add MDB dump test cases Ido Schimmel
2023-02-09  7:18   ` Ido Schimmel
2023-02-09  8:24   ` [Bridge] " Nikolay Aleksandrov
2023-02-09  8:24     ` Nikolay Aleksandrov
2023-02-11  3:40 ` [Bridge] [PATCH net-next 0/4] bridge: mcast: Preparations for VXLAN MDB patchwork-bot+netdevbpf
2023-02-11  3:40   ` patchwork-bot+netdevbpf

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=20230210192057.4927b002@kernel.org \
    --to=kuba@kernel.org \
    --cc=bridge@lists.linux-foundation.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=idosch@nvidia.com \
    --cc=mlxsw@nvidia.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=petrm@nvidia.com \
    --cc=razor@blackwall.org \
    --cc=roopa@nvidia.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.