From owner-svn-src-all@FreeBSD.ORG Sat Dec 28 02:15:31 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1C4E6ED5; Sat, 28 Dec 2013 02:15:31 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E1C921451; Sat, 28 Dec 2013 02:15:30 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBS2FUk2040324; Sat, 28 Dec 2013 02:15:30 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBS2FUgV040323; Sat, 28 Dec 2013 02:15:30 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201312280215.rBS2FUgV040323@svn.freebsd.org> From: Dimitry Andric Date: Sat, 28 Dec 2013 02:15:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r259993 - in stable: 10/sys/dev/cxgb/ulp/tom 9/sys/dev/cxgb/ulp/tom X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Dec 2013 02:15:31 -0000 Author: dim Date: Sat Dec 28 02:15:30 2013 New Revision: 259993 URL: http://svnweb.freebsd.org/changeset/base/259993 Log: MFC r259897: In sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c, remove static functions mk_cpl_barrier_ulp(), mk_get_tcb_ulp() and mk_set_tcb_field_ulp(), which are all unused since r237263. Modified: stable/9/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c Directory Properties: stable/9/sys/ (props changed) Changes in other areas also in this revision: Modified: stable/10/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c Directory Properties: stable/10/ (props changed) Modified: stable/9/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c ============================================================================== --- stable/9/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c Sat Dec 28 02:11:17 2013 (r259992) +++ stable/9/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c Sat Dec 28 02:15:30 2013 (r259993) @@ -1794,53 +1794,6 @@ do_wr_ack(struct sge_qset *qs, struct rs return (0); } -/* - * Build a CPL_BARRIER message as payload of a ULP_TX_PKT command. - */ -static inline void -mk_cpl_barrier_ulp(struct cpl_barrier *b) -{ - struct ulp_txpkt *txpkt = (struct ulp_txpkt *)b; - - txpkt->cmd_dest = htonl(V_ULPTX_CMD(ULP_TXPKT)); - txpkt->len = htonl(V_ULPTX_NFLITS(sizeof(*b) / 8)); - b->opcode = CPL_BARRIER; -} - -/* - * Build a CPL_GET_TCB message as payload of a ULP_TX_PKT command. - */ -static inline void -mk_get_tcb_ulp(struct cpl_get_tcb *req, unsigned int tid, unsigned int cpuno) -{ - struct ulp_txpkt *txpkt = (struct ulp_txpkt *)req; - - txpkt = (struct ulp_txpkt *)req; - txpkt->cmd_dest = htonl(V_ULPTX_CMD(ULP_TXPKT)); - txpkt->len = htonl(V_ULPTX_NFLITS(sizeof(*req) / 8)); - OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_GET_TCB, tid)); - req->cpuno = htons(cpuno); -} - -/* - * Build a CPL_SET_TCB_FIELD message as payload of a ULP_TX_PKT command. - */ -static inline void -mk_set_tcb_field_ulp(struct cpl_set_tcb_field *req, unsigned int tid, - unsigned int word, uint64_t mask, uint64_t val) -{ - struct ulp_txpkt *txpkt = (struct ulp_txpkt *)req; - - txpkt->cmd_dest = htonl(V_ULPTX_CMD(ULP_TXPKT)); - txpkt->len = htonl(V_ULPTX_NFLITS(sizeof(*req) / 8)); - OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, tid)); - req->reply = V_NO_REPLY(1); - req->cpu_idx = 0; - req->word = htons(word); - req->mask = htobe64(mask); - req->val = htobe64(val); -} - void t3_init_cpl_io(struct adapter *sc) {