src/dpdk/drivers/net/cxgbe/cxgbe_filter.c
static void mk_abort_req_ulp(struct cpl_abort_req *abort_req,
			     unsigned int tid)
{
	struct ulp_txpkt *txpkt = (struct ulp_txpkt *)abort_req;
	struct ulptx_idata *sc = (struct ulptx_idata *)(txpkt + 1);

	txpkt->cmd_dest = cpu_to_be32(V_ULPTX_CMD(ULP_TX_PKT) |
				      V_ULP_TXPKT_DEST(0));
	txpkt->len = cpu_to_be32(DIV_ROUND_UP(sizeof(*abort_req), 16));
	sc->cmd_more = cpu_to_be32(V_ULPTX_CMD(ULP_TX_SC_IMM));
	sc->len = cpu_to_be32(sizeof(*abort_req) -
			      sizeof(struct work_request_hdr));
	OPCODE_TID(abort_req) = cpu_to_be32(MK_OPCODE_TID(CPL_ABORT_REQ, tid));
	abort_req->rsvd0 = cpu_to_be32(0);
	abort_req->rsvd1 = 0;
	abort_req->cmd = CPL_ABORT_NO_RST;
	sc = (struct ulptx_idata *)(abort_req + 1);
	sc->cmd_more = cpu_to_be32(V_ULPTX_CMD(ULP_TX_SC_NOOP));
	sc->len = cpu_to_be32(0);
}
/**
 * Build a CPL_ABORT_REQ message as payload of a ULP_TX_PKT command.
 */
Build a CPL_ABORT_REQ message as payload of a ULP_TX_PKT command.
Build a CPL_ABORT_REQ message as payload of a ULP_TX_PKT command .
static void mk_abort_req_ulp(struct cpl_abort_req *abort_req,
			     unsigned int tid)
{
	struct ulp_txpkt *txpkt = (struct ulp_txpkt *)abort_req;
	struct ulptx_idata *sc = (struct ulptx_idata *)(txpkt + 1);
	txpkt->cmd_dest = cpu_to_be32(V_ULPTX_CMD(ULP_TX_PKT) |
				      V_ULP_TXPKT_DEST(0));
	txpkt->len = cpu_to_be32(DIV_ROUND_UP(sizeof(*abort_req), 16));
	sc->cmd_more = cpu_to_be32(V_ULPTX_CMD(ULP_TX_SC_IMM));
	sc->len = cpu_to_be32(sizeof(*abort_req) -
			      sizeof(struct work_request_hdr));
	OPCODE_TID(abort_req) = cpu_to_be32(MK_OPCODE_TID(CPL_ABORT_REQ, tid));
	abort_req->rsvd0 = cpu_to_be32(0);
	abort_req->rsvd1 = 0;
	abort_req->cmd = CPL_ABORT_NO_RST;
	sc = (struct ulptx_idata *)(abort_req + 1);
	sc->cmd_more = cpu_to_be32(V_ULPTX_CMD(ULP_TX_SC_NOOP));
	sc->len = cpu_to_be32(0);
}
static void mk_abort_req_ulp ( struct cpl_abort_req * abort_req , unsigned int tid ) { struct ulp_txpkt * txpkt = ( struct ulp_txpkt * ) abort_req ; struct ulptx_idata * sc = ( struct ulptx_idata * ) ( txpkt + 1 ) ; txpkt -> cmd_dest = cpu_to_be32 ( V_ULPTX_CMD ( ULP_TX_PKT ) | V_ULP_TXPKT_DEST ( 0 ) ) ; txpkt -> len = cpu_to_be32 ( DIV_ROUND_UP ( sizeof ( * abort_req ) , 16 ) ) ; sc -> cmd_more = cpu_to_be32 ( V_ULPTX_CMD ( ULP_TX_SC_IMM ) ) ; sc -> len = cpu_to_be32 ( sizeof ( * abort_req ) - sizeof ( struct work_request_hdr ) ) ; OPCODE_TID ( abort_req ) = cpu_to_be32 ( MK_OPCODE_TID ( CPL_ABORT_REQ , tid ) ) ; abort_req -> rsvd0 = cpu_to_be32 ( 0 ) ; abort_req -> rsvd1 = 0 ; abort_req -> cmd = CPL_ABORT_NO_RST ; sc = ( struct ulptx_idata * ) ( abort_req + 1 ) ; sc -> cmd_more = cpu_to_be32 ( V_ULPTX_CMD ( ULP_TX_SC_NOOP ) ) ; sc -> len = cpu_to_be32 ( 0 ) ; }
Build a CPL_ABORT_REQ message as payload of a ULP_TX_PKT command.
Build a CPL_ABORT_REQ message as payload of a ULP_TX_PKT command .