]> git.baikalelectronics.ru Git - kernel.git/commit
net-gro: remove GRO_DROP
authorEric Dumazet <edumazet@google.com>
Fri, 8 Jan 2021 11:39:03 +0000 (03:39 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 Jan 2021 22:24:26 +0000 (14:24 -0800)
commitcff07c61b35e0a08ce93f5f9138edbb70aa21a0b
tree9fbb7e7e3ec9b603d4619063fe31012e549ea9cf
parentfa13f2e262abaaa5b0b9cd16faedefbf0fecefa4
net-gro: remove GRO_DROP

GRO_DROP can only be returned from napi_gro_frags()
if the skb has not been allocated by a prior napi_get_frags()

Since drivers must use napi_get_frags() and test its result
before populating the skb with metadata, we can safely remove
GRO_DROP since it offers no practical use.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>
Acked-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netdevice.h
net/core/dev.c