l2_input:optimize counter access 36/11436/3
authorEyal Bari <ebari@cisco.com>
Wed, 28 Mar 2018 12:25:28 +0000 (15:25 +0300)
committerJohn Lo <loj@cisco.com>
Thu, 29 Mar 2018 15:14:48 +0000 (15:14 +0000)
commit109139eed67b7f472cf7328a02265528dbe8934e
tree41d6b29896372c69cd2bb665d44ceb8d6239b479
parent56b39f6a9e1e467b3e7413092e20882df3d59ced
l2_input:optimize counter access

only one counter update per frame (was updated per iteration)
only access ethertype for casts (was always accessing ethertype)

Change-Id: I3a3c3219ec63e975cf5bd8cf2d93103932a4aaa3
Signed-off-by: Eyal Bari <ebari@cisco.com>
src/vnet/l2/l2_input.c