openvswitch: more accurate checksumming in queue_userspace_packet()
authorDavide Caratti <dcaratti@redhat.com>
Thu, 18 May 2017 13:44:42 +0000 (15:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 May 2017 23:21:29 +0000 (19:21 -0400)
commit7529390d08f07fbf9b0174c5a87600b5caa1a8e8
tree8cbd659020f65449b91f5f28db31f07e289bf506
parent43c26a1a45938624fb9301e8bf7dfabbed293619
openvswitch: more accurate checksumming in queue_userspace_packet()

if skb carries an SCTP packet and ip_summed is CHECKSUM_PARTIAL, it needs
CRC32c in place of Internet Checksum: use skb_csum_hwoffload_help to avoid
corrupting such packets while queueing them towards userspace.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/datapath.c