diff options
author | John Lo <loj@cisco.com> | 2018-03-13 21:53:18 -0400 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-03-14 12:07:48 +0000 |
commit | e23c99ec0061991cf3904122979ac755fe1b78ca (patch) | |
tree | 9ffa879cbdc7721138e5c0833605c7a060bebf52 /src/vnet/l2/l2_learn.c | |
parent | 04def7418b649a94e32149ee924a3743358b5c84 (diff) |
Improve l2_macs_events API to provide MAC move information
Change mac_entry layout in l2_macs_event API message so the MAC
entry can be either add, delete or move where the sw_if_index of
an existing MAC entry changed. Also added a 8-bit flags field
in mac_entry for any future expansion.
Change-Id: I3bf9e1cf2556f2938202025a5d0772c2ce2fc99f
Signed-off-by: John Lo <loj@cisco.com>
Diffstat (limited to 'src/vnet/l2/l2_learn.c')
-rw-r--r-- | src/vnet/l2/l2_learn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/l2/l2_learn.c b/src/vnet/l2/l2_learn.c index 6ece1a3c7f2..04e0721ebeb 100644 --- a/src/vnet/l2/l2_learn.c +++ b/src/vnet/l2/l2_learn.c @@ -207,6 +207,7 @@ l2learn_process (vlib_node_runtime_t * node, result0->fields.age_not = 0; } result0->fields.lrn_evt = (msm->client_pid != 0); + result0->fields.lrn_mov = (msm->client_pid != 0); counter_base[L2LEARN_ERROR_MAC_MOVE] += 1; } |