net/ice: fix memory leak on dev closed
authorHaiyue Wang <haiyue.wang@intel.com>
Mon, 14 Oct 2019 14:50:04 +0000 (22:50 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:09 +0000 (16:43 +0200)
commitf93949c3afc39b0f610e0661f7baa21060ada13a
treec927d39fc49a16bb882a812d6d6fd6af4a003f65
parent5e913bdb4f4d05f90ca99467444f11633c78749a
net/ice: fix memory leak on dev closed

The original protocol extraction memory free is removed by introducing
new design for releasing port upon close.

Fixes: bd513ece3c40 ("net/ice: release port upon close")

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/ice_ethdev.c