net/ice/base: use macro for sizeof
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 15 Jun 2020 02:04:48 +0000 (10:04 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jun 2020 17:21:08 +0000 (19:21 +0200)
commit38f165b1612dac71aecdf4b4c7f886c55728822d
treec1244d200e36dfa967e52162550c8e847f33541d
parent09ada7c890a1da223693a6b435404eccaafa4b55
net/ice/base: use macro for sizeof

The definition of ICE_SW_RULE_RX_TX_ETH_HDR_SIZE open codes the size of
a structure field. Replace this with the use of FIELD_SIZEOF.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_switch.h