Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7210479rwb; Tue, 6 Dec 2022 02:43:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf5cMBZmpIRpyoMq9ZB8KS3Q9YYkbx4NFaqW7tzGLxjbAFLp+62NKY/4b2AOGvT5fVdNYGpD X-Received: by 2002:a05:6402:494:b0:46a:c9bc:ccd4 with SMTP id k20-20020a056402049400b0046ac9bcccd4mr44010058edv.200.1670323439190; Tue, 06 Dec 2022 02:43:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670323439; cv=none; d=google.com; s=arc-20160816; b=hYind0R9xa2O9Sj3qRQbiskmGvScVrfGMgTusViKGJktI3wbYTX35VBGoXDDdWJZhB aO1kSkr+BCqtUCpnPK8M4/MEfzCdh/OyMYoCuyG4DynXmqYLq/2wwbUVFgy4xv230YAf 0bv32UPzWsWZaFvid00fSFqg3tA/uFnBCW8p7Y/aFZgt5CC2M0H7htcES0KD6UKydUDU puL+0KTw0aHh2VZOyYx7/5XDFsi9biDS8IJARY4FttCPmWo9BW4LTRLgSj3aBo1aptIL GM2gV5IiSKBrIJhz6RKD3Qgto0k5wsMgKa/9GhdGJdznB7DIxRW1aRL06JAwVLNnD6H8 OLxQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0qLoO608JIHwQrkOTyzCY7fabSSOigHnsBMsR0RHbsw=; b=DhbvRlkAepC0p0eBzPjfoTwkCGgZEKJw8wXrCGbIp4xn2XBH7lFCxrqsjLaW6YgVq5 GUuUdfOlUyaXDeorMDZr7AHKmIq+PzZj/haacAUCQpZHUVlPa3d9hItA5j7hosnHopP/ jHv+2UIOO2LjeNpgqIVTMeniGwnKkomPx6bjkoC9Mpgw/CK4XgwHR2VSAFH5ArbbcQMn miJTWkx0AkNT2hfCky5EsbL+L2TJLT70WYD798AG3LKLGkS4dOBUZdy7whU2OG88tsps /JrjRcGkzcbaGfOQwFvn9iFFBPVwCYekp/jwWqsKLqXjB6FDuojJiep46XxATN4HR+sR HvAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h7F25LVi; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x1-20020aa7d6c1000000b0046be7c09324si1637967edr.58.2022.12.06.02.43.40; Tue, 06 Dec 2022 02:43:59 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=h7F25LVi; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235510AbiLFKEe (ORCPT + 79 others); Tue, 6 Dec 2022 05:04:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235446AbiLFKEO (ORCPT ); Tue, 6 Dec 2022 05:04:14 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C8F92F000; Tue, 6 Dec 2022 01:55:51 -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 ams.source.kernel.org (Postfix) with ESMTPS id E002EB818E2; Tue, 6 Dec 2022 09:54:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D380CC433D6; Tue, 6 Dec 2022 09:54:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670320476; bh=ergxUz1Dsju0bznEJWaLN0PnmSqY7BqDm2qD+xi3qKE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h7F25LViZSIVsNdTSCCnNDFIKQ1xUlUA4NHaxJNssDLhzfrRlqkZz4C6kZQqtntDO ECbWtP+nmaSxQSaWlfkeb3HNd31/xWQUxcLguB1HgZvsUJZKq9gCHr/WBUN8Mtvdou qtnTQ+QHNN0MB7glgYhDPtvhcyEkihPJTybYRigmY5+0WspOURn2siSG0Rt3ARk19i zK1dYUG0+GdKk68ePUH6FTXiqpRwxjGZ+hvzfRE2pGSWGraAQKL7TS6yDUqOE0vwqr Etkh2D/W6RqRNQYelTyGR73Tj6sZtNHwgz39Kw8Mud3rzGS39YaDQFnWouRi/FXlMR dRxau1O+UOpAA== Date: Tue, 6 Dec 2022 11:54:31 +0200 From: Leon Romanovsky To: Eelco Chaudron Cc: wangchuanlei , alexandr.lobakin@intel.com, pabeni@redhat.com, pshelar@ovn.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, wangpeihui@inspur.com, netdev@vger.kernel.org, dev@openvswitch.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [PATCH v7 net-next] net: openvswitch: Add support to count upcall packets Message-ID: References: <20221205030024.3990061-1-wangchuanlei@inspur.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 Tue, Dec 06, 2022 at 09:12:01AM +0100, Eelco Chaudron wrote: > > > On 5 Dec 2022, at 4:00, wangchuanlei wrote: > > > Add support to count upall packets, when kmod of openvswitch > > upcall to userspace , here count the number of packets for > > upcall succeed and failed, which is a better way to see how > > many packets upcalled to userspace(ovs-vswitchd) on every > > interfaces. > > Thanks for including my suggestions, one more comment below. > > > Here modify format of code used by comments of v6. > > > > Changes since v4 & v5 & v6: > > - optimize the function used by comments > > > > Changes since v3: > > - use nested NLA_NESTED attribute in netlink message > > > > Changes since v2: > > - add count of upcall failed packets > > > > Changes since v1: > > - add count of upcall succeed packets Please put changelog after "---". It doesn't belong to commit message. Thanks > > > > Signed-off-by: wangchuanlei > > ---