From 48d32b43c534c9f52d37b047dbcbc30a8882b52a Mon Sep 17 00:00:00 2001 From: Matthew Smith Date: Thu, 2 Apr 2020 07:45:49 -0500 Subject: ipsec: provide stat index in sa details Type: improvement When IPsec SAs are dumped, include the index that can be used to find byte & packet counters for the SA in the stat segment. Removed the field total_data_size from the details since it was not being populated and put the stat index field in its place. Change-Id: If73efc230542a11944551b6e710b57b575450da3 Signed-off-by: Matthew Smith --- src/vnet/ipsec/ipsec.api | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/vnet/ipsec/ipsec.api') diff --git a/src/vnet/ipsec/ipsec.api b/src/vnet/ipsec/ipsec.api index 3f8913fe26e..dee9144dda1 100644 --- a/src/vnet/ipsec/ipsec.api +++ b/src/vnet/ipsec/ipsec.api @@ -14,7 +14,7 @@ * limitations under the License. */ -option version = "3.0.1"; +option version = "3.0.2"; import "vnet/ipsec/ipsec_types.api"; import "vnet/interface_types.api"; @@ -414,7 +414,7 @@ define ipsec_sa_dump { @param last_seq - highest sequence number received inbound @param last_seq_hi - high 32 bits of highest ESN received inbound @param replay_window - bit map of seq nums received relative to last_seq if using anti-replay - @param total_data_size - total bytes sent or received + @param stat_index - index for the SA in the stats segment @ /net/ipsec/sa @param udp_encap - 1 if UDP encap enabled, 0 otherwise */ define ipsec_sa_details { @@ -427,7 +427,7 @@ define ipsec_sa_details { u64 last_seq_inbound; u64 replay_window; - u64 total_data_size; + u32 stat_index; }; /** \brief Set new SA on IPsec interface -- cgit 1.2.3-korg