devices: skip checksum calculation if guest supports checksum offload 96/21096/2
authorSteven Luong <sluong@cisco.com>
Wed, 7 Aug 2019 04:51:34 +0000 (21:51 -0700)
committerDamjan Marion <dmarion@me.com>
Mon, 19 Aug 2019 09:38:41 +0000 (09:38 +0000)
commita75ad876401a700127ebf234fc422e76fcd57b4c
tree73d0a4d425dd7672cc2f58ad490c053b371da6e7
parent74eba446b1e71f7fe5bac29cf30d4363a9b8b0cd
devices: skip checksum calculation if guest supports checksum offload

Set VNET_HW_INTERFACE_FLAG_SUPPORTS_TX_L4_CKSUM_OFFLOAD for the interface
to skip checksum calculation if guest supports checksum offload.

Type: fix

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: Ie933c3462394f07580ef7f2bec1d2eb3b075bd0c
src/vnet/devices/virtio/vhost_user.c