summaryrefslogtreecommitdiffstats
path: root/src/vnet/l2/l2.api
diff options
context:
space:
mode:
authorJerome Tollet <jtollet@cisco.com>2021-01-07 12:44:17 +0100
committerJohn Lo <loj@cisco.com>2021-01-08 21:46:37 +0000
commit0f8d100354ec71ba4e9e6c0e5b018eb379aca216 (patch)
treed343b8ba4832cbdf495d3c9e043a074454cf6bf6 /src/vnet/l2/l2.api
parent23f41d789c54bd8d9b87db8cf43d0235c5699da4 (diff)
l2: Separating scan-delay and learn-limit into a separate API from want_l2_macs_events
Type: feature Signed-off-by: Jerome Tollet <jtollet@cisco.com> Change-Id: I6de6dae7da4ec1001e2811975a9b67acfc1a148c
Diffstat (limited to 'src/vnet/l2/l2.api')
-rw-r--r--src/vnet/l2/l2.api32
1 files changed, 31 insertions, 1 deletions
diff --git a/src/vnet/l2/l2.api b/src/vnet/l2/l2.api
index ef830827e1c..b0ac23f705a 100644
--- a/src/vnet/l2/l2.api
+++ b/src/vnet/l2/l2.api
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-option version = "3.0.0";
+option version = "3.1.0";
import "vnet/ip/ip_types.api";
import "vnet/ethernet/ethernet_types.api";
@@ -151,6 +151,7 @@ autoreply define l2fib_add_del
*/
autoreply define want_l2_macs_events
{
+ option deprecated;
u32 client_index;
u32 context;
u32 learn_limit [default=1000];
@@ -160,6 +161,35 @@ autoreply define want_l2_macs_events
u32 pid;
};
+/** \brief Register to receive L2 MAC events for learned and aged MAC
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+ @param max_macs_in_event - in units of 10 mac entries
+ @param enable_disable - 1 => register for MAC events, 0 => cancel registration
+ @param pid - sender's pid
+*/
+autoreply define want_l2_macs_events2
+{
+ u32 client_index;
+ u32 context;
+ u8 max_macs_in_event [default=10];
+ bool enable_disable [default=true];
+ u32 pid;
+};
+
+/** \brief set l2 table scan delay
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+ @param scan_delay - event scan delay in 10 msec unit
+*/
+autoreply define l2fib_set_scan_delay
+{
+ u32 client_index;
+ u32 context;
+ u16 scan_delay [default=10];
+};
+
+
enum mac_event_action
{
MAC_EVENT_ACTION_API_ADD = 0,