[PATCH net] cxgb4: copy adap index to PF0-3 adapter instances

Subsystems: cxgb4 ethernet driver (cxgb4), networking drivers, the rest

STALE3145d

2 messages, 2 authors, 2018-03-07 · open the first message on its own page

[PATCH net] cxgb4: copy adap index to PF0-3 adapter instances

From: Ganesh Goudar <hidden>
Date: 2018-03-07 07:39:06

instantiation of VF's on different adapters fails, copy
adapter index and chip type to PF0-3 adapter instances
to fix the issue.

Signed-off-by: Ganesh Goudar <redacted>
---
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
index 7b452e8..33bc8418 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@ -5181,6 +5181,8 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 	adapter->name = pci_name(pdev);
 	adapter->mbox = func;
 	adapter->pf = func;
+	adapter->params.chip = chip;
+	adapter->adap_idx = adap_idx;
 	adapter->msg_enable = DFLT_MSG_ENABLE;
 	adapter->mbox_log = kzalloc(sizeof(*adapter->mbox_log) +
 				    (sizeof(struct mbox_cmd) *
-- 
2.1.0

Re: [PATCH net] cxgb4: copy adap index to PF0-3 adapter instances

From: David Miller <davem@davemloft.net>
Date: 2018-03-07 20:33:34

From: Ganesh Goudar <redacted>
Date: Wed,  7 Mar 2018 13:08:45 +0530
instantiation of VF's on different adapters fails, copy
adapter index and chip type to PF0-3 adapter instances
to fix the issue.

Signed-off-by: Ganesh Goudar <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help