summaryrefslogtreecommitdiffstats
path: root/src/vnet/l2/l2_learn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/l2/l2_learn.c')
-rw-r--r--src/vnet/l2/l2_learn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/l2/l2_learn.c b/src/vnet/l2/l2_learn.c
index 3f5b48bfa99..6f2201b3ade 100644
--- a/src/vnet/l2/l2_learn.c
+++ b/src/vnet/l2/l2_learn.c
@@ -128,7 +128,7 @@ l2learn_process (vlib_node_runtime_t * node,
{
/* Entry in L2FIB with matching sw_if_index matched - normal fast path */
u32 dtime = timestamp - result0->fields.timestamp;
- u32 dsn = result0->fields.sn.as_u16 - vnet_buffer (b0)->l2.l2fib_sn;
+ u32 dsn = (result0->fields.sn - vnet_buffer (b0)->l2.l2fib_sn);
u32 check = (dtime && vnet_buffer (b0)->l2.bd_age) || dsn;
if (PREDICT_TRUE (check == 0))
@@ -224,7 +224,7 @@ l2learn_process (vlib_node_runtime_t * node,
/* Update the entry */
result0->fields.timestamp = timestamp;
- result0->fields.sn.as_u16 = vnet_buffer (b0)->l2.l2fib_sn;
+ result0->fields.sn = vnet_buffer (b0)->l2.l2fib_sn;
BVT (clib_bihash_kv) kv;
kv.key = key0->raw;