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)
commitca8826095e4d4afc0ccaead27bba6e4b623a12ae
tree64b220f05a21d8cf80a7504e9e5df55db4254e38
parent5948378b26d89f8aa5eac37629dbd0616ce8d7a7
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: ea6a547669b3 ("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