From owner-p4-projects@FreeBSD.ORG Sat Dec 15 04:20:34 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 12AEE16A41A; Sat, 15 Dec 2007 04:20:34 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84A3316A417 for ; Sat, 15 Dec 2007 04:20:33 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6FA7613C458 for ; Sat, 15 Dec 2007 04:20:33 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lBF4KXuR013749 for ; Sat, 15 Dec 2007 04:20:33 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lBF4KXWE013734 for perforce@freebsd.org; Sat, 15 Dec 2007 04:20:33 GMT (envelope-from kmacy@freebsd.org) Date: Sat, 15 Dec 2007 04:20:33 GMT Message-Id: <200712150420.lBF4KXWE013734@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to kmacy@freebsd.org using -f From: Kip Macy To: Perforce Change Reviews Cc: Subject: PERFORCE change 130934 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2007 04:20:34 -0000 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)