};
} l2fib_entry_key_t;
+STATIC_ASSERT_SIZEOF (l2fib_entry_key_t, 8);
+
/*
* The l2fib entry results
*/
u8 static_mac:1; /* static mac, no dataplane learning */
u8 bvi:1; /* mac is for a bridged virtual interface */
u8 filter:1; /* drop packets to/from this mac */
- u8 refresh:1; /* refresh flag for aging */
- u8 unused1:4;
+ u8 unused1:5;
u8 timestamp; /* timestamp for aging */
u16 unused2;
} fields;
};
} l2fib_entry_result_t;
+STATIC_ASSERT_SIZEOF (l2fib_entry_result_t, 8);
/**
* Compute the hash for the given key and return
* Create the in-register key as F:E:D:C:B:A:H:L
* In memory the key is L:H:A:B:C:D:E:F
*/
- temp = *((u64 *) (mac_address - 2));
+ temp = *((u64 *) (mac_address)) << 16;
temp = (temp & ~0xffff) | (u64) (bd_index);
#else
/*