]> git.baikalelectronics.ru Git - kernel.git/commit
wil6210: account for napi_gro_receive never returning GRO_DROP
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 24 Jun 2020 22:06:06 +0000 (16:06 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jun 2020 23:16:21 +0000 (16:16 -0700)
commita2a02b9ad9f99d6f019900960e76b41a404775c3
tree1b90af4ad0784abbcbb8987925a07f4b421b3eb6
parentfc2a4f817dfb1df42b6b52747a56557589783d57
wil6210: account for napi_gro_receive never returning GRO_DROP

The napi_gro_receive function no longer returns GRO_DROP ever, making
handling GRO_DROP dead code. This commit removes that dead code.
Further, it's not even clear that device drivers have any business in
taking action after passing off received packets; that's arguably out of
their hands. In this case, too, the non-gro path didn't bother checking
the return value. Plus, this had some clunky debugging functions that
duplicated code from elsewhere and was generally pretty messy. So, this
commit cleans that all up too.

Fixes: 3240c95a722e ("net: core: use listified Rx for GRO_NORMAL in napi_gro_receive()")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/ath/wil6210/txrx.c