Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5449999ybi; Tue, 28 May 2019 13:19:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9xKC5MLFdDPa8zpKTsGPjKfHStfugN6DkXkLSBQWAh2P3ay+JtK5dGtBaMUENlPxL61Y6 X-Received: by 2002:a17:902:758b:: with SMTP id j11mr79235345pll.191.1559074740400; Tue, 28 May 2019 13:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559074740; cv=none; d=google.com; s=arc-20160816; b=DObHidc4rdoO4CcOgs9VWkgXGH3Mbna4nbf8McFmc49MVSYY846Xew46BjsG2TL1hP dg0Rqk53aCL8dDMxt0UOSTrbToh5lnW2GqJx2BVkHGWRituA4hjAKrsoJ/dgEvbt2k7m S/GJdIHvwdhQA39ez9YPULOw/7sEBegR+UEgXXG2W7eGfC9CVWLa6n+5Pp6QDc5u1GTS M52LBbsmCBdv6EHJEZsdiI//RGdGN729DLDhw8j2jJkh3vJvRNz1+zWBuftGmHYypa0X a8XROQicgGSdGupDL3v9b8GeefcABAmUfm+1FqWzGgtbpVGrnsMBklNDZa584fMCDWPT SftQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature; bh=2PbUTDuXiAxR50haxEpsxltfONNocyGAYpvkm6Pt77c=; b=e3BxsFpzSDU2HNT8NQwyhs7r/unxiFQLlPYp6tMBinEZp1lPNWagcr5HdsogOB+L10 vhQfYraUiAgd0xFTCOea8Y7LVkR8wf4eSpCm/mjS9fiVvwnVxtWjWCzm7FkHkCLozz4I 6fM6rVozIBBIUaQCUZ6exoCYCpWg6LT6msPOgkeR89HsxDo3PdOWHxi7aBvs1tAV7oUh EFI+1GoKqcVxGqSZTxsNl9l5olqLxzwMxFMy6HFpbMYO3aAhQiAttLp5kjT9DVDKp6Nk T1CkZupTYSYnnfUCp4CPmuwUxrkmbI3hCR62bgDpTH73pElbursTJs3b2eD/c9zwvSWT sl5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b="ko5bLkd/"; 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 cg6si12954952plb.350.2019.05.28.13.18.43; Tue, 28 May 2019 13:19:00 -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; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b="ko5bLkd/"; 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 S1727240AbfE1UQK (ORCPT + 99 others); Tue, 28 May 2019 16:16:10 -0400 Received: from mail-ua1-f67.google.com ([209.85.222.67]:47005 "EHLO mail-ua1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726619AbfE1UQK (ORCPT ); Tue, 28 May 2019 16:16:10 -0400 Received: by mail-ua1-f67.google.com with SMTP id a95so8539584uaa.13 for ; Tue, 28 May 2019 13:16:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=2PbUTDuXiAxR50haxEpsxltfONNocyGAYpvkm6Pt77c=; b=ko5bLkd/y0RUxLPfQLyJORMqZAJZ0nVfF3nCqs0In1f2QhZLPWX2amL/jAibl3e+om BKfY2EVCPBKAgbqF0xzsmG3zFZSODPaVgkcJvPPJS6P8c09Ynx5nItSJcyyyeaP2nefj CuP4vKDfBze7YiB/IpCx+JdxGf0Jtst4YpN2xBl+Xa5Prij4hddFW32YgRkGpdYv1fwa D9okItb0t5RHxS2Ud3wks5da82bFdQ4RuEjuQW+OBYGSHdgFk+HB+UwFJZcTxFzD1l7L e+JP8BYNU8JOi/yTfL8cFdYJHujER2/IFT3zbnXOzSVLtovwT2XyS4cAwYN7Sz2AAbHO QhQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=2PbUTDuXiAxR50haxEpsxltfONNocyGAYpvkm6Pt77c=; b=HYj3AwNgO6CZgRM/q1r/UGYQeyYr9NDgAYozVGlB7lXoin05OVxRbLurY4R5y0BD4v K4BjYBU1F+1JS2Gu99gVsJt7q1zIrRGzjekLNJ2z6P6bkYECehKJoqByMPcHWvj2XjXo etUrzJB85hhJuG1caOLSKcBlO2P8aCcDEyyECipVS6CCcaVp3ePtKxhgErEfxuaIB2Yf i1ApZ3piUPnmr4l8sYG5zKecS0Nm4T3shVYYt4I0IScDBOeibDhblkfq8XkCY2y1z1JC Iu6jjs0A6m4DKxEja4s9gBsiT+9rZqMpj94MatJet0YFND13ju84940BtVhediOSLh6n CvuA== X-Gm-Message-State: APjAAAVDzrVa8esZl63D9Cy49yffaKhZ3arIws34PsmcHvLiD0DYQP9A yOcaCqG7XfqnlnrjdsOjwco9FmLAeUa7sCThDV94CQ== X-Received: by 2002:ab0:24d:: with SMTP id 71mr80022849uas.31.1559074564237; Tue, 28 May 2019 13:16:04 -0700 (PDT) MIME-Version: 1.0 From: Jakub Kicinski Date: Tue, 28 May 2019 13:15:53 -0700 Message-ID: Subject: Re: [PATCH net-next v3 1/1] net: mscc: ocelot: Implement port policers via tc command To: Joergen Andreasen Cc: Linux Netdev List , Microchip Linux Driver Support , Alexandre Belloni , "David S. Miller" , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 May 2019 14:49:17 +0200, Joergen Andreasen wrote: > 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 Looks reasonable :) Acked-by: Jakub Kicinski