Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1796035rwi; Thu, 27 Oct 2022 22:11:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7F8tci4q78nHr9Csk2Oz1Gh1/csnL2s2vNIYO+PwYugK6utHLXcmkKWhv1C2KCxQ4lPafA X-Received: by 2002:a17:907:78d:b0:740:33e1:998 with SMTP id xd13-20020a170907078d00b0074033e10998mr46044106ejb.162.1666933872395; Thu, 27 Oct 2022 22:11:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666933872; cv=none; d=google.com; s=arc-20160816; b=0NWEShQIh19cUhjPQuEm5S+ULEOV1Gcj+khbHECHrX6ufY1BiGjxmniVPbHnmprMhm EQ9zZUWg5RY3hW3oMH0ydZqGVjNVuZnra9xVNNXi7JJTBgJvcep8cis7hO+kz6LtmJkJ FpBspSaewia/qWCQHWoLlprHczYe+pCD7sf57PmJ98DytboF2OrbMx6PZJ1LVha+tZsH 6McTpvPxQVvut6Ziy3gyCu7rWDcTZZLS3ygSEKgjWfgrM1QQbv6IlZxpILhMp4KPWbVU hmOI09L74qloOXSOmNvd9TV4Z5DqMBLNe9sAbCPno/7lePbdjr5d8oZMRR+hkfFM0U8T rJ0g== 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:dkim-signature:date; bh=iENfr5ZPUTr7bus8FV8bzCGok8UT4CZsu/mTj2KyRuM=; b=B3O+vf//12pZMIzRBdLTRZv3kmIugwh7zHR53VrB59R2VyI1//vOIaECo4cgTaOBVF x8141OoqkPHRRe6zbx0w8oRGfzfonVjmsyctCe0BGjy7EBXbwStEoBr7HxGH2MxWZXs2 dyDdhkrBwNqFeMo2NwLY2VpWWb1p/YXua/ek5E8tNhg/oVkq51b7ic3TMDx5EiH1x8a5 9U02r9HAAjKhBiwyu03Q/JKA7EfdqDGfTR/UdRvR6wlRjg6k9S4G66Zq85a2nNSPOGU/ mp8/qpc0ktOOVHAYktuxwWPiNmNBv3jfXXYJfRAYbDeMqO7CeSMkIh8f/zaon9+NzPGR U3Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Bgd+6+bq; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d2-20020aa7ce02000000b00461d02225a3si2942874edv.448.2022.10.27.22.10.46; Thu, 27 Oct 2022 22:11:12 -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=@linux.dev header.s=key1 header.b=Bgd+6+bq; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229616AbiJ1E5C (ORCPT + 99 others); Fri, 28 Oct 2022 00:57:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbiJ1E5B (ORCPT ); Fri, 28 Oct 2022 00:57:01 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAEE0197FA5; Thu, 27 Oct 2022 21:56:59 -0700 (PDT) Date: Fri, 28 Oct 2022 12:56:55 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1666933018; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iENfr5ZPUTr7bus8FV8bzCGok8UT4CZsu/mTj2KyRuM=; b=Bgd+6+bqzAmI65Tij20r2PW15cevOr7v3mZ3OYrcp4mqvN4mXdvbenM6QqSFLEkGZd/FZy uSYOKF65yMSt6NYzVLv9cPFCBvWRZwcjdywokM+Tw2fPhaEi6FUDG07XLFFnRs6v6VZroD 8QWRiP+qP0ubUf1NMe6O1MN2Kj65mSk= 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: <20221028045655.GB3164@chq-T47> References: <20221026125922.34080-1-cai.huoqing@linux.dev> <20221026125922.34080-2-cai.huoqing@linux.dev> <20221027110312.7391f69f@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221027110312.7391f69f@kernel.org> X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 27 10月 22 11:03:12, Jakub Kicinski wrote: > On Wed, 26 Oct 2022 20:59:11 +0800 Cai Huoqing wrote: > > The control command only can be set to register in PF, > > so add support in PF driver for VF PMD driver control > > command when VF PMD driver work with linux PF driver. > > For what definition of "work"? Hi Jakub, The work means that when the VF NIC driver in guest OS do some configuration (VF L2NIC config), firstly, VF send cmd to PF viamailbox, then, PF deside what cmd is valid as a command filter. see these, ./hinic_sriov.c:1031:static int nic_pf_mbox_handler(.. ./hinic_sriov.c:1045: if (!hinic_mbox_check_cmd_valid(hwdev, nic_cmd_support_vf, vf_id, cmd, > > The commands are actually supported or you're just ignoring them > silently? No, 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. ./hinic_hw_mbox.c:1238:bool hinic_mbox_check_cmd_valid(struct hinic_hwdev *hwdev, Thanks, Cai