virtio: fix gso and csum offload errors handling 45/26145/4
authorMohsin Kazmi <sykazmi@cisco.com>
Thu, 9 Apr 2020 20:11:29 +0000 (22:11 +0200)
committerDamjan Marion <dmarion@me.com>
Fri, 10 Apr 2020 12:22:29 +0000 (12:22 +0000)
commitf50ef40acbf8279837be7e58ec5a977401e5575c
tree136b826e48c83e01129a8cfd4ff13fea7d0bb9a5
parent91fd910d7d7611a28d1f85482ed5d5c3ee6a8853
virtio: fix gso and csum offload errors handling

GSO and CSUM offloaded packets are transmitted
even itf doesn't support GSO/CSUM. This patch
fixes it by logging the respective errors and
dropping the packets.

Type: fix

Change-Id: I5ab19d15ce6aa9fda515313c313a5a56c0b96837
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
src/vnet/devices/virtio/device.c