diff options
author | Matias Elo <matias.elo@nokia.com> | 2022-12-19 15:25:39 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2023-02-07 15:07:27 +0200 |
commit | 6b798ec547fda27329259f8c4f4695e4606a081f (patch) | |
tree | dc0475ef9d6bb7308bd11b21dba07667be810622 | |
parent | f198108bd0c6210b4dc49df4a3fe5429f526d028 (diff) |
api: pktio: remove deprecated in_unknown_protos statistics counter
Remove deprecated 'in_unknown_protos' field from odp_pktio_stats_t.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
-rw-r--r-- | include/odp/api/spec/packet_io_stats.h | 15 | ||||
-rw-r--r-- | platform/linux-generic/pktio/stats/packet_io_stats.c | 5 |
2 files changed, 0 insertions, 20 deletions
diff --git a/include/odp/api/spec/packet_io_stats.h b/include/odp/api/spec/packet_io_stats.h index c6b782d5a..156a3a95e 100644 --- a/include/odp/api/spec/packet_io_stats.h +++ b/include/odp/api/spec/packet_io_stats.h @@ -19,7 +19,6 @@ extern "C" { #endif -#include <odp/api/deprecated.h> #include <odp/api/queue_types.h> /** @addtogroup odp_packet_io @@ -68,20 +67,6 @@ typedef struct odp_pktio_stats_t { * configuration, packets with errors may be dropped or not. */ uint64_t in_errors; - /** - * For packet-oriented interfaces, the number of packets received via - * the interface which were discarded because of an unknown or - * unsupported protocol. For character-oriented or fixed-length - * interfaces that support protocol multiplexing the number of - * transmission units received via the interface which were discarded - * because of an unknown or unsupported protocol. For any interface - * that does not support protocol multiplexing, this counter will always - * be 0. See ifInUnknownProtos in RFC 2863, RFC 3635. - * - * @deprecated This counter has been deprecated. - */ - uint64_t ODP_DEPRECATE(in_unknown_protos); - /** Number of octets in successfully transmitted packets. In case of * Ethernet, packet size includes MAC header. */ uint64_t out_octets; diff --git a/platform/linux-generic/pktio/stats/packet_io_stats.c b/platform/linux-generic/pktio/stats/packet_io_stats.c index ac61c0343..280aca250 100644 --- a/platform/linux-generic/pktio/stats/packet_io_stats.c +++ b/platform/linux-generic/pktio/stats/packet_io_stats.c @@ -5,7 +5,6 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#include <odp/api/deprecated.h> #include <odp_packet_io_stats.h> #include <odp_ethtool_stats.h> #include <odp_sysfs_stats.h> @@ -77,10 +76,6 @@ int _odp_sock_stats_fd(pktio_entry_t *pktio_entry, pktio_entry->stats.in_discards; stats->in_errors = cur_stats.in_errors - pktio_entry->stats.in_errors; -#if ODP_DEPRECATED_API - stats->in_unknown_protos = cur_stats.in_unknown_protos - - pktio_entry->stats.in_unknown_protos; -#endif stats->out_octets = cur_stats.out_octets - pktio_entry->stats.out_octets; stats->out_packets = cur_stats.out_packets - |