Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1155021ybt; Wed, 24 Jun 2020 22:08:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOqs0C2ZehTs7yrhOvqxaEF38duy8R4knemQkh72YbGJCQgJlcabocY4fe/O15gO86WZsL X-Received: by 2002:a17:906:7813:: with SMTP id u19mr5788400ejm.451.1593061702315; Wed, 24 Jun 2020 22:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593061702; cv=none; d=google.com; s=arc-20160816; b=uGHTpDB+MBKStGlrJITn3dgVclcpuEM08gpX+inedEOUx0OAqB1KpBMlgDuPOkoly7 Kvo5bXN2i8UVBCDGqHSpRortQuZMIvmncXNadGgDfCDJEr/2CZNE0B4tcfd/JSpdkn5d MLJ36pakby3m1Wr8uVP0tqfXltIjBivBkTHsvsoEOYmvZzdaba9RfW0CGTXaxw0Jb7NQ +lNIU0eERU0qqZpW1nkKZ5VzmvuCWwb+Tmlxv1FTS9TF/oQ4h/S/qHqqsYfkTlVuJCX3 QeIFk8V3LG53slG2FUKOfQ4zeUKuYrjJPj2vUTu+oyCO9jx9QfybYpq30QBjWc2Z213I 7Pmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=u42Nfm+tv3VR+Wo65KizM/v5GhzZEV/f7pxtEwnnfgI=; b=gaUcXTc8iNzZFkyURzcTM2A+HZWF9GqpU3rUzWbe/HGyikpt0CaM++C0Hm5+OrejvM m6ZFkljWIOGLkwyOy9+PHo3fPyJl5M8d96owlBOTpm81S0+dfQbRS8C3WKrGSJzI0fvg G+Vruil0xaGW5POlgeiJdtzY2rBSjmWn4KytInP9fW5tSrxTbYFz4TwFz0n8iW7PdLBq MzqGKxsj08hjGJRTIt0ZSCya6iaRSXdlS7QEmK+iDLemwMU5Pthy6BbIMK3Fg+DaYUg/ UfUxiP9LkcPR8wz4vXx9u4/Q6/1ljVwGVohI6O/gFYOv89XLIb/efNqssoWzNcLUkYo1 VorQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si2065569edl.132.2020.06.24.22.07.59; Wed, 24 Jun 2020 22:08:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389896AbgFYFFA (ORCPT + 99 others); Thu, 25 Jun 2020 01:05:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389833AbgFYFE7 (ORCPT ); Thu, 25 Jun 2020 01:04:59 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CBB3C061573; Wed, 24 Jun 2020 22:04:59 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 0CF761288116B; Wed, 24 Jun 2020 22:04:58 -0700 (PDT) Date: Wed, 24 Jun 2020 22:04:57 -0700 (PDT) Message-Id: <20200624.220457.1703184551117160217.davem@davemloft.net> To: po.liu@nxp.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, idosch@idosch.org, jiri@resnulli.us, vinicius.gomes@intel.com, vlad@buslov.dev, claudiu.manoil@nxp.com, vladimir.oltean@nxp.com, alexandru.marginean@nxp.com, michael.chan@broadcom.com, vishal@chelsio.com, saeedm@mellanox.com, leon@kernel.org, jiri@mellanox.com, idosch@mellanox.com, alexandre.belloni@bootlin.com, UNGLinuxDriver@microchip.com, kuba@kernel.org, jhs@mojatatu.com, xiyou.wangcong@gmail.com, simon.horman@netronome.com, pablo@netfilter.org, moshe@mellanox.com, m-karicheri2@ti.com, andre.guedes@linux.intel.com, stephen@networkplumber.org Subject: Re: [v2,net-next 4/4] net: enetc add tc flower offload flow metering policing action From: David Miller In-Reply-To: <20200624093631.13719-4-po.liu@nxp.com> References: <20200623063412.19180-4-po.liu@nxp.com> <20200624093631.13719-1-po.liu@nxp.com> <20200624093631.13719-4-po.liu@nxp.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 24 Jun 2020 22:04:58 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Po Liu Date: Wed, 24 Jun 2020 17:36:31 +0800 > From: Po Liu > > Flow metering entries in IEEE 802.1Qci is an optional function for a > flow filtering module. Flow metering is two rates two buckets and three > color marker to policing the frames. This patch only enable one rate one > bucket and in color blind mode. Flow metering instance are as > specified in the algorithm in MEF 10.3 and in Bandwidth Profile > Parameters. They are: > > a) Flow meter instance identifier. An integer value identifying the flow > meter instance. The patch use the police 'index' as thin value. > b) Committed Information Rate (CIR), in bits per second. This patch use > the 'rate_bytes_ps' represent this value. > c) Committed Burst Size (CBS), in octets. This patch use the 'burst' > represent this value. > d) Excess Information Rate (EIR), in bits per second. > e) Excess Burst Size per Bandwidth Profile Flow (EBS), in octets. > And plus some other parameters. This patch set EIR/EBS default disable > and color blind mode. > > v1->v2 changes: > - Use div_u64() as division replace the '/' report: > > Reported-by: kernel test robot > All errors (new ones prefixed by >>): > > ld: drivers/net/ethernet/freescale/enetc/enetc_qos.o: in function `enetc_flowmeter_hw_set': >>> enetc_qos.c:(.text+0x66): undefined reference to `__udivdi3' > > > Signed-off-by: Po Liu Applied.