From: Saeed Mahameed <saeed@kernel•org>
To: "David S. Miller" <davem@davemloft•net>,
Jakub Kicinski <kuba@kernel•org>
Cc: netdev@vger•kernel.org, Ariel Levkovich <lariel@nvidia•com>,
Saeed Mahameed <saeedm@nvidia•com>
Subject: [net-next 3/6] net/mlx5: Increase hairpin buffer size
Date: Sat, 26 Jun 2021 00:44:14 -0700 [thread overview]
Message-ID: <20210626074417.714833-4-saeed@kernel.org> (raw)
In-Reply-To: <20210626074417.714833-1-saeed@kernel.org>
From: Ariel Levkovich <lariel@nvidia•com>
The max packet size a hairpin queue is able to handle
is determined by the total hairpin buffer size divided
by 4.
Currently the buffer size is set to 32KB which makes
the max packet size to be 8KB and doesn't support
jumbo frames of size 9KB.
This change increases the buffer size to 64KB to increase
the max frame size and support 9KB frames.
Signed-off-by: Ariel Levkovich <lariel@nvidia•com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia•com>
---
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
index 8d84d0712c20..629a61e8022f 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
@@ -846,7 +846,7 @@ static int mlx5e_hairpin_flow_add(struct mlx5e_priv *priv,
hash_hairpin_info(peer_id, match_prio));
mutex_unlock(&priv->fs.tc.hairpin_tbl_lock);
- params.log_data_size = 15;
+ params.log_data_size = 16;
params.log_data_size = min_t(u8, params.log_data_size,
MLX5_CAP_GEN(priv->mdev, log_max_hairpin_wq_data_sz));
params.log_data_size = max_t(u8, params.log_data_size,
--
2.31.1
next prev parent reply other threads:[~2021-06-26 7:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-26 7:44 [pull request][net-next 0/6] mlx5 updates 2021-06-26 Saeed Mahameed
2021-06-26 7:44 ` [net-next 1/6] net/mlx5: Compare sampler flow destination ID in fs_core Saeed Mahameed
2021-06-28 21:20 ` patchwork-bot+netdevbpf
2021-06-26 7:44 ` [net-next 2/6] net/mlx5: DR, Add support for flow sampler offload Saeed Mahameed
2021-06-26 7:44 ` Saeed Mahameed [this message]
2021-06-26 7:44 ` [net-next 4/6] net/mlx5: SF, Improve performance in SF allocation Saeed Mahameed
2021-06-26 7:44 ` [net-next 5/6] net/mlx5e: kTLS, Add stats for number of deleted kTLS TX offloaded connections Saeed Mahameed
2021-06-26 7:44 ` [net-next 6/6] net/mlx5e: Add IPsec support to uplink representor Saeed Mahameed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210626074417.714833-4-saeed@kernel.org \
--to=saeed@kernel$(echo .)org \
--cc=davem@davemloft$(echo .)net \
--cc=kuba@kernel$(echo .)org \
--cc=lariel@nvidia$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=saeedm@nvidia$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox