https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188990

--- Comment #15 from Roger Pau Monné <roy...@freebsd.org> ---
(In reply to Bhavesh Davda from comment #14)
And the mbuf(9) man page says:

"If a particular network interface just indicates success or failure of TCP or
UDP checksum validation without returning the exact value of the checksum to
the host CPU, its driver can mark CSUM_DATA_VALID and CSUM_PSEUDO_HDR in
csum_flags, and set csum_data to 0xFFFF hexadecimal to indicate a valid
checksum."

I think that's what maps best to NETRXF_data_validated/CHECKSUM_UNNECESSARY (in
fact it's the only combination of outbound flags that make sense for the use
case here AFAICT), but I'm not a network expert.

I think setting CSUM_IP_CHECKED and CSUM_IP_VALID in the netfront driver for
incoming packets is wrong, because netfront is also setting the header to
0xffff, and that's only valid with (CSUM_DATA_VALID | CSUM_PSEUDO_HDR).

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-xen@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"

Reply via email to