net/ice/base: add helper macros
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 25 Mar 2019 05:44:18 +0000 (13:44 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Mar 2019 16:25:31 +0000 (17:25 +0100)
commit6f59fc0f867514e56eb44f31b4880940a6dd86ee
tree4d108ea9800f024b5b94410665d02fa76a667d34
parenta03c714bfe0b620c6a9bb478af38361eb03b8eec
net/ice/base: add helper macros

1. Add macro ice_for_each_traffic_class to loop for each
traffic class.
2. Add macro MIN_T to wrap min with type conversion.

Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Reviewed-by: Qiming Yang <qiming.yang@intel.com>
Reviewed-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/ice/base/ice_common.c
drivers/net/ice/base/ice_nvm.c
drivers/net/ice/base/ice_sched.c
drivers/net/ice/base/ice_type.h