Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app/test: fix IPv6 header initialization
[ upstream commit a906371 ] Fix two issues found when writing PMD unit tests for HW ptype and L4 checksum offload: - The version field in the IPv6 header was being set to zero, which prevented hardware from recognizing it as IPv6. The IP version field is now set to six. - The payload_len field was being initialized using host byte order, which (among other things) resulted in incorrect L4 checksum computation. The payload_len field is now set using network (big-endian) byte order. Fixes: 92073ef ("bond: unit tests") Signed-off-by: Lance Richardson <lance.richardson@broadcom.com> Reviewed-by: David Marchand <david.marchand@redhat.com>
- Loading branch information