OSDN Git Service

net: Make gro complete function to return void
authorParav Pandit <parav@nvidia.com>
Mon, 29 May 2023 13:44:30 +0000 (16:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 May 2023 08:50:17 +0000 (09:50 +0100)
commitb1f2abcf817d82b54764d1474424649feda6fe1b
tree54c3bbd23297abad869131c7ee35f9284e24d332
parentf209c8ec43a80594e74bbded78cfc9264e6b05af
net: Make gro complete function to return void

tcp_gro_complete() function only updates the skb fields related to GRO
and it always returns zero. All the 3 drivers which are using it
do not check for the return value either.

Change it to return void instead which simplifies its callers as
error handing becomes unnecessary.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_offload.c
net/ipv6/tcpv6_offload.c