cxgb4: Setup FW queues before registering netdev
authorArjun Vynipadath <arjun@chelsio.com>
Fri, 23 Mar 2018 09:55:10 +0000 (15:25 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2018 00:52:41 +0000 (20:52 -0400)
commit843bd7db79c861b49e2912d723625f5fa8e94502
tree229290241edb6491e0ace71ed1ac6a2840ec56b8
parent2db956906d024825db29993066164afca46870ae
cxgb4: Setup FW queues before registering netdev

When NetworkManager is enabled, there are chances that interface up
is called even before probe completes. This means we have not yet
allocated the FW sge queues, hence rest of ingress queue allocation
wont be proper. Fix this by calling setup_fw_sge_queues() before
register_netdev().

Fixes: 0fbc81b3ad51 ('chcr/cxgb4i/cxgbit/RDMA/cxgb4: Allocate resources dynamically for all cxgb4 ULD's')
Signed-off-by: Arjun Vynipadath <arjun@chelsio.com>
Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c