mlx4_core: Add helper functions to support MR re-registration
Add few helper functions to support a mechanism of getting an MPT, modifying it and updating the HCA with the modified object. The code takes 2 paths, one for directly changing the MPT (and sometimes its related MTTs) and another one which queries the MPT and updates the HCA via fw command SW2HW_MPT. The first path is used in native mode; the second path is slower and is used only in SRIOV. Signed-off-by:Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by:
Matan Barak <matanb@mellanox.com> Signed-off-by:
Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by:
Roland Dreier <roland@purestorage.com>
Showing
- drivers/net/ethernet/mellanox/mlx4/mlx4.h 2 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx4/mlx4.h
- drivers/net/ethernet/mellanox/mlx4/mr.c 160 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx4/mr.c
- drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 24 additions, 2 deletionsdrivers/net/ethernet/mellanox/mlx4/resource_tracker.c
- include/linux/mlx4/device.h 16 additions, 0 deletionsinclude/linux/mlx4/device.h
Please register or sign in to comment