On Wed, Jan 04, 2023 at 08:17:50PM -0800, Saeed Mahameed wrote: > From: Jiri Pirko <jiri@xxxxxxxxxx> > > Whenever uplink netdev is set/cleared, propagate newly introduced event > to inform notifier blocks netdev was added/removed. > > Move the set() helper to core.c from header, introduce clear() and > netdev_added_event_replay() helpers. The last one is going to be called > from rdma driver, so export it. > > Signed-off-by: Jiri Pirko <jiri@xxxxxxxxxx> > Signed-off-by: Saeed Mahameed <saeedm@xxxxxxxxxx> > --- > .../net/ethernet/mellanox/mlx5/core/en_main.c | 3 ++- > .../ethernet/mellanox/mlx5/core/lib/mlx5.h | 5 ----- > .../net/ethernet/mellanox/mlx5/core/main.c | 20 +++++++++++++++++++ > include/linux/mlx5/device.h | 1 + > include/linux/mlx5/driver.h | 5 +++++ > 5 files changed, 28 insertions(+), 6 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx>