]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: use flow protocol when recalculating ipv6 checksums
authorSimon Horman <simon.horman@netronome.com>
Thu, 21 Apr 2016 01:49:15 +0000 (11:49 +1000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Apr 2016 19:28:47 +0000 (15:28 -0400)
commit1383d81c06c1f7309f9bf870ab509c3ac0e7d218
treec31bbf699b5793ec7731cea3735d71a8286feb26
parent506ec8d0667d740610645ef814c476f63ae475f7
openvswitch: use flow protocol when recalculating ipv6 checksums

When using masked actions the ipv6_proto field of an action
to set IPv6 fields may be zero rather than the prevailing protocol
which will result in skipping checksum recalculation.

This patch resolves the problem by relying on the protocol
in the flow key rather than that in the set field action.

Fixes: 14d1000a8f49 ("net: openvswitch: Support masked set actions.")
Cc: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/actions.c