Date: Sat, 15 Dec 2007 04:20:33 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 130934 for review Message-ID: <200712150420.lBF4KXWE013734@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=130934 Change 130934 by kmacy@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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712150420.lBF4KXWE013734>