bnx2x: Call bnx2x_init_rte() later
PATCH 1/1 bnx2x: Call bnx2x_init_rte() later
We need sc->igu_sb_cnt determined before calculating the number of queues we can support.
--- drivers/net/bnx2x/bnx2x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/bnx2x/bnx2x.c +3 -3
@@ -9682,9 +9682,6 @@ int bnx2x_attach(struct bnx2x_softc *sc) sc->state =BNX2X_STATE_CLOSED ; -/* Init RTE stuff */ -bnx2x_init_rte (sc); -pci_write_long (sc,PCICFG_GRC_ADDRESS ,PCICFG_VENDOR_ID_OFFSET ); sc->igu_base_addr =IS_VF (sc) ?PXP_VF_ADDR_IGU_START :BAR_IGU_INTMEM ;
@@ -9702,6 +9699,9 @@ int bnx2x_attach(struct bnx2x_softc *sc) sc->igu_sb_cnt =1 ; } +/* Init RTE stuff */ +bnx2x_init_rte (sc); +if (IS_PF (sc)) {/* get device info and set params */ if (bnx2x_get_device_info (sc) !=0 ) {
Signature · 1 line
2.5.5
Quoted 7 lines · Chas Williams
We need
sc->igu_sb_cntdetermined before calculating the number of queues we can support.Fixes a787538ee754 ("bnx2x: fix MSIX vector and VF resource counts")Signed-off-by Chas Williams <[email protected]>---
Hi Chas,
we generally try to avoid making the commit titles too technical, so we avoid using function or variable names in the titles. Since this is a bug fix the best form of title to be used is "fix <description of bug symptoms>", e.g. "fix incorrect number of supported queues".
Maintainers, any comments or ack for this patch.
/Bruce
Rasesh Mody
Acked-byQuoted 14 lines
From: Bruce Richardson [mailto:[email protected]]
Sent: Wednesday, June 29, 2016 3:59 AMQuoted 7 lines · Chas Williams
We need
sc->igu_sb_cntdetermined before calculating the number of queues we can support.Fixes a787538ee754 ("bnx2x: fix MSIX vector and VF resource counts")Signed-off-by Chas Williams <[email protected]>---
Hi Chas,
Quoted 8 lines
we generally try to avoid making the commit titles too technical, so we avoid using function or variable names in the titles. Since this is a bug fix the best form of title to be used is "fix <description of bug symptoms>", e.g. "fix incorrect number of supported queues".
Maintainers, any comments or ack for this patch.
/Bruce
Thanks!
Rasesh
Bruce Richardson
AppliedQuoted 19 lines · Rasesh Mody
Quoted 19 lines
From: Bruce Richardson [mailto:[email protected]]
Sent: Wednesday, June 29, 2016 3:59 AMQuoted 7 lines · Chas Williams
We need
sc->igu_sb_cntdetermined before calculating the number of queues we can support.Fixes a787538ee754 ("bnx2x: fix MSIX vector and VF resource counts")Signed-off-by Chas Williams <[email protected]>---
Hi Chas,
we generally try to avoid making the commit titles too technical, so we avoid using function or variable names in the titles. Since this is a bug fix the best form of title to be used is "fix <description of bug symptoms>", e.g. "fix incorrect number of supported queues".
Quoted 8 lines
Quoted 3 lines
Maintainers, any comments or ack for this patch.
/Bruce
Acked-by Rasesh Mody <[email protected]>Thanks!
Rasesh
Applied to dpdk_next_net/rel_16_07 with title "net/bnx2x: fix incorrect number of supported queues".
/Bruce