[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231120185123.020ad0a2@kernel.org>
Date: Mon, 20 Nov 2023 18:51:23 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Jiri Pirko <jiri@...nulli.us>
Cc: netdev@...r.kernel.org, pabeni@...hat.com, davem@...emloft.net,
edumazet@...gle.com, jacob.e.keller@...el.com, jhs@...atatu.com,
johannes@...solutions.net, andriy.shevchenko@...ux.intel.com,
amritha.nambiar@...el.com, sdf@...gle.com, horms@...nel.org
Subject: Re: [patch net-next v3 8/9] devlink: add a command to set
notification filter and use it for multicasts
On Mon, 20 Nov 2023 09:46:56 +0100 Jiri Pirko wrote:
> + if (attrs[DEVLINK_ATTR_BUS_NAME])
> + data_size += nla_len(attrs[DEVLINK_ATTR_BUS_NAME]) + 1;
> + if (attrs[DEVLINK_ATTR_DEV_NAME])
> + data_size += nla_len(attrs[DEVLINK_ATTR_DEV_NAME]) + 1;
> + /* Don't attach empty filter. */
> + if (!flt->bus_name && !flt->dev_name) {
Should the attrs be checked with GENL_REQ_ATTR_CHECK() then?
Powered by blists - more mailing lists