net/ice/base: allow package copy to be used after resets
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 25 Mar 2019 05:44:19 +0000 (13:44 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Mar 2019 16:25:31 +0000 (17:25 +0100)
commitaeff2769f370ecc7e9c273e06e60bdaeb044c1c0
tree8ba2f5b9ed873a7ee7bd56ca6cc01c49d31d5740
parent6f59fc0f867514e56eb44f31b4880940a6dd86ee
net/ice/base: allow package copy to be used after resets

For components that make a copy of an external pipeline package file
(i.e.  the Linux and FreeBSD drivers), save the size of the package
file along with the copy so that both can be used when calling
ice_init_pkg() after a CORER/GLOBR reset.
Also, do not free the copy of the package file in ice_init_pkg()
since it is needed afterward for subsequent resets.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
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_flex_pipe.c
drivers/net/ice/base/ice_type.h