net/ice/base: fix signed package download
authorLeyi Rong <leyi.rong@intel.com>
Wed, 19 Jun 2019 15:18:19 +0000 (23:18 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jun 2019 18:31:48 +0000 (20:31 +0200)
commit5c8af3625389ad8b398945889d82ab983d43b309
tree110adbe788d58e3e210bff8e8d05c0d2fabd6fd9
parent79aec8237c2564e5b7adb8f1be008cb84aaa9746
net/ice/base: fix signed package download

In order to properly support signed packages, we always have
to send the complete buffer to firmware, regardless of any
unused space at the end. This is because the SHA hash value
is computed over the entire buffer.

Fixes: 51d04e4933e3 ("net/ice/base: add flexible pipeline module")
Cc: stable@dpdk.org
Signed-off-by: Dan Nowlin <dan.nowlin@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Leyi Rong <leyi.rong@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/base/ice_flex_pipe.c