lkml.org 
[lkml]   [2017]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.11 28/84] net/mlx5e: Fix timestamping capabilities reporting
    Date
    4.11-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Maor Dickman <maord@mellanox.com>


    [ Upstream commit f0b381178b01b831f9907d72f467d6443afdea67 ]

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 8 ++++----
    1 file changed, 4 insertions(+), 4 deletions(-)

    --- a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
    +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
    @@ -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;
    }

    \
     
     \ /
      Last update: 2017-07-03 16:04    [W:4.025 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site