[ipoib 6] Bug fixes to the driver.
[mirror/winof/.git] / ulp / ipoib_NDIS6_CM / kernel / ipoib_adapter.h
index 59c8857..2976993 100644 (file)
@@ -46,6 +46,7 @@
 #include <complib/cl_vector.h>\r
 #include <ip_packet.h>\r
 #include "ip_stats.h"\r
+#include "ipoib_stat.h"\r
 \r
 \r
 /*\r
@@ -74,6 +75,14 @@ typedef enum _ipoib_state
     IPOIB_RUNNING\r
 } ipoib_state_t;\r
 \r
+typedef struct _ipoib_offloads_cap_ {\r
+       boolean_t       lso;\r
+       boolean_t       send_chksum_offload;\r
+       boolean_t       recv_chksum_offload;\r
+}\r
+ipoib_offloads_cap_t;\r
+\r
+\r
 typedef struct _ipoib_params\r
 {\r
        int32_t         rq_depth;\r
@@ -110,7 +119,7 @@ typedef struct _ipoib_params
 *      send_chksum_offload\r
 *      recv_chksum_offload\r
 *              Flags to indicate whether to offload send/recv checksums.\r
-*              0 - No hardware cheksum\r
+*              0 - No hardware checksum\r
 *              1 - Try to offload if the device support it\r
 *              2 - Always report success (checksum bypass)\r
 *\r
@@ -195,6 +204,7 @@ typedef struct _ipoib_adapter
        uint32_t                                port_rate;\r
 \r
        ipoib_params_t                  params;\r
+       ipoib_offloads_cap_t    offload_cap;\r
        cl_spinlock_t                   recv_stat_lock;\r
        ip_stats_t                              recv_stats;\r
        cl_spinlock_t                   send_stat_lock;\r
@@ -222,6 +232,7 @@ typedef struct _ipoib_adapter
        ib_al_ifc_t                             *p_ifc;\r
 \r
        ULONG                                   sg_list_size;\r
+       PIPOIB_ST_DEVICE                p_stat;\r
 \r
 }      ipoib_adapter_t;\r
 /*\r