net/ice: support device-specific DDP package loading
authorTing Xu <ting.xu@intel.com>
Tue, 17 Sep 2019 13:02:28 +0000 (13:02 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:53 +0000 (15:00 +0200)
commit03a05924dad01d5329b2734a157200b66d2ca415
treec2fa9c89e09379df147da0c94b0fe37c3c6f942a
parent3ba381eb657612f64e48b4d960e6faed0f34280f
net/ice: support device-specific DDP package loading

This patch adds the feature that supports loading DDP package
according to the device serial number. Prior to loading the
default DDP package (ice.pkg), the driver will check for the
presence of a device-specific DDP package with the name containing
64-bit PCIe Device Serial Number (ice-xxxxxxxxxxxxxxxx.pkg)
during initialization. Users can use "lspci -vs" to get the device
serial number.
The pkg search path are /lib/firmware/updates/intel/ice/ddp/
and /lib/firmware/intel/ice/ddp/. If the package exists,
the driver will download it to the device instead of the default
one. The loaded package type (OS default and COMMS) will be
stored in ice_adapter->active_pkg_type. The package version is
stored in ice_hw->active_pkg_ver.

Signed-off-by: Ting Xu <ting.xu@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
doc/guides/nics/ice.rst
doc/guides/rel_notes/release_19_11.rst
drivers/net/ice/ice_ethdev.c
drivers/net/ice/ice_ethdev.h