MCPcopy Create free account
hub / github.com/F-Stack/f-stack / init_txq

Function init_txq

dpdk/drivers/net/cxgbe/sge.c:1978–1996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1976}
1977
1978static void init_txq(struct adapter *adap, struct sge_txq *q, unsigned int id,
1979 unsigned int abs_id)
1980{
1981 q->cntxt_id = id;
1982 q->abs_id = abs_id;
1983 q->bar2_addr = bar2_address(adap, q->cntxt_id, T4_BAR2_QTYPE_EGRESS,
1984 &q->bar2_qid);
1985 q->cidx = 0;
1986 q->pidx = 0;
1987 q->dbidx = 0;
1988 q->in_use = 0;
1989 q->equeidx = 0;
1990 q->coalesce.idx = 0;
1991 q->coalesce.len = 0;
1992 q->coalesce.flits = 0;
1993 q->last_coal_idx = 0;
1994 q->last_pidx = 0;
1995 q->stat = (void *)&q->desc[q->size];
1996}
1997
1998int t4_sge_eth_txq_start(struct sge_eth_txq *txq)
1999{

Callers 2

t4_sge_alloc_eth_txqFunction · 0.85
t4_sge_alloc_ctrl_txqFunction · 0.85

Calls 1

bar2_addressFunction · 0.85

Tested by

no test coverage detected