From 1fc44b6fec5a75b6ce57ed984965877bc4b49e47 Mon Sep 17 00:00:00 2001 From: John Lo Date: Thu, 13 Sep 2018 22:10:25 +0000 Subject: 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 --- src/vnet/ethernet/packet.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/vnet/ethernet/packet.h') 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; } -- cgit 1.2.3-korg