Subject: Re: [PATCH net-next 1/2] ice: drop dead code in ice_receive_skb()

From: Jesse Brandeburg <[email-masked]>
Date: Fri, 8 Jan 2021 11:33:54 -0800

Eric Dumazet wrote:

> From: Eric Dumazet <[email-masked]>
> 
> 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 <[email-masked]>
> Cc: Jesse Brandeburg <[email-masked]>

Acked-by: Jesse Brandeburg <[email-masked]>

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 <[email-masked]>
Date:   Thu Jun 25 16:16:21 2020 -0700
Subject: Merge branch 'napi_gro_receive-caller-return-value-cleanups'