ice: cleanup stack hog
authorBruce Allan <bruce.w.allan@intel.com>
Mon, 14 Sep 2020 15:37:14 +0000 (08:37 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 9 Dec 2020 16:11:13 +0000 (08:11 -0800)
commit88dcfdb4cd82ff3c4cf5d4874fabb6adaaf1ce63
tree2eb98da961ebfd7ccb389ec333e5225adab5cecb
parentafae3cc2da100ead3cd6ef4bb1fb8bc9d4b817c5
ice: 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>
Tested-by: Harikumar Bokkena <harikumarx.bokkena@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_flow.c