Samuel Thibault 869420a8be SO_ZEROCOPY should return -EOPNOTSUPP rather than -ENOTSUPP
ENOTSUPP is documented as "should never be seen by user programs",
and thus not exposed in <errno.h>, and thus applications cannot safely
check against it (they get "Unknown error 524" as strerror). We should
rather return the well-known -EOPNOTSUPP.

This is similar to 2230a7ef5198 ("drop_monitor: Use correct error
code") and 4a5cdc604b9c ("net/tls: Fix return values to avoid
ENOTSUPP"), which did not seem to cause problems.

Signed-off-by: Samuel Thibault <samuel.thibault@labri.fr>
Acked-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20220307223126.djzvg44v2o2jkjsx@begin
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-03-08 22:14:49 -08:00
..
2022-01-22 08:33:37 +02:00
2022-03-07 11:40:41 +00:00
2022-03-07 11:40:41 +00:00
2022-03-04 12:02:19 +00:00
2022-03-04 12:02:19 +00:00
2022-03-06 11:05:31 +00:00
2022-01-27 13:53:27 +00:00
2022-03-02 22:44:49 -08:00
2022-01-26 07:44:01 +01:00
2022-02-10 15:29:39 +00:00
2022-03-07 11:40:41 +00:00
2022-03-07 11:40:41 +00:00
2022-03-06 11:05:31 +00:00
2022-03-03 09:55:28 +00:00