diff options
author | Dave Barach <dave@barachs.net> | 2017-09-28 15:11:16 -0400 |
---|---|---|
committer | Ole Troan <ot@cisco.com> | 2017-10-09 13:32:40 +0200 |
commit | 0d056e5ede136cd0111dc3f9f41ef7b36a938027 (patch) | |
tree | 2f7c61d50f922a55ab7da199e0304a581ee7516f /src/vnet | |
parent | 87da476db0cd804e11463cc453a2bb41c6808542 (diff) |
vppapigen: support per-file (major,minor,patch) version stamps
Add one of these statements to foo.api:
vl_api_version 1.2.3
to generate a version tuple stanza in foo.api.h:
/****** Version tuple *****/
vl_api_version_tuple(foo, 1, 2, 3)
Change-Id: Ic514439e4677999daa8463a94f948f76b132ff15
Signed-off-by: Dave Barach <dave@barachs.net>
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/vnet')
29 files changed, 63 insertions, 4 deletions
diff --git a/src/vnet/bfd/bfd.api b/src/vnet/bfd/bfd.api index 7bcaa4c322f..1c5c578619e 100644 --- a/src/vnet/bfd/bfd.api +++ b/src/vnet/bfd/bfd.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief Set BFD echo source @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request diff --git a/src/vnet/classify/classify.api b/src/vnet/classify/classify.api index cacb9bed7d4..de9de773858 100644 --- a/src/vnet/classify/classify.api +++ b/src/vnet/classify/classify.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief Add/Delete classification table request @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request diff --git a/src/vnet/cop/cop.api b/src/vnet/cop/cop.api index 693160018a4..a11b45170a4 100644 --- a/src/vnet/cop/cop.api +++ b/src/vnet/cop/cop.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief cop: enable/disable junk filtration features on an interface @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request diff --git a/src/vnet/devices/af_packet/af_packet.api b/src/vnet/devices/af_packet/af_packet.api index 8d40ad60c02..f815042ad55 100644 --- a/src/vnet/devices/af_packet/af_packet.api +++ b/src/vnet/devices/af_packet/af_packet.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief Create host-interface @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request diff --git a/src/vnet/devices/netmap/netmap.api b/src/vnet/devices/netmap/netmap.api index 8dc698b999b..d2de03388ea 100644 --- a/src/vnet/devices/netmap/netmap.api +++ b/src/vnet/devices/netmap/netmap.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief Create netmap @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request diff --git a/src/vnet/devices/virtio/vhost_user.api b/src/vnet/devices/virtio/vhost_user.api index 28d5e8916b6..6f21cb6c3ab 100644 --- a/src/vnet/devices/virtio/vhost_user.api +++ b/src/vnet/devices/virtio/vhost_user.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief vhost-user interface create request @param client_index - opaque cookie to identify the sender @param is_server - our side is socket server diff --git a/src/vnet/dhcp/dhcp.api b/src/vnet/dhcp/dhcp.api index c632c0877ae..628b674e1c6 100644 --- a/src/vnet/dhcp/dhcp.api +++ b/src/vnet/dhcp/dhcp.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief DHCP Proxy config add / del request @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request diff --git a/src/vnet/ethernet/p2p_ethernet.api b/src/vnet/ethernet/p2p_ethernet.api index 8fb66376522..ead7cab9f80 100644 --- a/src/vnet/ethernet/p2p_ethernet.api +++ b/src/vnet/ethernet/p2p_ethernet.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + define p2p_ethernet_add { u32 client_index; diff --git a/src/vnet/flow/flow.api b/src/vnet/flow/flow.api index 1c5e8c5c1fe..6c49428f152 100644 --- a/src/vnet/flow/flow.api +++ b/src/vnet/flow/flow.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief Configure IPFIX exporter process request @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request diff --git a/src/vnet/gre/gre.api b/src/vnet/gre/gre.api index 28f6dbc94fa..1091835617c 100644 --- a/src/vnet/gre/gre.api +++ b/src/vnet/gre/gre.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + define gre_add_del_tunnel { u32 client_index; diff --git a/src/vnet/interface.api b/src/vnet/interface.api index 94ecdd9f9ff..2f2e8373357 100644 --- a/src/vnet/interface.api +++ b/src/vnet/interface.api @@ -1,3 +1,5 @@ +vl_api_version 1.0.0 + /** \brief Set flags on the interface @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request diff --git a/src/vnet/ip/ip.api b/src/vnet/ip/ip.api index 4b7019f087e..69ab7011943 100644 --- a/src/vnet/ip/ip.api +++ b/src/vnet/ip/ip.api @@ -19,6 +19,8 @@ called through a shared memory interface. */ +vl_api_version 1.0.0 + /** \brief Add / del table request A table can be added multiple times, but need be deleted only once. @param client_index - opaque cookie to identify the sender diff --git a/src/vnet/ipsec-gre/ipsec_gre.api b/src/vnet/ipsec-gre/ipsec_gre.api index 793bca0afcd..ad6ec4e84e0 100644 --- a/src/vnet/ipsec-gre/ipsec_gre.api +++ b/src/vnet/ipsec-gre/ipsec_gre.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief Add / del ipsec gre tunnel request @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request diff --git a/src/vnet/ipsec/ipsec.api b/src/vnet/ipsec/ipsec.api index 4e283b6069e..14d6c187503 100644 --- a/src/vnet/ipsec/ipsec.api +++ b/src/vnet/ipsec/ipsec.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief IPsec: Add/delete Security Policy Database @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request diff --git a/src/vnet/l2/l2.api b/src/vnet/l2/l2.api index ac923de4032..18383652827 100644 --- a/src/vnet/l2/l2.api +++ b/src/vnet/l2/l2.api @@ -14,6 +14,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief Reply to l2_xconnect_dump @param context - sender context which was passed in the request @param rx_sw_if_index - Receive interface index diff --git a/src/vnet/l2tp/l2tp.api b/src/vnet/l2tp/l2tp.api index 4587a8076ec..1ccf71b89a7 100644 --- a/src/vnet/l2tp/l2tp.api +++ b/src/vnet/l2tp/l2tp.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief l2tpv3 tunnel interface create request @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request diff --git a/src/vnet/lisp-cp/lisp.api b/src/vnet/lisp-cp/lisp.api index 8bed71b3bf7..7ec17d99799 100644 --- a/src/vnet/lisp-cp/lisp.api +++ b/src/vnet/lisp-cp/lisp.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + typeonly manual_print manual_endian define local_locator { u32 sw_if_index; diff --git a/src/vnet/lisp-cp/one.api b/src/vnet/lisp-cp/one.api index 39f2802da29..6cb2ef3a620 100644 --- a/src/vnet/lisp-cp/one.api +++ b/src/vnet/lisp-cp/one.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + typeonly manual_print manual_endian define one_local_locator { u32 sw_if_index; diff --git a/src/vnet/lisp-gpe/lisp_gpe.api b/src/vnet/lisp-gpe/lisp_gpe.api index 07ee3d7bf77..626038fc234 100644 --- a/src/vnet/lisp-gpe/lisp_gpe.api +++ b/src/vnet/lisp-gpe/lisp_gpe.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief GPE locator structure @param is_ip4 - whether addr is IPv4 or v6 @param weight - locator weight diff --git a/src/vnet/lldp/lldp.api b/src/vnet/lldp/lldp.api index 02fe32ca742..8117ed41b9c 100644 --- a/src/vnet/lldp/lldp.api +++ b/src/vnet/lldp/lldp.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief configure global parameter for LLDP @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request diff --git a/src/vnet/map/map.api b/src/vnet/map/map.api index 4b142c8fb4a..14f10e73342 100644 --- a/src/vnet/map/map.api +++ b/src/vnet/map/map.api @@ -13,6 +13,7 @@ * limitations under the License. */ +vl_api_version 1.0.0 /** \brief Add MAP domains @param client_index - opaque cookie to identify the sender diff --git a/src/vnet/mpls/mpls.api b/src/vnet/mpls/mpls.api index 36488d0c7b9..3c817db1306 100644 --- a/src/vnet/mpls/mpls.api +++ b/src/vnet/mpls/mpls.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief Bind/Unbind an MPLS local label to an IP prefix. i.e. create a per-prefix label entry. @param client_index - opaque cookie to identify the sender diff --git a/src/vnet/policer/policer.api b/src/vnet/policer/policer.api index 26c69032907..13024ddee15 100644 --- a/src/vnet/policer/policer.api +++ b/src/vnet/policer/policer.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief Add/del policer @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request diff --git a/src/vnet/session/session.api b/src/vnet/session/session.api index 30d2ae96bff..992a0638698 100644 --- a/src/vnet/session/session.api +++ b/src/vnet/session/session.api @@ -12,7 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + +vl_api_version 1.0.0 + /** \brief client->vpp, attach application to session layer @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request diff --git a/src/vnet/span/span.api b/src/vnet/span/span.api index 03cd60ecf24..a0f29153d27 100644 --- a/src/vnet/span/span.api +++ b/src/vnet/span/span.api @@ -14,6 +14,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief Enable/Disable span to mirror traffic from one interface to another @param client_index - opaque cookie to identify the sender @param context - sender context which was passed in the request diff --git a/src/vnet/srv6/sr.api b/src/vnet/srv6/sr.api index 9e9007418b5..2c72cc55ed2 100644 --- a/src/vnet/srv6/sr.api +++ b/src/vnet/srv6/sr.api @@ -1,3 +1,4 @@ +/* Hey Emacs use -*- mode: C -*- */ /* * Copyright (c) 2015-2016 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,6 +14,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + /** \brief IPv6 SR LocalSID add/del request @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request @@ -20,7 +23,8 @@ @param localsid_addr IPv6 address of the localsid @param end_psp Boolean of whether decapsulation is allowed in this function @param behavior Type of behavior (function) for this localsid - @param sw_if_index Only for L2/L3 xconnect. OIF. In VRF variant the fib_table. + @param sw_if_index Only for L2/L3 xconnect. OIF. In VRF variant the + fib_table. @param vlan_index Only for L2 xconnect. Outgoing VLAN tag. @param fib_table FIB table in which we should install the localsid entry @param nh_addr Next Hop IPv4/IPv6 address. Only for L2/L3 xconnect. @@ -161,7 +165,7 @@ autoreply define sr_steering_add_del };*/ /* - * fd.io coding-style-patch-verification: ON + * fd.io coding-style-patch-verification: OFF * Local Variables: * eval: (c-set-style "gnu") * End: diff --git a/src/vnet/unix/tap.api b/src/vnet/unix/tap.api index d9fba37134e..6b1b2b4f0fc 100644 --- a/src/vnet/unix/tap.api +++ b/src/vnet/unix/tap.api @@ -19,6 +19,8 @@ the Linux kernel TAP device driver */ +vl_api_version 1.0.0 + /** \brief Initialize a new tap interface with the given paramters @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request diff --git a/src/vnet/vxlan-gpe/vxlan_gpe.api b/src/vnet/vxlan-gpe/vxlan_gpe.api index 04082d69c65..6391148f687 100644 --- a/src/vnet/vxlan-gpe/vxlan_gpe.api +++ b/src/vnet/vxlan-gpe/vxlan_gpe.api @@ -13,6 +13,8 @@ * limitations under the License. */ +vl_api_version 1.0.0 + define vxlan_gpe_add_del_tunnel { u32 client_index; diff --git a/src/vnet/vxlan/vxlan.api b/src/vnet/vxlan/vxlan.api index 6c331a58223..64850f0449f 100644 --- a/src/vnet/vxlan/vxlan.api +++ b/src/vnet/vxlan/vxlan.api @@ -13,7 +13,9 @@ * limitations under the License. */ - define vxlan_add_del_tunnel +vl_api_version 1.0.0 + +define vxlan_add_del_tunnel { u32 client_index; u32 context; |