]> git.proxmox.com Git - mirror_ovs.git/commit - lib/dp-packet.h
dp-packet: Reset DPDK hwol flags on init.
authorDarrell Ball <dlu998@gmail.com>
Thu, 10 Aug 2017 20:22:16 +0000 (13:22 -0700)
committerBen Pfaff <blp@ovn.org>
Thu, 10 Aug 2017 20:34:00 +0000 (13:34 -0700)
commitf8121b3912f882c5f970cbcbbfde746cccce9aac
treed9e2efd657ecc021b7a6b2a183d01ed46bf04bf4
parentea5dbd792d7b3cd12339517f7aa042161970a477
dp-packet: Reset DPDK hwol flags on init.

Reset the DPDK hwol flags in dp_packet_init_.  The new hwol bad checksum
flag is uninitialized for non-dpdk ports and this is noticed as test
failures using netdev-dummy ports, when built with the --with-dpdk
flag set. Hence, in this case, packets may be falsely marked as having a
bad checksum. The existing APIs are simplified at the same time by
making them specific to either DPDK or otherwise; they also now
manage a single field.

Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2017-August/045081.html
Fixes: 7451af618e0d ("dp-packet : Update DPDK rx checksum validation functions.")
CC: Sugesh Chandran <sugesh.chandran@intel.com>
Signed-off-by: Darrell Ball <dlu998@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/dp-packet.c
lib/dp-packet.h
lib/netdev-dpdk.c