ethtool: fec: sanitize ethtool_fecparam->reserved
authorJakub Kicinski <kuba@kernel.org>
Thu, 25 Mar 2021 01:11:57 +0000 (18:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Mar 2021 23:46:53 +0000 (16:46 -0700)
commit240e114411e74d2ee8121643e0c67717eb7c6982
treeb147d614c9081f170e9b8b357e82750dd997dc3a
parent408386817a9d32c88c9ac528749e9999d0e3f6a1
ethtool: fec: sanitize ethtool_fecparam->reserved

struct ethtool_fecparam::reserved is never looked at by the core.
Make sure it's actually 0. Unfortunately we can't return an error
because old ethtool doesn't zero-initialize the structure for SET.
On GET we can be more verbose, there are no in tree (ab)users.

Fix up the kdoc on the structure. Remove the mention of FEC
bypass. Seems like a niche thing to configure in the first
place.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/ethtool.h
net/ethtool/ioctl.c