Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6060977rwn; Mon, 12 Sep 2022 20:26:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR7hDtsV1ltplw24xXQ4JZAI/OuH1gntaqmwtiIZwSDTY7KD1efR0kxdnYRORSj0L53XtG+i X-Received: by 2002:aa7:d3d6:0:b0:44e:98b9:3d7b with SMTP id o22-20020aa7d3d6000000b0044e98b93d7bmr25358045edr.259.1663039594271; Mon, 12 Sep 2022 20:26:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663039594; cv=none; d=google.com; s=arc-20160816; b=qd3wjNzXlFhS3UnT8iIy95A9PhoUmkPbJnNCfYuCINdE9x1oj20T8fRSEK051dtobH HYE0zyPcyDYRjCifL3FLkk2vbVvdaU3kG6u+h8oO46XAeUNdXaWv+wFyAKhswxcOCItd 8hd72TVzm4jyOSHhU9gB0Xk/O3ORGf0f/X0ziegp2D0jlhI8XUVyU2LbTb/9JBlEnCM5 bWQpTpJawSASp2lY79eoLpqa5sfvcapHYh1HvksDBETPhXOxzjPdWdECbU6qhtyrTiUl EK0j7WghZHBLAs/TcLEXSiByxazAngIu6BpLl/xCCxFGdCQID5SxPp++5TEyx5YF1jUf 77JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=HgnWShuthVttTq25SF0xB90y39hGW2SHJEUNlp+qnQA=; b=qC3A+xHLSenHbaQIoU3iwq9jPbcWspebIO+Qv0w0FCn1RRCXQ1fv6Q6UemTvek9Lli C+Pss9/zT+tCRjzjaDeCabU+Pks1wDcKR50pdiiYm2OidymN3K0qnMv/Fj4R37onFn2F HMSP7/5VIeEEwVXw2XeKB7N2PzfXpMt7alNlJgBLk1cPmL4+Ec8jp54qtZzRKWJoVnQJ 9qpvgU0GkD7d2Mqs+N+0WfOjHQquQUKsYOVTzXp7udvUsgyESUp11yJYFpkgykKHmOzM 8Luc3GszyJDtGHOoPH3P16T/CT65Ym5KrnVTmu65Sh+kCxQ6BaCjGnLapbTw6EQuCD+W bMmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MDOWNzeZ; 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h13-20020a170906398d00b00741c0bd705dsi7165354eje.631.2022.09.12.20.26.09; Mon, 12 Sep 2022 20:26:34 -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=@intel.com header.s=Intel header.b=MDOWNzeZ; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229862AbiIMCMO (ORCPT + 99 others); Mon, 12 Sep 2022 22:12:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229779AbiIMCMM (ORCPT ); Mon, 12 Sep 2022 22:12:12 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E62113CDA; Mon, 12 Sep 2022 19:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663035131; x=1694571131; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=mo0emAiOJ18klsHjvFTruZ4gWXQXs6molcKd5bmMm9s=; b=MDOWNzeZrqH4atszv54GWpEBw2Eq9exezvsAfe/2fyN/lT1qx+llU24e IaLMSooGAbUqcwVHH3Eu1f7ypWUewzaSIYYdFFpyxxBDPX7R5TQijEocw /veVBQQD57Uew1iTrXDVRZa5jLG7gkE+mKAYuu455fDGQz1z2IdsU5XUQ JuWMXGyyP6mvT4nfdZVyJx1PTEq04edu3Ja7zq/kXUO+NoIqdiZ6rADq7 ikNKUYLjzatsIeljJcVMyiQIiZyp14L2fL4e0AGlhIBjOPVbkt5qxIXxs gOYX/8tZaSN7B8zyInr0E0YZYXYpUGDxtN8ZGKjotHDZ6t0AoOZj2aNUc A==; X-IronPort-AV: E=McAfee;i="6500,9779,10468"; a="361967153" X-IronPort-AV: E=Sophos;i="5.93,311,1654585200"; d="scan'208";a="361967153" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2022 19:12:11 -0700 X-IronPort-AV: E=Sophos;i="5.93,311,1654585200"; d="scan'208";a="593739044" Received: from jiaqingz-mobl.ccr.corp.intel.com (HELO [10.249.172.208]) ([10.249.172.208]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2022 19:12:09 -0700 Message-ID: <36c12486-57d4-c11d-474f-f26a7de8e59a@linux.intel.com> Date: Tue, 13 Sep 2022 10:12:06 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH] net/ncsi: Add Intel OS2BMC OEM command To: Paul Fertser Cc: Samuel Mendoza-Jonas , "David S. Miller" , Eric Dumazet , Paolo Abeni , netdev@vger.kernel.org, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <20220909025716.2610386-1-jiaqing.zhao@linux.intel.com> <8eabb29b-7302-d0a2-5949-d7aa6bc59809@linux.intel.com> Content-Language: en-US From: Jiaqing Zhao In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 2022-09-09 15:43, Paul Fertser wrote: > Hello, > > On Fri, Sep 09, 2022 at 03:34:53PM +0800, Jiaqing Zhao wrote: >>> Can you please outline some particular use cases for this feature? >>> >> It enables access between host and BMC when BMC shares the network connection >> with host using NCSI, like accessing BMC via HTTP or SSH from host. > > Why having a compile time kernel option here more appropriate than > just running something like "/usr/bin/ncsi-netlink --package 0 > --channel 0 --index 3 --oem-payload 00000157200001" (this example uses > another OEM command) on BMC userspace startup? > Using ncsi-netlink is one way, but the package and channel id is undetermined as it is selected at runtime. Calling the netlink command on a nonexistent package/channel may lead to kernel panic. Why I prefer the kernel option is that it applies the config to all ncsi devices by default when setting up them. This reduces the effort and keeps compatibility. Lots of things in current ncsi kernel driver can be done via commands from userspace, but I think it is not a good idea to have a driver resides on both kernel and userspace.