Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Revert "L2-input: use vlib_buffer_enqueue_to_next"
[vpp.git]
/
src
/
vnet
/
ethernet
/
packet.h
diff --git
a/src/vnet/ethernet/packet.h
b/src/vnet/ethernet/packet.h
index
04ce420
..
d70960b
100644
(file)
--- 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
/* 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
{
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
{
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;
}
{
return (a[0] >> 1) & 1;
}