Re: [PATCH] make net_gso_ok return false when gso_type is zero(invalid)

From: David Miller
Date: Sun Apr 08 2018 - 12:51:20 EST


From: Wenhua Shi <march511@xxxxxxxxx>
Date: Fri, 6 Apr 2018 03:43:39 +0200

> Signed-off-by: Wenhua Shi <march511@xxxxxxxxx>

This precondition should be made impossible instead of having to do
an extra check everywhere that this helper is invoked, many of which
are in fast paths.