net/ice: cleanup RSS/FDIR profile on device init
authorYing A Wang <ying.a.wang@intel.com>
Thu, 17 Oct 2019 18:31:59 +0000 (02:31 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:10 +0000 (16:43 +0200)
commit7edc7158d771571d432c76ec66b34aa4bfc88be8
treeddbc6672f63e4c2f3585aa26e374a57c5fd8d614
parentefc16c6214152b9cc89906f004718ccf6603c1ce
net/ice: cleanup RSS/FDIR profile on device init

When app restarts, RSS/FDIR profile ID will increase which may
run out of all the profile resources.

The patch cleanup RSS/FDIR profile resources when device init
to fix this issue.

Fixes: d7d150b93070 ("net/ice: enable RSS when device init")
Cc: stable@dpdk.org
Signed-off-by: Ying A Wang <ying.a.wang@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/ice_ethdev.c