diff options
author | Maor Dickman <maord@mellanox.com> | 2017-05-18 08:15:08 -0400 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2017-06-15 16:27:46 -0400 |
commit | f0b381178b01b831f9907d72f467d6443afdea67 (patch) | |
tree | 30374b8ecc8e448329f49cf540db13a0f0b8f1a0 | |
parent | 6c780a0267b8a1075f40b39851132eeaefefcff5 (diff) |
net/mlx5e: Fix timestamping capabilities reporting
Misuse of (BIT) macro caused to report wrong flags for
"Hardware Transmit Timestamp Modes" and "Hardware Receive
Filter Modes"
Fixes: ef9814deafd0 ('net/mlx5e: Add HW timestamping (TS) support')
Signed-off-by: Maor Dickman <maord@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c index 8209affa75c3..16486dff1493 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | |||
@@ -1242,11 +1242,11 @@ static int mlx5e_get_ts_info(struct net_device *dev, | |||
1242 | SOF_TIMESTAMPING_RX_HARDWARE | | 1242 | SOF_TIMESTAMPING_RX_HARDWARE | |
1243 | SOF_TIMESTAMPING_RAW_HARDWARE; | 1243 | SOF_TIMESTAMPING_RAW_HARDWARE; |
1244 | 1244 | ||
1245 | info->tx_types = (BIT(1) << HWTSTAMP_TX_OFF) | | 1245 | info->tx_types = BIT(HWTSTAMP_TX_OFF) | |
1246 | (BIT(1) << HWTSTAMP_TX_ON); | 1246 | BIT(HWTSTAMP_TX_ON); |
1247 | 1247 | ||
1248 | info->rx_filters = (BIT(1) << HWTSTAMP_FILTER_NONE) | | 1248 | info->rx_filters = BIT(HWTSTAMP_FILTER_NONE) | |
1249 | (BIT(1) << HWTSTAMP_FILTER_ALL); | 1249 | BIT(HWTSTAMP_FILTER_ALL); |
1250 | 1250 | ||
1251 | return 0; | 1251 | return 0; |
1252 | } | 1252 | } |