]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
authorPaolo Abeni <pabeni@redhat.com>
Wed, 3 Aug 2022 06:50:42 +0000 (08:50 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Wed, 3 Aug 2022 07:04:55 +0000 (09:04 +0200)
Conflicts:

net/ax25/af_ax25.c
  8e678f03e1b2b ("ax25: fix incorrect dev_tracker usage")
  ff17dcc4b8f27 ("net: rename reference+tracking helpers")

drivers/net/netdevsim/fib.c
  b6d333c057c3 ("netdevsim: fib: Fix reference count leak on route deletion failure")
  edf4b419f95b ("netdevsim: convert driver to use unlocked devlink API during init/fini")

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1  2 
drivers/net/ethernet/intel/iavf/iavf.h
drivers/net/ethernet/intel/iavf/iavf_main.c
drivers/net/ethernet/intel/ice/ice_main.c
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en/tc/post_act.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/netdevsim/fib.c
drivers/net/usb/ax88179_178a.c
include/net/xdp_sock_drv.h
net/ax25/af_ax25.c

index 94e7512bef943dce444572b525ce88e9b371a734,38a1fde8d8862c0e235dee5bebe8e0bca11d53da..a1f91ff8ec5688e7c3bf3274a47a8f8304992a76
@@@ -1604,18 -1642,19 +1642,19 @@@ err_data_free
  
  void nsim_fib_destroy(struct devlink *devlink, struct nsim_fib_data *data)
  {
 -      devlink_resource_occ_get_unregister(devlink,
 -                                          NSIM_RESOURCE_NEXTHOPS);
 -      devlink_resource_occ_get_unregister(devlink,
 -                                          NSIM_RESOURCE_IPV6_FIB_RULES);
 -      devlink_resource_occ_get_unregister(devlink,
 -                                          NSIM_RESOURCE_IPV6_FIB);
 -      devlink_resource_occ_get_unregister(devlink,
 -                                          NSIM_RESOURCE_IPV4_FIB_RULES);
 -      devlink_resource_occ_get_unregister(devlink,
 -                                          NSIM_RESOURCE_IPV4_FIB);
 +      devl_resource_occ_get_unregister(devlink,
 +                                       NSIM_RESOURCE_NEXTHOPS);
 +      devl_resource_occ_get_unregister(devlink,
 +                                       NSIM_RESOURCE_IPV6_FIB_RULES);
 +      devl_resource_occ_get_unregister(devlink,
 +                                       NSIM_RESOURCE_IPV6_FIB);
 +      devl_resource_occ_get_unregister(devlink,
 +                                       NSIM_RESOURCE_IPV4_FIB_RULES);
 +      devl_resource_occ_get_unregister(devlink,
 +                                       NSIM_RESOURCE_IPV4_FIB);
        unregister_fib_notifier(devlink_net(devlink), &data->fib_nb);
        unregister_nexthop_notifier(devlink_net(devlink), &data->nexthop_nb);
+       cancel_work_sync(&data->fib_flush_work);
        flush_work(&data->fib_event_work);
        rhashtable_free_and_destroy(&data->fib_rt_ht, nsim_fib_rt_free,
                                    data);
Simple merge
Simple merge
index bbac3cb4dc99d08b7c68def3952532def743d8de,5b5363c99ed50c2b8baad246d3ec1757e0afd0d9..d82a51e69386b207130d9adfa2c0c8e56fd7e878
@@@ -1066,7 -1065,7 +1066,7 @@@ static int ax25_release(struct socket *
                        del_timer_sync(&ax25->t3timer);
                        del_timer_sync(&ax25->idletimer);
                }
-               netdev_put(ax25_dev->dev, &ax25_dev->dev_tracker);
 -              dev_put_track(ax25_dev->dev, &ax25->dev_tracker);
++              netdev_put(ax25_dev->dev, &ax25->dev_tracker);
                ax25_dev_put(ax25_dev);
        }
  
@@@ -1147,7 -1146,7 +1147,7 @@@ static int ax25_bind(struct socket *soc
  
        if (ax25_dev) {
                ax25_fillin_cb(ax25, ax25_dev);
-               netdev_hold(ax25_dev->dev, &ax25_dev->dev_tracker, GFP_ATOMIC);
 -              dev_hold_track(ax25_dev->dev, &ax25->dev_tracker, GFP_ATOMIC);
++              netdev_hold(ax25_dev->dev, &ax25->dev_tracker, GFP_ATOMIC);
        }
  
  done: