[ofw] changes to ib_wc committed to svn
Fab Tillier
ftillier at windows.microsoft.com
Thu Jul 24 11:35:44 PDT 2008
> From: Sean Hefty [mailto:sean.hefty at intel.com]
> Sent: Thursday, July 24, 2008 11:29 AM
>
>> - checksum results are reported in ib_wc_t::recv.ud.csum_ok
>
> Let's use ib_recv_opt_t or a new ib_wc_status_t code, and not change
> the data structure.
Sounds fine to me, something like:
#define IB_RECV_OPT_TCP_CHECKSUM_FAILED 0x00000100
#define IB_RECV_OPT_UDP_CHECKSUM_FAILED 0x00000200
#define IB_RECV_OPT_IP_CHECKSUM_FAILED 0x00000400
#define IB_RECV_OPT_TCP_CHECKSUM_SUCCEEDED 0x00000800
#define IB_RECV_OPT_UDP_CHECKSUM_SUCCEEDED 0x00001000
#define IB_RECV_OPT_IP_CHECKSUM_SUCCEEDED 0x00002000
This aligns with the NDIS_TCP_IP_CHECKSUM_PACKET_INFO definition, so a simple shift/mask of the receive options would do.
-Fab
More information about the ofw
mailing list