diff options
author | Neale Ranns <nranns@cisco.com> | 2018-09-06 06:22:56 -0700 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2018-09-07 13:35:58 +0000 |
commit | b54d081873ac975e06be2569a17e6150779e3018 (patch) | |
tree | e65062d3e2d3bd941b6cd5b5841eb333e112ef54 /src/vnet/l2/l2_fwd.c | |
parent | 3b93be5d76cbcb5dc3d3aee5c72a797014a346f9 (diff) |
L2-FIB: replace bit-fields with flags
Change-Id: Ic31da442a0e0477569d53b4a72627bbb25e93365
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/l2/l2_fwd.c')
-rw-r--r-- | src/vnet/l2/l2_fwd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/l2/l2_fwd.c b/src/vnet/l2/l2_fwd.c index c1b8519a832..8c03683b133 100644 --- a/src/vnet/l2/l2_fwd.c +++ b/src/vnet/l2/l2_fwd.c @@ -145,7 +145,7 @@ l2fwd_process (vlib_main_t * vm, int l2fib_seq_num_valid = 1; /* check l2fib seq num for stale entries */ - if (!result0->fields.age_not) + if (!l2fib_entry_result_is_set_AGE_NOT (result0)) { l2fib_seq_num_t in_sn = {.as_u16 = vnet_buffer (b0)->l2.l2fib_sn }; l2fib_seq_num_t expected_sn = { @@ -168,13 +168,13 @@ l2fwd_process (vlib_main_t * vm, *next0 = L2FWD_NEXT_DROP; } /* perform filter check */ - else if (PREDICT_FALSE (result0->fields.filter)) + else if (PREDICT_FALSE (l2fib_entry_result_is_set_FILTER (result0))) { b0->error = node->errors[L2FWD_ERROR_FILTER_DROP]; *next0 = L2FWD_NEXT_DROP; } /* perform BVI check */ - else if (PREDICT_FALSE (result0->fields.bvi)) + else if (PREDICT_FALSE (l2fib_entry_result_is_set_BVI (result0))) { u32 rc; rc = l2_to_bvi (vm, |