net/ice/base: add switch resource allocation and free
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 25 Mar 2019 05:44:15 +0000 (13:44 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Mar 2019 16:25:31 +0000 (17:25 +0100)
commitc88a5ede5889de5c0272cfa2d5f6835ab67c6631
tree4309cbcb67a75fa280b3d7e4e725c460b2d2fa80
parent2d5f6953d56d13a6cea916d5d8384bfc07041991
net/ice/base: add switch resource allocation and free

Add two APIs ice_alloc_sw and ice_free_sw to support
switch related resource allocation and free.

These APIs are required when we enable switch flow.

Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Reviewed-by: Qiming Yang <qiming.yang@intel.com>
Reviewed-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/ice/base/ice_switch.c
drivers/net/ice/base/ice_switch.h