]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/net: report etf errors correctly
authorWillem de Bruijn <willemb@google.com>
Thu, 18 Jun 2020 16:40:43 +0000 (12:40 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Jun 2020 03:23:02 +0000 (20:23 -0700)
commit79fb7665ef53603e184f95e53b66344f5a195947
tree64b220f05a21d8cf80a7504e9e5df55db4254e38
parent2b9baf6b8c07e2295d6605f30a2226a1191f4c9d
selftests/net: report etf errors correctly

The ETF qdisc can queue skbs that it could not pace on the errqueue.

Address a few issues in the selftest

- recv buffer size was too small, and incorrectly calculated
- compared errno to ee_code instead of ee_errno
- missed invalid request error type

v2:
  - fix a few checkpatch --strict indentation warnings

Fixes: 8cf4211fff59 ("selftests/net: make so_txtime more robust to timer variance")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/so_txtime.c