On Wed, Jan 04, 2023 at 08:17:49PM -0800, Saeed Mahameed wrote: > From: Jiri Pirko <jiri@xxxxxxxxxx> > > Current code does not return correct return value from event handler. > Fix it by returning NOTIFY_* and propagate err over newly introduce ctx > structure. > > Signed-off-by: Jiri Pirko <jiri@xxxxxxxxxx> > Signed-off-by: Saeed Mahameed <saeedm@xxxxxxxxxx> > --- > drivers/net/ethernet/mellanox/mlx5/core/devlink.c | 9 +++++++-- > drivers/net/ethernet/mellanox/mlx5/core/devlink.h | 5 +++++ > drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 12 ++++++++---- > 3 files changed, 20 insertions(+), 6 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx>