]> git.baikalelectronics.ru Git - kernel.git/commit
gro: avoid checking for a failed search
authorRichard Gobert <richardbgobert@gmail.com>
Tue, 8 Nov 2022 12:33:28 +0000 (13:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:58:26 +0000 (11:58 +0100)
commit2b9fa37bb3dea97c133afcabff92eb594e300ba7
tree9c93035cc8a685f06c742fe7843e14c2604b0f44
parent95d8db5b653aec13c8c7586ad0839650ef8edb60
gro: avoid checking for a failed search

[ Upstream commit 402ffd2a39d68baeb5f0d86dadc60a6aca149f51 ]

After searching for a protocol handler in dev_gro_receive, checking for
failure is redundant. Skip the failure code after finding the
corresponding handler.

Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Richard Gobert <richardbgobert@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20221108123320.GA59373@debian
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Stable-dep-of: d24ef8adf4bf ("gro: take care of DODGY packets")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/gro.c