Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp73330imu; Wed, 21 Nov 2018 15:37:36 -0800 (PST) X-Google-Smtp-Source: AFSGD/XdXhEbDqg8HR2AmW52ZLWHNwcvW3kBbYulOCD+cgq7J9DEPpf+ZnA9Qbof2yOmCx12Y4Fa X-Received: by 2002:a62:de06:: with SMTP id h6mr4735894pfg.158.1542843456493; Wed, 21 Nov 2018 15:37:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542843456; cv=none; d=google.com; s=arc-20160816; b=E+xfkJ6q+k6s5dd+reoKb/Dj3kc98ENk5Phr6SwrTTdd2qpv8XzeckNl4gzZ9s0rM3 CalhpqNI978GgD+MOAoa2x6WVU2DB8Gy2DBHxpnX2+znQCR9uRyN4IRnvHaaoe3FbKUq nKNnZiRw2rskip69a2haMQ3ITwNHTUIY86R3/vRTCRZqWxcQow9oeBXEIX8JZko7oitW qHMioQc20uF4oQ2gE4ZwOr80PV1XVMb+Fgok7H281NCLoHoV9y+aL9+W8nOT+HYdrofK BsOUGJo3htJvVRpMHFwtxMpkgkbHn70EjTG+zj/emeZdYWqF+6p1/OI+7hyoeszJNInP T60A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=u1OrgxeVzN+E10Fh5htn7Y3Nz9+szFcvi3dUgDDBmhM=; b=Znr+jkHNWW0XgwbmxW9ilRo5k1XYJvN2ySbGPuVvBJmIOSltZqfWvFbW/uORudIl5G Lu8hi3IjgklYoSQH3cqMROcb0u8i1OlNPhLrAshnXpujllhJE8PNWOXW1EVuUAc/0VDn LlA6IJ95RyHTQUUWp5uOy1DUSwNATxrPbFpYnxFRROS5FOWqbRdgUnmCCAMPWfeXSoyx yynT0Q5GaOR2jC5LrWMJxkGHL8LscvAP2Ha+1dEZEfR4XQVkkMwQXOPvAYJjzln+Jfy7 yZU8dp6srfkPAFqSTU0oQMKbLabnUz0DRJLCX4jNWOvTf5HYReJefEsPUDs+89oRhBqe h3iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=l92pZHRU; 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 q9si27188440pll.275.2018.11.21.15.37.21; Wed, 21 Nov 2018 15:37:36 -0800 (PST) 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=@kernel.org header.s=default header.b=l92pZHRU; 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 S2388025AbeKVFn0 (ORCPT + 99 others); Thu, 22 Nov 2018 00:43:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:38176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732097AbeKVFnZ (ORCPT ); Thu, 22 Nov 2018 00:43:25 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4FFA3214DB; Wed, 21 Nov 2018 19:07:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542827272; bh=9ROzeV/ivPJSnr79b/V/l5n5oWD6q8Ze0vE+X0rutNg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l92pZHRUX8LbUibmDkkyYVZ0a9Fg4JfoMFmtinfCXYoLdvd5/uLjNjgQEG0v1iBVa sjC/QtmMlCberOhMUwU2uwR8UL9G3ZZV8ElzUqM7JYspx7G7LnPlX2P/ATl7Gq7NeC LV1jAykqw50pS3lp2K/a6Sg2hSYlkuWQRTylIW1M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shalom Toledo , Ido Schimmel , "David S. Miller" Subject: [PATCH 4.19 38/42] mlxsw: spectrum: Fix IP2ME CPU policer configuration Date: Wed, 21 Nov 2018 20:06:14 +0100 Message-Id: <20181121183149.616680409@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181121183147.869199006@linuxfoundation.org> References: <20181121183147.869199006@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shalom Toledo [ Upstream commit 96801552f846460fe9ac10f1b189602992f004e1 ] The CPU policer used to police packets being trapped via a local route (IP2ME) was incorrectly configured to police based on bytes per second instead of packets per second. Change the policer to police based on packets per second and avoid packet loss under certain circumstances. Fixes: 9148e7cf73ce ("mlxsw: spectrum: Add policers for trap groups") Signed-off-by: Shalom Toledo Signed-off-by: Ido Schimmel Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c @@ -3519,7 +3519,6 @@ static int mlxsw_sp_cpu_policers_set(str burst_size = 7; break; case MLXSW_REG_HTGT_TRAP_GROUP_SP_IP2ME: - is_bytes = true; rate = 4 * 1024; burst_size = 4; break;