From patchwork Thu May 21 11:46:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Schimmel X-Patchwork-Id: 218829 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81535C433DF for ; Thu, 21 May 2020 11:47:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 41A2C207D3 for ; Thu, 21 May 2020 11:47:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="S/X0GJ39" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729093AbgEULrA (ORCPT ); Thu, 21 May 2020 07:47:00 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:60509 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729064AbgEULrA (ORCPT ); Thu, 21 May 2020 07:47:00 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D151C5C00DD; Thu, 21 May 2020 07:46:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 21 May 2020 07:46:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=yBtlBBX4zLIbGMbXk MglHqiOlOwCymjIyS17IU49kDE=; b=S/X0GJ39iLMOaah26Hbem+h9TbQxKo2Q0 EIGRnn5ymfUkzH8jmQbCrZdSZ0K1wq2FgM0pA2YeJwU1MQDL2R77yKLkI0Ub0sjD ap1zZaVGDJlhKfXZNQ4YxePTVUCKjdbD+xapgJu4iU5nVm07aQuC7rPR6ML4U+a5 3eEo1Kzm7ZbI1wWq7Mh8VDmmuQVdihBhEfzSINRAjlyBosLQ/YtseLVeZHj30ZX0 Z8HUJDABzx/aMCwC40hcHxGkLhtjMGrzt/Y8rjfEHT1WCAlRRn4Bdm9HLvn5jWig ltR8baPUjvfa8iOS5Tihyq4DochzcWWAiWbEmOnOpsC9EU7CYddYQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudduuddggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepkfguohcuufgthhhimhhmvghluceoihguohhstghhsehiughoshgt hhdrohhrgheqnecuggftrfgrthhtvghrnhepteevgefhvefggfffkeeuffeuvdfhueehhe etffeikeegheevfedvgeelvdffudfhnecukfhppeejledrudejiedrvdegrddutdejnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihguohhstg hhsehiughoshgthhdrohhrgh X-ME-Proxy: Received: from splinter.mtl.com (bzq-79-176-24-107.red.bezeqint.net [79.176.24.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 3D3E8306647A; Thu, 21 May 2020 07:46:57 -0400 (EDT) From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, jiri@mellanox.com, mlxsw@mellanox.com, Ido Schimmel Subject: [PATCH net 0/2] netdevsim: Two small fixes Date: Thu, 21 May 2020 14:46:15 +0300 Message-Id: <20200521114617.1074379-1-idosch@idosch.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Ido Schimmel Fix two bugs observed while analyzing regression failures. Patch #1 fixes a bug where sometimes the drop counter of a packet trap policer would not increase. Patch #2 adds a missing initialization of a variable in a related selftest. Ido Schimmel (2): netdevsim: Ensure policer drop counter always increases selftests: netdevsim: Always initialize 'RET' variable drivers/net/netdevsim/dev.c | 3 +-- tools/testing/selftests/drivers/net/netdevsim/devlink_trap.sh | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-)