]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: update mapping of features to legacy ioctl requests
authorMichal Kubecek <mkubecek@suse.cz>
Thu, 12 Mar 2020 20:07:43 +0000 (21:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Mar 2020 22:32:32 +0000 (15:32 -0700)
commit4947275de9cf56689019637cc2183130db0a4c5c
treeb814fec15a639e1e398736998b1a843c1bdf979c
parentc4c594a6a428f3289be7324e882ff1537b544f8b
ethtool: update mapping of features to legacy ioctl requests

Legacy ioctl request like ETHTOOL_GTXCSUM are still used by ethtool utility
to get values of legacy flags (which rather work as feature groups). These
are calculated from values of actual features and request to set them is
implemented as an attempt to set all features mapping to them but there are
two inconsistencies:

- tx-checksum-fcoe-crc is shown under tx-checksumming but NETIF_F_FCOE_CRC
  is not included in ETHTOOL_GTXCSUM/ETHTOOL_STXCSUM
- tx-scatter-gather-fraglist is shown under scatter-gather but
  NETIF_F_FRAGLIST is not included in ETHTOOL_GSG/ETHTOOL_SSG

As the mapping in ethtool output is more correct from logical point of
view, fix ethtool_get_feature_mask() to match it.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/ioctl.c