net/ice/base: reduce calls to get profile associations
authorLeyi Rong <leyi.rong@intel.com>
Wed, 19 Jun 2019 15:18:40 +0000 (23:18 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jun 2019 18:31:49 +0000 (20:31 +0200)
commit21cb08fe6841bcb48f755f21f3efd28a8c2b1055
tree1cb487bd709b2a890c29ad6eb5f515efd09ff66c
parent8d0fa8c7f552270c86d05268c19bbc2ffe78a04a
net/ice/base: reduce calls to get profile associations

Added refresh_required flag to determine if we need to update the
recipe to profile mapping cache. This will reduce the number of
calls made to refresh the profile map.

Signed-off-by: Shivanshu Shukla <shivanshu.shukla@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_switch.c