Petri Savolainen(psavol) replied on github web page: include/odp/api/spec/packet.h line 10 @@ -83,6 +83,22 @@ typedef struct odp_packet_data_range { } odp_packet_data_range_t; +/** + * Checksum check status in packet + */ +typedef enum odp_packet_chksum_status_t { + /** Checksum was not checked. Checksum check was not attempted or + * the attempt failed. */ + ODP_PACKET_CHKSUM_UNKNOWN = 0,
Comment: These three values are needed. For example, we cannot dictate that all HW must be able to calculate checksums when there are extension headers. Still some HW can do that. So, even if application enabled checksumming, it depends on the packet and on the implementation if check was done or not. We just dictate that basic packets (no options / extensions) must always be checked when checksumming is enabled. https://github.com/Linaro/odp/pull/167#discussion_r137722437 updated_at 2017-09-08 07:09:28