lkml.org 
[lkml]   [2020]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] net: exit immediately when encounter ipv6 fragment in skb_checksum_setup_ipv6()
From
From: Miaohe Lin <linmiaohe@huawei.com>
Date: Thu, 27 Aug 2020 07:21:59 -0400

> skb_checksum_setup_ipv6() always return -EPROTO if ipv6 packet is fragment.
> So we should not continue to parse other header type in this case. Also
> remove unnecessary local variable 'fragment'.
>
> Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>

Again, this optimization is arguable at best. The code functions fine and
correctly as-is.

I'm not applying this, sorry.

\
 
 \ /
  Last update: 2020-08-27 18:13    [W:0.026 / U:0.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site