Skip to content

Commit bc73c58

Browse files
hyperenjuanguy11
authored andcommitted
igb: use EOPNOTSUPP instead of ENOTSUPP in igb_get_sset_count()
igb_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: 9d5c824 ("igb: PCI-Express 82575 Gigabit Ethernet driver") 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 81fb1fe commit bc73c58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/intel/igb/igb_ethtool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2281,7 +2281,7 @@ static int igb_get_sset_count(struct net_device *netdev, int sset)
22812281
case ETH_SS_PRIV_FLAGS:
22822282
return IGB_PRIV_FLAGS_STR_LEN;
22832283
default:
2284-
return -ENOTSUPP;
2284+
return -EOPNOTSUPP;
22852285
}
22862286
}
22872287

0 commit comments

Comments
 (0)