[IPoIB] Fixing a value of the maximum number of send packets that MiniportSendPackets...
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 27 Jan 2009 11:34:34 +0000 (11:34 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 27 Jan 2009 11:34:34 +0000 (11:34 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1892 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib/kernel/ipoib_driver.c
ulp/ipoib/kernel/ipoib_driver.h

index d88ee53..2a490aa 100644 (file)
@@ -681,8 +681,9 @@ ipoib_get_adapter_guids(
         * query remove IRP.  We will always get unloaded before the bus driver\r
         * since we're a child device.\r
         */\r
-       p_adapter->p_ifc->wdm.InterfaceDereference(\r
-               p_adapter->p_ifc->wdm.Context );\r
+       if (p_adapter->p_ifc)\r
+               p_adapter->p_ifc->wdm.InterfaceDereference(\r
+                       p_adapter->p_ifc->wdm.Context );\r
        IPOIB_EXIT( IPOIB_DBG_INIT );\r
        return NDIS_STATUS_SUCCESS;\r
 }\r
@@ -1086,7 +1087,7 @@ ipoib_query_info(
        case OID_GEN_MAXIMUM_SEND_PACKETS:\r
                IPOIB_PRINT( TRACE_LEVEL_INFORMATION,IPOIB_DBG_OID,\r
                        ("Port %d received query for OID_GEN_MAXIMUM_SEND_PACKETS\n", port_num) );\r
-               info = MAXULONG;\r
+               info = MINIPORT_MAX_SEND_PACKETS;\r
                break;\r
 \r
        /* Required General Statistics */\r
index da59dfa..7f2725c 100644 (file)
@@ -47,6 +47,9 @@
  */\r
 #define MAX_BUNDLE_ID_LENGTH   32\r
 \r
+/* The maximum number of send packets the MiniportSendPackets function can accept */\r
+#define MINIPORT_MAX_SEND_PACKETS      200\r
+\r
 /* MLX4 supports 4K MTU */\r
 #define IB_MTU                 4096\r
 /*\r