diff options
| author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-02-22 13:25:59 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-02-24 20:33:59 -0500 |
| commit | e728fdf0628971d43cb4e48860defc6e8a553761 (patch) | |
| tree | 02d60c34b9d0d259f959bd79da9b820129f5e266 /include/linux/ethtool.h | |
| parent | fad4271bec382a7a985ba9c1b31c85611ec90708 (diff) | |
net: phy: improve definition of __ETHTOOL_LINK_MODE_MASK_NBITS
The way to define __ETHTOOL_LINK_MODE_MASK_NBITS seems to be overly
complicated, go with a standard approach instead.
Whilst we're at it, move the comment to the right place.
v2:
- rebased
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/ethtool.h')
| -rw-r--r-- | include/linux/ethtool.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index 19a8de5326fb..e6ebc9761822 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h | |||
| @@ -98,10 +98,6 @@ static inline u32 ethtool_rxfh_indir_default(u32 index, u32 n_rx_rings) | |||
| 98 | return index % n_rx_rings; | 98 | return index % n_rx_rings; |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | /* number of link mode bits/ulongs handled internally by kernel */ | ||
| 102 | #define __ETHTOOL_LINK_MODE_MASK_NBITS \ | ||
| 103 | (__ETHTOOL_LINK_MODE_LAST + 1) | ||
| 104 | |||
| 105 | /* declare a link mode bitmap */ | 101 | /* declare a link mode bitmap */ |
| 106 | #define __ETHTOOL_DECLARE_LINK_MODE_MASK(name) \ | 102 | #define __ETHTOOL_DECLARE_LINK_MODE_MASK(name) \ |
| 107 | DECLARE_BITMAP(name, __ETHTOOL_LINK_MODE_MASK_NBITS) | 103 | DECLARE_BITMAP(name, __ETHTOOL_LINK_MODE_MASK_NBITS) |
