From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Or Gerlitz <ogerlitz@mellanox.com>,
"David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org, Amir Vadai <amirv@mellanox.com>,
Tal Alon <talal@mellanox.com>, Ido Shamay <idos@mellanox.com>
Subject: Re: [PATCH net 2/2] net/mlx4_en: Disbale GRO for incoming loopback/selftest packets
Date: Sun, 01 Mar 2015 20:24:06 +0300 [thread overview]
Message-ID: <54F34B36.2010202@cogentembedded.com> (raw)
In-Reply-To: <1425221774-8874-3-git-send-email-ogerlitz@mellanox.com>
Hello.
On 3/1/2015 5:56 PM, Or Gerlitz wrote:
> From: Ido Shamay <idos@mellanox.com>
> Packets which are sent from the selftest (ethtool) flow, should not
> be passed to the GRO stack but rather dropped by the driver after validation.
> To achieve that, we disable GRO for the duration of the selftest.
> Fixes: dd65beac48a5 ("net/mlx4_en: Extend usage of napi_gro_frags")
> Reported-by: Carol Soto <clsoto@linux.vnet.ibm.com>
> Signed-off-by: Ido Shamay <idos@mellanox.com>
> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
> ---
> drivers/net/ethernet/mellanox/mlx4/en_selftest.c | 8 +++++++-
> 1 files changed, 7 insertions(+), 1 deletions(-)
> diff --git a/drivers/net/ethernet/mellanox/mlx4/en_selftest.c b/drivers/net/ethernet/mellanox/mlx4/en_selftest.c
> index 2d8ee66..ac8870c 100644
> --- a/drivers/net/ethernet/mellanox/mlx4/en_selftest.c
> +++ b/drivers/net/ethernet/mellanox/mlx4/en_selftest.c
> @@ -81,12 +81,14 @@ static int mlx4_en_test_loopback(struct mlx4_en_priv *priv)
> {
> u32 loopback_ok = 0;
> int i;
> -
> + bool gro_enabled;
>
> priv->loopback_ok = 0;
> priv->validate_loopback = 1;
> + gro_enabled = (priv->dev->features & NETIF_F_GRO);
Parens not necessary here.
[...]
WBR, Sergei
next prev parent reply other threads:[~2015-03-01 17:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-01 14:56 [PATCH net 0/2] Mellanox driver fixes Or Gerlitz
2015-03-01 14:56 ` [PATCH net 1/2] net/mlx4_core: Fix wrong mask and error flow for the update-qp command Or Gerlitz
2015-03-01 14:56 ` [PATCH net 2/2] net/mlx4_en: Disbale GRO for incoming loopback/selftest packets Or Gerlitz
2015-03-01 17:24 ` Sergei Shtylyov [this message]
2015-03-02 7:47 ` Ido Shamay
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=54F34B36.2010202@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=amirv@mellanox.com \
--cc=davem@davemloft.net \
--cc=idos@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=ogerlitz@mellanox.com \
--cc=talal@mellanox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.