Home
last modified time | relevance | path

Searched hist:d3b37fc8 (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/net/ethtool/
H A Dioctl.cd3b37fc8 Wed Mar 24 20:11:58 CDT 2021 Jakub Kicinski <kuba@kernel.org> ethtool: fec: sanitize ethtool_fecparam->active_fec

struct ethtool_fecparam::active_fec is a GET-only field,
all in-tree drivers correctly ignore it on SET. Clear
the field on SET to avoid any confusion. Again, we can't
reject non-zero now since ethtool user space does not
zero-init the param correctly.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

/openbmc/linux/include/uapi/linux/
H A Dethtool.hd3b37fc8 Wed Mar 24 20:11:58 CDT 2021 Jakub Kicinski <kuba@kernel.org> ethtool: fec: sanitize ethtool_fecparam->active_fec

struct ethtool_fecparam::active_fec is a GET-only field,
all in-tree drivers correctly ignore it on SET. Clear
the field on SET to avoid any confusion. Again, we can't
reject non-zero now since ethtool user space does not
zero-init the param correctly.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>