PERFORCE change 128366 for review

Kip Macy kmacy at FreeBSD.org
Tue Oct 30 14:04:30 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=128366

Change 128366 by kmacy at kmacy:storage:toestack on 2007/10/30 21:03:52

	register route_event handler

Affected files ...

.. //depot/projects/toestack/sys/dev/cxgb/cxgb_offload.c#10 edit

Differences ...

==== //depot/projects/toestack/sys/dev/cxgb/cxgb_offload.c#10 (text+ko) ====

@@ -873,7 +873,7 @@
 }
 
 static void
-route_event(void *unused, int event, struct rtentry *rt0, struct rtentry *rt1)
+cxgb_route_event(void *unused, int event, struct rtentry *rt0, struct rtentry *rt1)
 {
 	
 	switch (event) {
@@ -1586,6 +1586,9 @@
 	t3_register_cpl_handler(CPL_RX_DATA_DDP, do_hwtid_rpl);
 	t3_register_cpl_handler(CPL_RX_DDP_COMPLETE, do_hwtid_rpl);
 	t3_register_cpl_handler(CPL_ISCSI_HDR, do_hwtid_rpl);
+
+	EVENTHANDLER_REGISTER(route_event, cxgb_route_event, NULL, EVENTHANDLER_PRI_ANY);
+	
 #if 0
        if (offload_proc_init())
 	       log(LOG_WARNING, "Unable to create /proc/net/cxgb3 dir\n");


More information about the p4-projects mailing list