X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fl2%2Fl2_fib.h;h=60c197f2a572094b0f7e9c8b51153e281bec4e6a;hb=d792d9c01e60656cbfe1b0f1fd6a9b125f5dab0c;hp=6346826ee99a719138e1bbd84e43adc0645be2e7;hpb=57938f63cc6743193c76d4fa89ad3250a5f76b56;p=vpp.git diff --git a/src/vnet/l2/l2_fib.h b/src/vnet/l2/l2_fib.h index 6346826ee99..60c197f2a57 100644 --- a/src/vnet/l2/l2_fib.h +++ b/src/vnet/l2/l2_fib.h @@ -148,7 +148,12 @@ l2fib_compute_hash_bucket (l2fib_entry_key_t * key) return result % L2FIB_NUM_BUCKETS; } -always_inline u64 +/** + * make address sanitizer skip this: + * The 6-Bytes mac-address is cast into an 8-Bytes u64, with 2 additional Bytes. + * l2fib_make_key() does read those two Bytes but does not use them. + */ +always_inline u64 __attribute__ ((no_sanitize_address)) l2fib_make_key (u8 * mac_address, u16 bd_index) { u64 temp;