cxgb4: Add support for dynamic allocation of resources for ULD
authorHariprasad Shenai <hariprasad@chelsio.com>
Wed, 17 Aug 2016 07:03:03 +0000 (12:33 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2016 06:58:28 +0000 (23:58 -0700)
commit94cdb8bb993a2303d6172b28cbd2b48245b9b8a3
tree397e85a27f5eec7e9d1aef4cb3991758ba8e7572
parentb65b24d42f0a3da68085433f1102c0ac6aa3cebe
cxgb4: Add support for dynamic allocation of resources for ULD

Add a new commmon infrastructure to allocate reosurces dynamically to
Upper layer driver's(ULD) when they register with cxgb4 driver and free
them during unregistering. All the queues and the interrupts for
them will be allocated during ULD probe only and freed during remove.

Signed-off-by: Atul Gupta <atul.gupta@chelsio.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/Makefile
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c [new file with mode: 0644]
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h
drivers/net/ethernet/chelsio/cxgb4/sge.c
drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h