Carry processor affinity information through to Init call, so it's available
when supported by winverbs.

Signed-off-by: Sean Hefty <[email protected]>
---
 trunk/ulp/netdirect2/user/nd_adapter.cpp |    2 +-
 trunk/ulp/netdirect2/user/nd_srq.cpp     |    3 ++-
 trunk/ulp/netdirect2/user/nd_srq.h       |    6 +++---
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/trunk/ulp/netdirect2/user/nd_adapter.cpp 
b/trunk/ulp/netdirect2/user/nd_adapter.cpp
index a5977fa..6be7c3f 100644
--- a/trunk/ulp/netdirect2/user/nd_adapter.cpp
+++ b/trunk/ulp/netdirect2/user/nd_adapter.cpp
@@ -205,7 +205,7 @@ CreateSharedReceiveQueue(REFIID iid, DWORD queueDepth, 
DWORD maxSge,
        }
 
        return CNDSharedReceiveQueue::CreateInstance(this, queueDepth, maxSge,
-                                                                               
                 notifyThreshold, affinity,
+                                                                               
                 notifyThreshold, group, affinity,
                                                                                
                 ppSharedReceiveQueue);
 }
 
diff --git a/trunk/ulp/netdirect2/user/nd_srq.cpp 
b/trunk/ulp/netdirect2/user/nd_srq.cpp
index 0703aa9..435878e 100644
--- a/trunk/ulp/netdirect2/user/nd_srq.cpp
+++ b/trunk/ulp/netdirect2/user/nd_srq.cpp
@@ -38,7 +38,8 @@ CNDSharedReceiveQueue::CNDSharedReceiveQueue(CNDAdapter 
*pAdapter)
 }
 
 STDMETHODIMP CNDSharedReceiveQueue::
-Init(DWORD queueDepth, DWORD maxSGE, DWORD notifyThreshold, KAFFINITY affinity)
+Init(DWORD queueDepth, DWORD maxSGE, DWORD notifyThreshold,
+        USHORT group, KAFFINITY affinity)
 {
        HRESULT hr;
 
diff --git a/trunk/ulp/netdirect2/user/nd_srq.h 
b/trunk/ulp/netdirect2/user/nd_srq.h
index 5384036..cf1ec70 100644
--- a/trunk/ulp/netdirect2/user/nd_srq.h
+++ b/trunk/ulp/netdirect2/user/nd_srq.h
@@ -61,7 +61,7 @@ public:
        void Delete() {delete this;}
        static STDMETHODIMP
        CreateInstance(CNDAdapter *pAdapter, DWORD queueDepth, DWORD maxSge,
-                                  DWORD notifyThreshold, KAFFINITY affinity,
+                                  DWORD notifyThreshold, USHORT group, 
KAFFINITY affinity,
                                   VOID** ppSharedReceiveQueue)
        {
                HRESULT hr;
@@ -73,7 +73,7 @@ public:
                        goto err1;
                }
 
-               hr = srq->Init(queueDepth, maxSge, notifyThreshold, affinity);
+               hr = srq->Init(queueDepth, maxSge, notifyThreshold, group, 
affinity);
                if (FAILED(hr)) {
                        goto err2;
                }
@@ -94,7 +94,7 @@ protected:
        CNDAdapter                              *m_pAdapter;
 
        STDMETHODIMP Init(DWORD queueDepth, DWORD maxSge, DWORD notifyThreshold,
-                                         KAFFINITY affinity);
+                                         USHORT group, KAFFINITY affinity);
 };
 
 #endif // _ND_SRQ_H_

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

Reply via email to