net/mlx4_en: Add support for drop action through ethtool
The drop action is implemented by allocating a QP and keeping it in a reset state such that the HW drops any packets which are steered to that QP. When a drop action is requested, we attach the relevant flow to that QP. Sign-off-by:Hadar Hen Zion <hadarh@mellanox.co.il> Signed-off-by:
Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/mellanox/mlx4/en_ethtool.c 1 addition, 1 deletiondrivers/net/ethernet/mellanox/mlx4/en_ethtool.c
- drivers/net/ethernet/mellanox/mlx4/en_netdev.c 8 additions, 1 deletiondrivers/net/ethernet/mellanox/mlx4/en_netdev.c
- drivers/net/ethernet/mellanox/mlx4/en_rx.c 30 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx4/en_rx.c
- drivers/net/ethernet/mellanox/mlx4/mlx4_en.h 3 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx4/mlx4_en.h
Loading
Please register or sign in to comment