]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb22c801ec5bc27965369656d48a0a7391dcc2321
tree229290241edb6491e0ace71ed1ac6a2840ec56b8
parent84cb381727794397936f2941e99f3d0a311d6418
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: 6c61b35eb053 ('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