diff options
author | Neale Ranns <nranns@cisco.com> | 2018-09-12 09:42:50 -0400 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-09-13 00:25:20 +0000 |
commit | b1232555e91b286feab5667b5a22f29aa8e96626 (patch) | |
tree | b64e383bfce6458392550618aa147991df0bbfa9 /src/vnet/ethernet/packet.h | |
parent | 48a30d3038f91f7ef0ee81488573ecdb1803c074 (diff) |
L2-input: use vlib_buffer_enqueue_to_next
use the same trick as l2-ouput to group the processing of packets
on the same interface.
Change-Id: Ib2a6a1b5f362372936197f5bb2fdd0fe9439226b
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/ethernet/packet.h')
-rw-r--r-- | src/vnet/ethernet/packet.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/ethernet/packet.h b/src/vnet/ethernet/packet.h index d70960b0f7b..04ce420c07e 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 (u8 * a) +ethernet_address_cast (const u8 * a) { return (a[0] >> 0) & 1; } always_inline int -ethernet_address_is_broadcast (u8 * a) +ethernet_address_is_broadcast (const u8 * a) { return clib_mem_unaligned (a, u32) == 0xffffffff && clib_mem_unaligned (a + 4, u16) == 0xffff; } always_inline uword -ethernet_address_is_locally_administered (u8 * a) +ethernet_address_is_locally_administered (const u8 * a) { return (a[0] >> 1) & 1; } |