PERFORCE change 130934 for review
Kip Macy
kmacy at FreeBSD.org
Fri Dec 14 20:20:34 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=130934
Change 130934 by kmacy at kmacy:storage:toestack on 2007/12/15 04:20:14
add routine to look up listen context from the stid
Affected files ...
.. //depot/projects/toestack/sys/dev/cxgb/cxgb_offload.c#22 edit
Differences ...
==== //depot/projects/toestack/sys/dev/cxgb/cxgb_offload.c#22 (text+ko) ====
@@ -523,6 +523,18 @@
mtx_unlock(&t->stid_lock);
}
+/*
+ * Free a server TID and return it to the free pool.
+ */
+void *
+cxgb_get_lctx(struct t3cdev *tdev, int stid)
+{
+ struct tid_info *t = &(T3C_DATA (tdev))->tid_maps;
+ union listen_entry *p = stid2entry(t, stid);
+
+ return (p->toe_tid.ctx);
+}
+
void
cxgb_insert_tid(struct t3cdev *tdev, struct cxgb_client *client,
void *ctx, unsigned int tid)
More information about the p4-projects
mailing list