net/ixgbe: replace macro with inline function
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 5 Jul 2017 02:21:34 +0000 (22:21 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:57 +0000 (15:00 +0200)
commit0d722a19f30e5bb5462bb7928775aa7debe7d94d
tree7f43bc83511bc53a462a7a4258969070cb06a317
parente4beca01c53714701b7fa4a5d92af413ae5ac4a4
net/ixgbe: replace macro with inline function

Code cleanup done for 2 purposes.
1. "index" variable is no more needed.
2. inline function makes it easier and safer to nest into a loop.

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/ixgbe/ixgbe_flow.c