]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: Fix uld_send() for ctrl pkts
authorArjun V <arjun@chelsio.com>
Thu, 2 Feb 2017 07:13:29 +0000 (12:43 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Feb 2017 16:04:32 +0000 (11:04 -0500)
commit0acc8dc7ea210f08844ea8e40b3173933dab5c34
treed0ef95577db29d8607ca822a1dc1fad0ab37d324
parent1fbafc12d1e4316ba5e6638cad70e986f9c156e0
cxgb4: Fix uld_send() for ctrl pkts

Without any uld being loaded, uld_txq_info[] will be NULL. uld_send()
is also used for sending control work requests(for eg: setting filter)
that dont require any ulds to be loaded. Hence move uld_txq_info[]
assignment after ctrl_xmit().

Also added a NULL check for uld_txq_info[].

Fixes: 781edc2e4515 (cxgb4: Add support for dynamic allocation
       of resources for ULD).
Signed-off-by: Arjun V <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/sge.c