]> git.baikalelectronics.ru Git - kernel.git/commit
ice: drop dead code in ice_receive_skb()
authorEric Dumazet <edumazet@google.com>
Fri, 8 Jan 2021 11:39:02 +0000 (03:39 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 Jan 2021 22:24:25 +0000 (14:24 -0800)
commitfa13f2e262abaaa5b0b9cd16faedefbf0fecefa4
treee196e67796434628df330a79df85e39e1d76aaec
parentb8044b0bff7849939a0c059de8e9ceb6495edcb1
ice: drop dead code in ice_receive_skb()

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@google.com>
Acked-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ice/ice_txrx_lib.c