Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp187454rwj; Sat, 29 Oct 2022 01:11:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4V0bObRIN6fU5CXBrCkZpKxDAYTWZocQcjiv7NoqSK5qqacBrMWj6VbYqMTfOUyUTlS7O+ X-Received: by 2002:a17:902:d891:b0:186:634e:5525 with SMTP id b17-20020a170902d89100b00186634e5525mr3234689plz.126.1667031118710; Sat, 29 Oct 2022 01:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667031118; cv=none; d=google.com; s=arc-20160816; b=GvhEEAzT3+2f44M4t92/YMuacuT5Xd7N0FIA1RPPMXH1jDMPADAvAXyoF62qFY33Bd U/k9VXUGEiFT5kST50SlOZRWbCTvRc7T/kw/AiULd6Ldat2uUowjzSZq45l4GOKaJnT9 TdejuFSkMbI/D0thoDNG6LklyYP97SAbe7/t5vJCVbFIPYEJ6hNA+n1ASRtA1De6pl/s 0qs4eTv2EK0yURAEA75FoR+OD0FG233+DSXfTyHiq+ZIai+roFhMIx/xJDZRp2op4XM4 neUtfTF+Me9IdGlMjAxwweO9riZ5s23YghQ8rUit+E+feCjdaqaLlW6tzRlObeMeOZjT 1ajA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TfjElzP404VoN3L0V2Z7UF+fusSRg3A6xIsX5CqmrBk=; b=c9eduDQcpfeSEQNvas0XC0wFZHrApvKCn8l1WIozzGC6px0H8oweKKp+ctUXFznj2U cORClv/m/It9YsJgfUFO9RuPaFJz2OojK2DiIYNg+rySxrxMQkltNONXbLRTpoqe6ltM PbohOs8wp8NWw4VbH+Vc9QCvu+KJyrbHLP0mN6Kcapybqpq/i7fT14/wFGqw/72nkBHL HZjOjMU9ets42AQ+4XH4GozIT8SZe9rFa/Z2MORa5mUXsTiJ/4p/rbIByi8VfaOe+nub ZnmxS84taHMh1VUEeHDBL6vgx40uCIjnsUmpdtQRTWEBYNFmtmQCvLL8N7ivSAOgv3rx MOcQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z3-20020a634c03000000b0046ed62f8205si1220032pga.844.2022.10.29.01.11.47; Sat, 29 Oct 2022 01:11:58 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229445AbiJ2Hxs (ORCPT + 99 others); Sat, 29 Oct 2022 03:53:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229647AbiJ2Hxo (ORCPT ); Sat, 29 Oct 2022 03:53:44 -0400 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C4C972B5A; Sat, 29 Oct 2022 00:53:41 -0700 (PDT) Date: Sat, 29 Oct 2022 15:53:35 +0800 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Cai Huoqing To: Jakub Kicinski Cc: "David S. Miller" , Eric Dumazet , Paolo Abeni , Zhengchao Shao , Bin Chen , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Peter Chen , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] net: hinic: Add control command support for VF PMD driver in DPDK Message-ID: <20221029075335.GA9148@chq-T47> References: <20221026125922.34080-1-cai.huoqing@linux.dev> <20221026125922.34080-2-cai.huoqing@linux.dev> <20221027110312.7391f69f@kernel.org> <20221028045655.GB3164@chq-T47> <20221028085651.78408e2c@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221028085651.78408e2c@kernel.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS 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 28 10月 22 08:56:51, Jakub Kicinski wrote: > On Fri, 28 Oct 2022 12:56:55 +0800 Cai Huoqing wrote: > > > The commands are actually supported or you're just ignoring them > > > silently? > > No, > > Do you mean "neither"? > > > if the cmd is not added to 'nic_cmd_support_vf', > > the PF will return false, and the error messsage "PF Receive VFx > > unsupported cmd x" in the function 'hinic_mbox_check_cmd_valid', > > then, the configuration will not be set to hardware. > > You're describing the behavior before the patch? > > After the patch the command is ignored silently, like I said, right? > Because there is no handler added to nic_vf_cmd_msg_handler[]. > Why is that okay? Or is there handler somewhere else? No need to add handlers to nic_vf_cmd_msg_handler[]. It will run the path, if (i == ARRAY_SIZE(nic_vf_cmd_msg_handler)) err = hinic_msg_to_mgmt(&pfhwdev->pf_to_mgmt, HINIC_MOD_L2NIC, cmd, buf_in, in_size, buf_out, out_size, HINIC_MGMT_MSG_SYNC); right? or if not please show the related code.