]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Fix IPv6 later frags parsing
authorYi-Hung Wei <yihung.wei@gmail.com>
Thu, 3 Jan 2019 17:51:57 +0000 (09:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Jan 2019 21:00:02 +0000 (13:00 -0800)
commitdd5c426e43799ce4fbd343d7903afd39ed79531d
treefafd45ea370c481ea2d5e00a8cb2224b8bd89d96
parentd4bea0b68f6a523913eda550e5355c198eaed0ac
openvswitch: Fix IPv6 later frags parsing

The previous commit 81140a7d20e3
("openvswitch: Derive IP protocol number for IPv6 later frags")
introduces IP protocol number parsing for IPv6 later frags that can mess
up the network header length calculation logic, i.e. nh_len < 0.
However, the network header length calculation is mainly for deriving
the transport layer header in the key extraction process which the later
fragment does not apply.

Therefore, this commit skips the network header length calculation to
fix the issue.

Reported-by: Chris Mi <chrism@mellanox.com>
Reported-by: Greg Rose <gvrose8192@gmail.com>
Fixes: 81140a7d20e3 ("openvswitch: Derive IP protocol number for IPv6 later frags")
Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/flow.c