diff options
author | Satha Rao <skoteshwar@marvell.com> | 2021-07-16 06:56:31 -0400 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2021-07-21 11:02:15 +0300 |
commit | fbaef1a71312b0ff75b2af5fc5ce0199ef52cfa1 (patch) | |
tree | b9ae695d5899a55fdcab7bee7ab6fff12dd05cd2 /platform/linux-generic/odp_packet.c | |
parent | c059d439e892e24db16d1f34c387849f8c6af559 (diff) |
linux-gen: add implementation for Tx proto stats
New Tx protocol statistics are hardware specific, so added
stubs for linux generic platform.
Signed-off-by: Satha Rao <skoteshwar@marvell.com>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Diffstat (limited to 'platform/linux-generic/odp_packet.c')
-rw-r--r-- | platform/linux-generic/odp_packet.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c index 65b2210d8..0986056e6 100644 --- a/platform/linux-generic/odp_packet.c +++ b/platform/linux-generic/odp_packet.c @@ -18,6 +18,7 @@ #include <odp/api/plat/byteorder_inlines.h> #include <odp/api/packet_io.h> #include <odp/api/plat/pktio_inlines.h> +#include <odp/api/proto_stats.h> /* Inlined API functions */ #include <odp/api/plat/event_inlines.h> @@ -3106,3 +3107,16 @@ odp_packet_t odp_packet_reassemble(odp_pool_t pool_hdl, odp_packet_buf_t pkt_buf return packet_handle(pkt_hdr); } + +void odp_packet_proto_stats_request(odp_packet_t pkt, odp_packet_proto_stats_opt_t *opt) +{ + (void)pkt; + (void)opt; +} + +odp_proto_stats_t odp_packet_proto_stats(odp_packet_t pkt) +{ + (void)pkt; + + return ODP_PROTO_STATS_INVALID; +} |