Ido Schimmel dc5e0141ff nexthop: Only parse NHA_OP_FLAGS for get messages that require it
The attribute is parsed into 'op_flags' in nh_valid_get_del_req() which
is called from the handlers of three message types: RTM_DELNEXTHOP,
RTM_GETNEXTHOPBUCKET and RTM_GETNEXTHOP. The attribute is only used by
the latter and rejected by the policies of the other two.

Pass 'op_flags' as NULL from the handlers of the other two and only
parse the attribute when the argument is not NULL.

This is a preparation for a subsequent patch.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20240311162307.545385-2-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-03-11 20:35:20 -07:00
..
2023-10-01 19:09:54 +01:00
2024-03-11 18:06:04 -07:00
2024-02-20 15:32:45 +01:00
2024-02-21 17:11:04 -08:00
2024-01-11 10:07:29 -08:00
2024-03-08 09:05:49 -08:00
2024-03-07 20:42:13 -08:00
2024-03-05 11:21:18 -08:00
2024-03-07 21:12:43 -08:00
2024-03-08 09:05:49 -08:00
2024-03-02 20:50:59 -08:00
2024-03-08 10:56:05 +00:00
2023-12-12 14:24:14 +01:00
2024-01-31 16:41:16 -08:00