net/mlx4_en: Add HW timestamping (TS) support
The patch allows to enable/disable HW timestamping for incoming and/or outgoing packets. It adds and initializes all structs and callbacks needed by kernel TS API. To enable/disable HW timestamping appropriate ioctl should be used. Currently HWTSTAMP_FILTER_ALL/NONE and HWTSAMP_TX_ON/OFF only are supported. When enabling TS on receive flow - VLAN stripping will be disabled. Also were made all relevant changes in RX/TX flows to consider TS request and plant HW timestamps into relevant structures. mlx4_ib was fixed to compile with new mlx4_cq_alloc() signature. Signed-off-by:Eugenia Emantayev <eugenia@mellanox.com> Signed-off-by:
Amir Vadai <amirv@mellanox.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/infiniband/hw/mlx4/cq.c 1 addition, 1 deletiondrivers/infiniband/hw/mlx4/cq.c
- drivers/net/ethernet/mellanox/mlx4/Makefile 1 addition, 1 deletiondrivers/net/ethernet/mellanox/mlx4/Makefile
- drivers/net/ethernet/mellanox/mlx4/cq.c 7 additions, 3 deletionsdrivers/net/ethernet/mellanox/mlx4/cq.c
- drivers/net/ethernet/mellanox/mlx4/en_clock.c 132 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx4/en_clock.c
- drivers/net/ethernet/mellanox/mlx4/en_cq.c 8 additions, 2 deletionsdrivers/net/ethernet/mellanox/mlx4/en_cq.c
- drivers/net/ethernet/mellanox/mlx4/en_ethtool.c 30 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx4/en_ethtool.c
- drivers/net/ethernet/mellanox/mlx4/en_main.c 5 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx4/en_main.c
- drivers/net/ethernet/mellanox/mlx4/en_netdev.c 75 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx4/en_netdev.c
- drivers/net/ethernet/mellanox/mlx4/en_resources.c 3 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx4/en_resources.c
- drivers/net/ethernet/mellanox/mlx4/en_rx.c 24 additions, 5 deletionsdrivers/net/ethernet/mellanox/mlx4/en_rx.c
- drivers/net/ethernet/mellanox/mlx4/en_tx.c 26 additions, 3 deletionsdrivers/net/ethernet/mellanox/mlx4/en_tx.c
- drivers/net/ethernet/mellanox/mlx4/main.c 22 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx4/main.c
- drivers/net/ethernet/mellanox/mlx4/mlx4_en.h 20 additions, 1 deletiondrivers/net/ethernet/mellanox/mlx4/mlx4_en.h
- include/linux/mlx4/cq.h 16 additions, 0 deletionsinclude/linux/mlx4/cq.h
- include/linux/mlx4/device.h 5 additions, 1 deletioninclude/linux/mlx4/device.h
Loading
Please register or sign in to comment