[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210108113354.00000dd9@intel.com>
Date: Fri, 8 Jan 2021 11:33:54 -0800
From: Jesse Brandeburg <jesse.brandeburg@...el.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: "David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
netdev <netdev@...r.kernel.org>,
Eric Dumazet <edumazet@...gle.com>
Subject: Re: [PATCH net-next 1/2] ice: drop dead code in ice_receive_skb()
Eric Dumazet wrote:
> From: Eric Dumazet <edumazet@...gle.com>
>
> napi_gro_receive() can never return GRO_DROP
>
> GRO_DROP can only be returned from napi_gro_frags()
> which is the other NAPI GRO entry point.
>
> Followup patch will remove GRO_DROP, because drivers
> are not supposed to call napi_gro_frags() if prior
> napi_get_frags() has failed.
>
> Note that I have left the gro_dropped variable. I leave to ice
> maintainers the decision to further remove it from ethtool -S results.
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
> Cc: Jesse Brandeburg <jesse.brandeburg@...el.com>
Acked-by: Jesse Brandeburg <jesse.brandeburg@...el.com>
Jakub or David, you're welcome to apply directly as part of this series.
The original code went into the kernel right as the code to remove
GRO_DROP returns went in just before, but the reviews crossed each
other and no-one (especially me :-( ) caught it.
for reference:
commit 0e00c05fa72554c86d7c7e0f538ec83bfe277c91
Merge: b18e9834f7b2 045790b7bc66
Author: David S. Miller <davem@...emloft.net>
Date: Thu Jun 25 16:16:21 2020 -0700
Subject: Merge branch 'napi_gro_receive-caller-return-value-cleanups'
Powered by blists - more mailing lists