selftests/net: report etf errors correctly
authorWillem de Bruijn <willemb@google.com>
Thu, 18 Jun 2020 16:40:43 +0000 (12:40 -0400)
committerSasha Levin <sashal@kernel.org>
Tue, 30 Jun 2020 19:36:58 +0000 (15:36 -0400)
commit67db9e032b6e5db640e643375c43c82af34a02a6
tree160cfb8ac258522d738b796ff7595d18a55476cf
parent34f45567462d07f697e9a4ec6a0c8c374f432b83
selftests/net: report etf errors correctly

[ Upstream commit ca8826095e4d4afc0ccaead27bba6e4b623a12ae ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/so_txtime.c