Skip to content

Commit 21d08d1

Browse files
hyperenjuanguy11
authored andcommitted
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: 36b9fea ("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>
1 parent bc73c58 commit 21d08d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/intel/igc/igc_ethtool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ static int igc_ethtool_get_sset_count(struct net_device *netdev, int sset)
810810
case ETH_SS_PRIV_FLAGS:
811811
return IGC_PRIV_FLAGS_STR_LEN;
812812
default:
813-
return -ENOTSUPP;
813+
return -EOPNOTSUPP;
814814
}
815815
}
816816

0 commit comments

Comments
 (0)