summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorTariq Toukan <tariqt@nvidia.com>2023-08-06 14:01:10 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2023-12-13 18:03:31 -0800
commitb25bd37c859f32e50a436ab9d2078b76e433008e (patch)
treef943fffd9da1c47b3c6f0be3d5e4bebf08e06c82 /include/linux/mlx5
parent249e521741de23c0103d5ffd19b1fb1181575041 (diff)
downloadlinux-stable-b25bd37c859f32e50a436ab9d2078b76e433008e.tar.gz
linux-stable-b25bd37c859f32e50a436ab9d2078b76e433008e.tar.bz2
linux-stable-b25bd37c859f32e50a436ab9d2078b76e433008e.zip
net/mlx5: Move TISes from priv to mdev HW resources
The transport interface send (TIS) object is responsible for performing all transport related operations of the transmit side. Messages from Send Queues get segmented and transmitted by the TIS including all transport required implications, e.g. in the case of large send offload, the TIS is responsible for the segmentation. These are stateless objects and can be used by multiple netdevs (e.g. representors) who share the same core device. Providing the TISes as a service from the core layer to the netdev layer reduces the number of replecated TIS objects (in case of multiple netdevs), and will ease the transition to netdev with multiple mdevs. Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Gal Pressman <gal@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/driver.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 2f67cec1a898..7ee5b79ff3d6 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -679,6 +679,8 @@ struct mlx5e_resources {
struct mlx5_td td;
u32 mkey;
struct mlx5_sq_bfreg bfreg;
+#define MLX5_MAX_NUM_TC 8
+ u32 tisn[MLX5_MAX_PORTS][MLX5_MAX_NUM_TC];
} hw_objs;
struct net_device *uplink_netdev;
struct mutex uplink_netdev_lock;