svn commit: r259993 - in stable: 10/sys/dev/cxgb/ulp/tom 9/sys/dev/cxgb/ulp/tom
Dimitry Andric
dim at FreeBSD.org
Sat Dec 28 02:15:31 UTC 2013
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)
{
More information about the svn-src-stable-9
mailing list