aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ethernet/packet.h
diff options
context:
space:
mode:
authorJohn Lo <loj@cisco.com>2018-09-13 22:10:25 +0000
committerNeale Ranns <nranns@cisco.com>2018-09-14 08:38:43 +0000
commit1fc44b6fec5a75b6ce57ed984965877bc4b49e47 (patch)
treeaf265790957b0fada7e70cf37917bf8235be5da4 /src/vnet/ethernet/packet.h
parente166fd90d68e8b2e4c10529652992465bdf4e8c3 (diff)
Revert "L2-input: use vlib_buffer_enqueue_to_next"
The patch did not improve single input link performance and degrade performance with multiple input links. This reverts commit b1232555e91b286feab5667b5a22f29aa8e96626. Change-Id: Ib9336a2e0610088b9145a43cacbdadb52dabd522 Signed-off-by: John Lo <loj@cisco.com>
Diffstat (limited to 'src/vnet/ethernet/packet.h')
-rw-r--r--src/vnet/ethernet/packet.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/ethernet/packet.h b/src/vnet/ethernet/packet.h
index 04ce420c07e..d70960b0f7b 100644
--- a/src/vnet/ethernet/packet.h
+++ b/src/vnet/ethernet/packet.h
@@ -64,20 +64,20 @@ typedef struct
/* I/G bit: individual (unicast)/group (broadcast/multicast). */
always_inline uword
-ethernet_address_cast (const u8 * a)
+ethernet_address_cast (u8 * a)
{
return (a[0] >> 0) & 1;
}
always_inline int
-ethernet_address_is_broadcast (const u8 * a)
+ethernet_address_is_broadcast (u8 * a)
{
return clib_mem_unaligned (a, u32) == 0xffffffff &&
clib_mem_unaligned (a + 4, u16) == 0xffff;
}
always_inline uword
-ethernet_address_is_locally_administered (const u8 * a)
+ethernet_address_is_locally_administered (u8 * a)
{
return (a[0] >> 1) & 1;
}