Patch "net/mlx5e: Fix timestamping capabilities reporting" has been added to the 4.11-stable tree
This is a note to let you know that I've just added the patch titled
net/mlx5e: Fix timestamping capabilities reporting
to the 4.11-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
net-mlx5e-fix-timestamping-capabilities-reporting.patch
and it can be found in the queue-4.11 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Thu Jun 29 18:58:00 CEST 2017
From: Maor Dickman <[email protected]>
Date: Thu, 18 May 2017 15:15:08 +0300
Subject: net/mlx5e: Fix timestamping capabilities reporting
From: Maor Dickman <[email protected]>
[ Upstream commit f0b381178b01b831f9907d72f467d6443afdea67 ]
Misuse of (BIT) macro caused to report wrong flags for "Hardware Transmit Timestamp Modes" and "Hardware Receive Filter Modes"
--- drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c +4 -4
@@ -1205,11 +1205,11 @@ static int mlx5e_get_ts_info(struct net_SOF_TIMESTAMPING_RX_HARDWARE |SOF_TIMESTAMPING_RAW_HARDWARE ; - info->tx_types = (BIT (1 ) <<HWTSTAMP_TX_OFF ) | - (BIT (1 ) <<HWTSTAMP_TX_ON ); + info->tx_types =BIT (HWTSTAMP_TX_OFF ) | +BIT (HWTSTAMP_TX_ON ); - info->rx_filters = (BIT (1 ) <<HWTSTAMP_FILTER_NONE ) | - (BIT (1 ) <<HWTSTAMP_FILTER_ALL ); + info->rx_filters =BIT (HWTSTAMP_FILTER_NONE ) | +BIT (HWTSTAMP_FILTER_ALL );return 0 ; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.11/net-mlx5e-fix-timestamping-capabilities-reporting.patch