[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190615084208.1a9fc711@cakuba.netronome.com>
Date: Sat, 15 Jun 2019 08:42:08 -0700
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: Maxim Mikityanskiy <maximmi@...lanox.com>
Cc: Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Björn Töpel <bjorn.topel@...el.com>,
Magnus Karlsson <magnus.karlsson@...el.com>,
"bpf@...r.kernel.org" <bpf@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>,
Saeed Mahameed <saeedm@...lanox.com>,
Jonathan Lemon <bsd@...com>,
Tariq Toukan <tariqt@...lanox.com>,
Martin KaFai Lau <kafai@...com>,
Song Liu <songliubraving@...com>, Yonghong Song <yhs@...com>,
Maciej Fijalkowski <maciejromanfijalkowski@...il.com>
Subject: Re: [PATCH bpf-next v4 17/17] net/mlx5e: Add XSK zero-copy support
On Wed, 12 Jun 2019 15:57:09 +0000, Maxim Mikityanskiy wrote:
> @@ -390,6 +391,12 @@ void mlx5e_ethtool_get_channels(struct mlx5e_priv *priv,
> {
> ch->max_combined = mlx5e_get_netdev_max_channels(priv->netdev);
> ch->combined_count = priv->channels.params.num_channels;
> +
> + /* XSK RQs */
> + ch->max_rx = ch->max_combined;
> + /* rx_count shows the number of XSK RQs up to the highest active one. */
> + ch->rx_count = mlx5e_xsk_first_unused_channel(&priv->channels.params,
> + &priv->xsk);
> }
Ah, Maciej pointed out to me this is why you want the patch 7 to do
what it does. This count is for stack's queues.
Nacked-by: Jakub Kicinski <jakub.kicinski@...ronome.com>
Powered by blists - more mailing lists