summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en.h
diff options
context:
space:
mode:
authorAchiad Shochat2015-07-23 22:35:58 +0200
committerDavid S. Miller2015-07-27 09:29:17 +0200
commit58d522912ac7d25b63f468fa4a4e8bb059c5144e (patch)
treed106329cbe7ddb86d852a0c71ab8f0899a4fe665 /drivers/net/ethernet/mellanox/mlx5/core/en.h
parentnet/mlx5e: Allocate DMA coherent memory on reader NUMA node (diff)
downloadkernel-qcow2-linux-58d522912ac7d25b63f468fa4a4e8bb059c5144e.tar.gz
kernel-qcow2-linux-58d522912ac7d25b63f468fa4a4e8bb059c5144e.tar.xz
kernel-qcow2-linux-58d522912ac7d25b63f468fa4a4e8bb059c5144e.zip
net/mlx5e: Support TX packet copy into WQE
AKA inline WQE. A TX latency optimization to save data gather DMA reads. Controlled by ETHTOOL_TX_COPYBREAK. Signed-off-by: Achiad Shochat <achiad@mellanox.com> Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h
index 61d8433392aa..d9dc506188c8 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h
@@ -196,6 +196,7 @@ struct mlx5e_params {
bool lro_en;
u32 lro_wqe_sz;
u8 rss_hfunc;
+ u16 tx_max_inline;
};
enum {
@@ -520,3 +521,4 @@ static inline void mlx5e_cq_arm(struct mlx5e_cq *cq)
}
extern const struct ethtool_ops mlx5e_ethtool_ops;
+u16 mlx5e_get_max_inline_cap(struct mlx5_core_dev *mdev);