]> 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)
commitb43395da1657e83ed6b4aab2c4a9aa081e81d25f
tree9fbb7e7e3ec9b603d4619063fe31012e549ea9cf
parent61c1f9ab9ef84887321d9aab50ff902a4e356a83
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