[Openib-windows] [patch] reregister of IP address to SM
Yossi Leybovich
sleybo at mellanox.co.il
Tue Nov 29 04:05:26 PST 2005
Fab
After adding IPoIB client reregister bit support the IPoIB rejoin to all
multicast groups but it also need to reregister to all Ips
What happen is that the Ips vector still mark the Ips as registered so
it does not reregister them.
We can mark them all as not register before reset or just dereg them.
(I pesonaly think that IPoIB also need to deregister IPs when the
Adapter destroy.
Maybe need to add this flow to adapter_destroying).
This patch add the dereg to the reset flow.
Singed-off-by: Yossi Leybovich (sleybo at mellanox.co.il)
Index: ulp/ipoib/kernel/ipoib_adapter.c
===================================================================
--- ulp/ipoib/kernel/ipoib_adapter.c (revision 775)
+++ ulp/ipoib/kernel/ipoib_adapter.c (working copy)
@@ -774,6 +842,7 @@
}
/* Complete any pending OIDs. */
ipoib_resume_oids( p_adapter );
+ __ipoib_dereg_addrs(p_adapter);
if( state != IB_PNP_PORT_REMOVE )
{
Index: ulp/ipoib/kernel/ipoib_adapter.h
===================================================================
--- ulp/ipoib/kernel/ipoib_adapter.h (revision 775)
+++ ulp/ipoib/kernel/ipoib_adapter.h (working copy)
@@ -394,4 +395,8 @@
ipoib_reg_addrs(
IN ipoib_adapter_t* const
p_adapter );
+void
+__ipoib_dereg_addrs(
+ IN ipoib_adapter_t* const
p_adapter );
+
#endif /* _IPOIB_ADAPTER_H_ */
Index: ulp/ipoib/kernel/ipoib_driver.c
===================================================================
--- ulp/ipoib/kernel/ipoib_driver.c (revision 775)
+++ ulp/ipoib/kernel/ipoib_driver.c (working copy)
@@ -217,13 +217,63 @@
static void
__ipoib_ats_dereg_cb(
IN void
*context );
-
+/*
static void
__ipoib_dereg_addrs(
IN ipoib_adapter_t* const
p_adapter );
+*/
@@ -2202,7 +2254,7 @@
/* Object lock is held when this function is called. */
-static void
+void
__ipoib_dereg_addrs(
IN ipoib_adapter_t* const
p_adapter )
{
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipoib_ips_rereg.patch
Type: application/octet-stream
Size: 1399 bytes
Desc: ipoib_ips_rereg.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20051129/57e290c5/attachment.obj>
More information about the ofw
mailing list