Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp296772ybi; Wed, 29 May 2019 21:40:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpOQosNt/23aKjWh8eqUPR5SNEX2bKsDj+kctSD6xtggBkbQfExPHz7WjamkjMuVr/WcBH X-Received: by 2002:a17:90a:bf0d:: with SMTP id c13mr1697915pjs.88.1559191245339; Wed, 29 May 2019 21:40:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559191245; cv=none; d=google.com; s=arc-20160816; b=yBvF5Q4+hq0GxX0fCgnqX1g+tlBpPnWSgE+Kjtv1hFfa9KivmLcI53Of3Ei2ukgAIX nZrMF3M/DVn0/vrRBJV895+VtzrzUArHE63Jevc338tUevpDHPPPpPw8qFOIP7cJW2rq ZvGY50dccer4DYb4aHOoPFPelLgUCZIy7BQeM7SiEGrR/D2DBlFc8BBj5CzKN5leXTt1 f2++Q/I6Ez37QxFHqofUd/WNw9sGsWXJbO9VBZY8jkgEzsGnYjEs36g5E5Y5feYHnE9w zutPPxJbgZb7ts04dVJ34+MdRuBl62T7OM8VfT4YGT/0sZpKs0nssIlmtkYCqnmsBdWL 6h4g== 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=VhUvYRaQLVn1bn0FyIB162EWumCqo8Bt3oFB6FA+KdQ=; b=WIoguL9FOLjEAlyXqh6uAK42CXsNuRL0/4XMlb2FOsXJeIg8KD2c2MFfOXp3JNNVBI pFO/8NXsaekKnnD91cTaAWpLjN0TNJzKNgv6Laiq3b60nROtqXeqkX51NxRYJNWCPTat KlnB/eoxMm33FLUWZ04cKsR8NhTfkKGlprz5j0Q8DYjKWc2RzrnL7aiFXasiPYxcdkRn 9R6Iz37SEaDGJtSfiP3STvoXmM3gPUug8gnISw3xiyYAlbigYygFq8CMUPxNY6LaAbeA hVdVuPRV+3KXiwoSiw9CG9SoBlM0phMg06Ib8P1fTwb0b7/Ibf+mM5X9ASxl2EgOcb2q DfzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si2348545pfe.21.2019.05.29.21.40.30; Wed, 29 May 2019 21:40:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732331AbfE3EiN (ORCPT + 99 others); Thu, 30 May 2019 00:38:13 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:46748 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388532AbfE3EiK (ORCPT ); Thu, 30 May 2019 00:38:10 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::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 529CD136E13CB; Wed, 29 May 2019 21:38:10 -0700 (PDT) Date: Wed, 29 May 2019 21:38:09 -0700 (PDT) Message-Id: <20190529.213809.1804206775236133314.davem@davemloft.net> To: joergen.andreasen@microchip.com Cc: netdev@vger.kernel.org, UNGLinuxDriver@microchip.com, alexandre.belloni@bootlin.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v3 1/1] net: mscc: ocelot: Implement port policers via tc command From: David Miller In-Reply-To: <20190528124917.22034-2-joergen.andreasen@microchip.com> References: <20190502094029.22526-1-joergen.andreasen@microchip.com> <20190528124917.22034-1-joergen.andreasen@microchip.com> <20190528124917.22034-2-joergen.andreasen@microchip.com> X-Mailer: Mew version 6.8 on Emacs 26.1 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, 29 May 2019 21:38:10 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joergen Andreasen Date: Tue, 28 May 2019 14:49:17 +0200 > Hardware offload of matchall classifier and police action are now > supported via the tc command. > Supported police parameters are: rate and burst. > > Example: > > Add: > tc qdisc add dev eth3 handle ffff: ingress > tc filter add dev eth3 parent ffff: prio 1 handle 2 \ > matchall skip_sw \ > action police rate 100Mbit burst 10000 > > Show: > tc -s -d qdisc show dev eth3 > tc -s -d filter show dev eth3 ingress > > Delete: > tc filter del dev eth3 parent ffff: prio 1 > tc qdisc del dev eth3 handle ffff: ingress > > Signed-off-by: Joergen Andreasen Applied.