net/ice/base: cleanup stack hog
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 26 Aug 2020 05:51:55 +0000 (13:51 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:09 +0000 (18:55 +0200)
commitb41ed0021fe639b7207042b5a2b9d1e19a6dca54
tree47be7968264af4e7d92810911e8a2606ee79a9c5
parent252deadabce2c6d3cb2d3307a7fac8c1ea62b6c5
net/ice/base: cleanup stack hog

In ice_flow_add_prof_sync(), struct ice_flow_prof_params has recently
grown in size hogging stack space when allocated there.
Hogging stack space should be avoided. Change allocation to be on the
heap when needed.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_flow.c