diff options
author | Achiad Shochat | 2015-06-11 13:47:32 +0200 |
---|---|---|
committer | David S. Miller | 2015-06-12 00:55:26 +0200 |
commit | 56508b5013718e9df783ebb8495461357a97ceda (patch) | |
tree | d01a2f66fc90c2efcf8cb9b33809036ac8b09d0c /drivers/net/ethernet/mellanox/mlx5/core/transobj.h | |
parent | net/mlx5e: Support NETIF_F_SG (diff) | |
download | kernel-qcow2-linux-56508b5013718e9df783ebb8495461357a97ceda.tar.gz kernel-qcow2-linux-56508b5013718e9df783ebb8495461357a97ceda.tar.xz kernel-qcow2-linux-56508b5013718e9df783ebb8495461357a97ceda.zip |
net/mlx5_core: Add transport domain alloc/dealloc support
Each transport object, namely TIR and TIS, must have a transport domain
number (TDN) identifier.
The driver wrongly assumed that it is OK to use TDN=0 without explicit
TDN allocation from the device.
The TDN will also be used for isolating different processes once user
mode Ethernet will be supported.
Signed-off-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/transobj.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/transobj.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/transobj.h b/drivers/net/ethernet/mellanox/mlx5/core/transobj.h index 90322c11361f..f9ef244710d5 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/transobj.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/transobj.h @@ -33,6 +33,8 @@ #ifndef __TRANSOBJ_H__ #define __TRANSOBJ_H__ +int mlx5_alloc_transport_domain(struct mlx5_core_dev *dev, u32 *tdn); +void mlx5_dealloc_transport_domain(struct mlx5_core_dev *dev, u32 tdn); int mlx5_core_create_rq(struct mlx5_core_dev *dev, u32 *in, int inlen, u32 *rqn); int mlx5_core_modify_rq(struct mlx5_core_dev *dev, u32 rqn, u32 *in, int inlen); |