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