Add checksum offload support to the core

Signed-off-by: Eli Cohen <[EMAIL PROTECTED]>

---

A device that publishes IB_DEVICE_IP_CSUM actually supports
calculating checksum on transmit and provides indication whether
the checksum is OK on receive.

Index: ofa_1_3_dev_kernel/include/rdma/ib_verbs.h
===================================================================
--- ofa_1_3_dev_kernel.orig/include/rdma/ib_verbs.h     2007-09-24 
13:24:22.000000000 +0200
+++ ofa_1_3_dev_kernel/include/rdma/ib_verbs.h  2007-09-24 13:24:40.000000000 
+0200
@@ -95,7 +95,8 @@ enum ib_device_cap_flags {
        IB_DEVICE_N_NOTIFY_CQ           = (1<<14),
        IB_DEVICE_ZERO_STAG             = (1<<15),
        IB_DEVICE_SEND_W_INV            = (1<<16),
-       IB_DEVICE_MEM_WINDOW            = (1<<17)
+       IB_DEVICE_MEM_WINDOW            = (1<<17),
+       IB_DEVICE_IP_CSUM               = (1<<18),
 };
 
 enum ib_atomic_cap {
@@ -431,6 +432,7 @@ struct ib_wc {
        u8                      sl;
        u8                      dlid_path_bits;
        u8                      port_num;       /* valid only for DR SMPs on 
switches */
+       int                     csum_ok;
 };
 
 enum ib_cq_notify_flags {
@@ -615,7 +617,9 @@ enum ib_send_flags {
        IB_SEND_FENCE           = 1,
        IB_SEND_SIGNALED        = (1<<1),
        IB_SEND_SOLICITED       = (1<<2),
-       IB_SEND_INLINE          = (1<<3)
+       IB_SEND_INLINE          = (1<<3),
+       IB_SEND_IP_CSUM         = (1<<4),
+       IB_SEND_UDP_TCP_CSUM    = (1<<5)
 };
 
 struct ib_sge {

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to