[ofw] [IPoIB CM]Patch for IP protocol packet redirection

Alex Estrin alex.estrin at qlogic.com
Fri Feb 27 06:39:07 PST 2009


Hello,

By default IP packets are redirected accordingly destination endpoint connection status,
however redirection flag could be left uninitialized if default packet goes to RC QP.

Thanks,
Alex.

Index: ipoib_port.c
===================================================================
--- ipoib_port.c	(revision 1979)
+++ ipoib_port.c	(working copy)
@@ -3534,9 +3534,6 @@
 		}
 		return status;
 
-	case IP_PROT_TCP:
-		p_desc->send_dir = SEND_RC_QP;
-		break;
 	case IP_PROT_IGMP:
 		/*
 		In igmp packet I saw that iph arrive in 2 NDIS_BUFFERs:
@@ -3556,7 +3553,11 @@
 
 	case IP_PROT_ICMP:
 		p_desc->send_dir = SEND_UD_QP;
+		break;
+
+	case IP_PROT_TCP:
 	default:
+		p_desc->send_dir = SEND_RC_QP;
 		break;
 	}
 	



More information about the ofw mailing list