From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43AFDC4332F for ; Sat, 17 Dec 2022 01:20:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229880AbiLQBUN (ORCPT ); Fri, 16 Dec 2022 20:20:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiLQBUL (ORCPT ); Fri, 16 Dec 2022 20:20:11 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 928B36809D for ; Fri, 16 Dec 2022 17:20:10 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 040B8621F6 for ; Sat, 17 Dec 2022 01:20:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21800C433D2; Sat, 17 Dec 2022 01:20:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671240009; bh=FpvNeKaqog8I9K7JKd14R8emGGNtptAsI93PTWptGHQ=; h=From:To:Cc:Subject:Date:From; b=C0Yy2NPzRoEF8KU8KY2oMZrgVzKrABGAWdyjiG4Bw2lGGQSy7DrbuoB15WDxbfUrF 8GjBn7GkW+WRdyDfLgWG5zf4/AJmVULaNnFFFOWEnpFoMojJ7uXqvTE9LjZ6S9QgCu lHCeVMTKZG8dm8yK+EQqpgoM/XhQWv7pUl0C+IhNMHmtsDrzfwn6GNn0Z8Kp0QRBjM HDaxHXTP8+3Ldh6duVP1uv4denPUqhoEWCZqaOThvdHQSStHdQ15cOqiFsokuU6fze apkEODWpByWB/x25MARzVx0DYs7KB9a36PGYEgDd1gbR8V18ocWgXvscITwni+ekJF 3AbU1OV8laxKw== From: Jakub Kicinski To: jiri@resnulli.us, jacob.e.keller@intel.com, leon@kernel.org Cc: netdev@vger.kernel.org, Jakub Kicinski Subject: [RFC net-next 00/10] devlink: remove the wait-for-references on unregister Date: Fri, 16 Dec 2022 17:19:43 -0800 Message-Id: <20221217011953.152487-1-kuba@kernel.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This set is on top of the previous RFC. Move the registration and unregistration of the devlink instances under their instance locks. Don't perform the netdev-style wait for all references when unregistering the instance. Jakub Kicinski (10): devlink: bump the instance index directly when iterating devlink: update the code in netns move to latest helpers devlink: protect devlink->dev by the instance lock devlink: always check if the devlink instance is registered devlink: remove the registration guarantee of references devlink: don't require setting features before registration netdevsim: rename a label netdevsim: move devlink registration under the instance lock devlink: allow registering parameters after the instance netdevsim: register devlink instance before sub-objects drivers/net/netdevsim/dev.c | 15 +++-- include/net/devlink.h | 3 + net/devlink/basic.c | 64 ++++++++++++------ net/devlink/core.c | 127 +++++++++++++++++------------------- net/devlink/devl_internal.h | 20 ++---- net/devlink/netlink.c | 19 ++++-- 6 files changed, 136 insertions(+), 112 deletions(-) -- 2.38.1