* 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
+\r
IPOIB_EXIT( IPOIB_DBG_INIT );\r
return NDIS_STATUS_SUCCESS;\r
}\r
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
*/\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