linux-kernelorg-stable/drivers/net/ethernet/intel/igc
Kohei Enju 21d08d1c4c igc: use EOPNOTSUPP instead of ENOTSUPP in igc_ethtool_get_sset_count()
igc_ethtool_get_sset_count() returns -ENOTSUPP when a given stringset is
not supported, causing userland programs to get "Unknown error 524".

Since EOPNOTSUPP should be used when error is propagated to userland,
return -EOPNOTSUPP instead of -ENOTSUPP.

Fixes: 36b9fea609 ("igc: Add support for statistics")
Signed-off-by: Kohei Enju <enjuk@amazon.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2025-10-28 12:49:59 -07:00
..
Makefile
igc.h
igc_base.c
igc_base.h
igc_defines.h
igc_diag.c
igc_diag.h
igc_dump.c
igc_ethtool.c igc: use EOPNOTSUPP instead of ENOTSUPP in igc_ethtool_get_sset_count() 2025-10-28 12:49:59 -07:00
igc_hw.h
igc_i225.c
igc_i225.h
igc_leds.c
igc_mac.c
igc_mac.h
igc_main.c
igc_nvm.c
igc_nvm.h
igc_phy.c
igc_phy.h
igc_ptp.c
igc_regs.h
igc_tsn.c
igc_tsn.h
igc_xdp.c
igc_xdp.h