mbox series

[net,0/2] netdevsim: Two small fixes

Message ID 20200521114617.1074379-1-idosch@idosch.org
Headers show
Series netdevsim: Two small fixes | expand

Message

Ido Schimmel May 21, 2020, 11:46 a.m. UTC
From: Ido Schimmel <idosch@mellanox.com>

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(-)

Comments

Jakub Kicinski May 21, 2020, 7:20 p.m. UTC | #1
On Thu, 21 May 2020 14:46:15 +0300 Ido Schimmel wrote:
> From: Ido Schimmel <idosch@mellanox.com>
> 
> 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.

Acked-by: Jakub Kicinski <kuba@kernel.org>
David Miller May 22, 2020, 11:05 p.m. UTC | #2
From: Ido Schimmel <idosch@idosch.org>
Date: Thu, 21 May 2020 14:46:15 +0300

> From: Ido Schimmel <idosch@mellanox.com>
> 
> 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.

Series applied, thanks.