mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 15:20:41 +00:00
cxgb4: Add device node to ULD info
Adds device node to ULD info. Use the node info to alloc_ring() for ctrl TX queues Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b8b1ae990e
commit
982b81eb24
3 changed files with 3 additions and 1 deletions
|
@ -2434,6 +2434,7 @@ static void uld_attach(struct adapter *adap, unsigned int uld)
|
|||
lli.max_ordird_qp = adap->params.max_ordird_qp;
|
||||
lli.max_ird_adapter = adap->params.max_ird_adapter;
|
||||
lli.ulptx_memwrite_dsgl = adap->params.ulptx_memwrite_dsgl;
|
||||
lli.nodeid = dev_to_node(adap->pdev_dev);
|
||||
|
||||
handle = ulds[uld].add(&lli);
|
||||
if (IS_ERR(handle)) {
|
||||
|
|
|
@ -264,6 +264,7 @@ struct cxgb4_lld_info {
|
|||
unsigned int max_ordird_qp; /* Max ORD/IRD depth per RDMA QP */
|
||||
unsigned int max_ird_adapter; /* Max IRD memory per adapter */
|
||||
bool ulptx_memwrite_dsgl; /* use of T5 DSGL allowed */
|
||||
int nodeid; /* device numa node id */
|
||||
};
|
||||
|
||||
struct cxgb4_uld_info {
|
||||
|
|
|
@ -2691,7 +2691,7 @@ int t4_sge_alloc_ctrl_txq(struct adapter *adap, struct sge_ctrl_txq *txq,
|
|||
|
||||
txq->q.desc = alloc_ring(adap->pdev_dev, nentries,
|
||||
sizeof(struct tx_desc), 0, &txq->q.phys_addr,
|
||||
NULL, 0, NUMA_NO_NODE);
|
||||
NULL, 0, dev_to_node(adap->pdev_dev));
|
||||
if (!txq->q.desc)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
Loading…
Reference in a new issue