Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5995077rwb; Tue, 1 Aug 2023 10:40:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlEoqC5N2wc/BfOWpfNnJv9JVFPNGV/bZpUCIk1X/WmBMY1mOp9agJw9Qzd+nXihtnTUNNVQ X-Received: by 2002:a17:906:53c5:b0:99b:f3f5:9752 with SMTP id p5-20020a17090653c500b0099bf3f59752mr2699128ejo.14.1690911621054; Tue, 01 Aug 2023 10:40:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690911621; cv=none; d=google.com; s=arc-20160816; b=qAs4+OymBAiE0mWv2TWvWkGwfUAuItPlZ40WEzlckpo3r/XB6t18VOZ6E/GxdnJJbT Ss1Y0MQZL6ZmXTS7iC1vWWJazznzzUrxzgaBZyehTsQMNhO3ckItK0zeA+Po1SerAElM t8RjjeRF6qOXNP+57vAGXELacv3Kj08f0x9lLD+SjT1n8kqs34VqgmT6yg+s2DObE+hl HlF6Q/4QWXj5RYkYvyYrV7FG4L5X1naikDpc5K7XNUmhJVP1zNcjjuD2Yd3GGWKGLlFV WZE+iqmLdVSVcJeLZskGqTi42SWCTAScPZHy4K0vXN2kHiYtKbR3WQ4xK3yctwwsxgBu XkpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=pkC3KIklnTCY53hK9lBcQer2DPh4HPjr+bgJxfgI/K0=; fh=4fXssq9zHFl2tyYFIJL7Uk6SBzgjbQ83VIEtnOTfCiI=; b=vS2F2z9QDfThTPpQo7pPbcsYhs3uMHRRHV72FVWQuzfiJFiFRJfwufuumnzRoVUyZx 7gZQ8QJFXzwelcZa8sQ7j3qQx/fKYjdpn4wNH1LxlR3LD4dGhM6j1d3wNMvm5q20R6D0 /0GQaZl7m684BNYnPOW/sEj016lBI2kgODjShQnr2GvFG3zvZtNVyJeSecn//1nWLP1W eySqLd2BAvB4HAdOGtknoqXHfKqa4LCukh8Nhku0crj5yUdR7+5lR1U/cmWgRYQbaz62 KgSh4VY5nHroIUibhE73A/Qqu3xPX1h1JPgHHU9i9edL4FanrpKXaIqpFay/fR9p/5yk 28CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=AWiRoEuY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i8-20020a170906a28800b0099bd2067164si5528761ejz.1041.2023.08.01.10.39.56; Tue, 01 Aug 2023 10:40:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=AWiRoEuY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234442AbjHAOMU (ORCPT + 99 others); Tue, 1 Aug 2023 10:12:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234419AbjHAOMP (ORCPT ); Tue, 1 Aug 2023 10:12:15 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 823B718B for ; Tue, 1 Aug 2023 07:11:51 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-40c72caec5cso328851cf.0 for ; Tue, 01 Aug 2023 07:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690899110; x=1691503910; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pkC3KIklnTCY53hK9lBcQer2DPh4HPjr+bgJxfgI/K0=; b=AWiRoEuYk0UGZeHx2qpOUsfJvYvsb9ItVBq1bBfWodqv8ZtmHcSr5U4SJH+F1o5vWI K6iPs0qHJLgYXDC2w0OADuJPUFP1UEbCuEa7zAkE3mKud7uQly0y644nfeff9UA+hzRN 7uUZDuGz9fvLg+w3oFRAf8MffaUovWmFq72/mIu+dU6ms+nbXasl12aGs9/XvEI5qwnU VSH1cgj6/KjWVNDXvD3quSoqJJNC1CERaEVyHfPr0JMOGtpjbMDtFV84czo6m4O7UCnr aXou7ABUttpT7pdmUHdfZX3kY+ncNENW6E2OKNfk4afkRnrmzBRadF1EUSjKYnXClAE7 V7jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690899110; x=1691503910; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pkC3KIklnTCY53hK9lBcQer2DPh4HPjr+bgJxfgI/K0=; b=YMjMAUvNUyM5TXn0agmMAT6W2aIJXMtdk/uv6XVMAJyYoXLzsjkwRaTUd82mUTBkoB xizvijQnd6aEe+2gqZQR8+OCrOT1bmwys+7oXPSMccdpuUVZElgGh4wYp9yKgnCNlVqi rd+bRQpqQs/dt1dNxp40rIBLMRFWU2rFcIhwOU3NCHwrvcd2BPHpbuIz4EsrvA3bNEUr ct3GStFmH0z8QQM5vw0lerk0Drju/yWfq+NnJjXRtUFJQkKCf8QJljBugQ+h7LVlX8mc U0Zf9lFHuCiKq76B2qHvXAIIR+7NV3ywYYRI6yd+dUUzQpDRzCbuAF8wwjuu2bGSrYNz K9KA== X-Gm-Message-State: ABy/qLZGKgMlHsA7XOTrtyoRsxNCAN2+tZZVBhYx1LIAM1q1wJWsBDdH rvxtPWzjqIQc+Czg3sfGjMm1sohNk7nKf6a/LvBofQ== X-Received: by 2002:a05:622a:15d0:b0:3f8:5b2:aef0 with SMTP id d16-20020a05622a15d000b003f805b2aef0mr825346qty.24.1690899110445; Tue, 01 Aug 2023 07:11:50 -0700 (PDT) MIME-Version: 1.0 References: <20230801112101.15564-1-quic_ajainp@quicinc.com> <447ba1fe-b20b-4ed0-97bc-4137b2ccfb37@lunn.ch> <8c591002-308e-bdba-de5f-c96113230451@quicinc.com> In-Reply-To: <8c591002-308e-bdba-de5f-c96113230451@quicinc.com> From: Eric Dumazet Date: Tue, 1 Aug 2023 16:11:39 +0200 Message-ID: Subject: Re: [PATCH] net: export dev_change_name function To: Anvesh Jain P Cc: Andrew Lunn , "David S . Miller" , Jakub Kicinski , Paolo Abeni , Simon Horman , Kuniyuki Iwashima , Hangbin Liu , Jiri Pirko , Heiner Kallweit , Andy Ren , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Venkata Rao Kakani , Vagdhan Kumar Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 1, 2023 at 3:08=E2=80=AFPM Anvesh Jain P wrote: > > > > On 8/1/2023 6:01 PM, Andrew Lunn wrote: > > On Tue, Aug 01, 2023 at 04:51:01PM +0530, Anvesh Jain P wrote: > >> export dev_change_name function to be used by other modules. > >> > >> Signed-off-by: Vagdhan Kumar > >> Signed-off-by: Anvesh Jain P > > > > It would be normal to include a user of the API when exposing an API. > > > > What module needs to change the name of a device? At the moment, only > > user space can do this via netlink or an IOCTL. > > > > Andrew > CONFIG_RENAME_DEVICES is the module which needs "dev_change_name" API. > Our requirement is to change the network device name from kernel space. We do not support out-of-tree code. You will have to upstream this code first.