diff options
author | Matias Elo <matias.elo@nokia.com> | 2022-09-29 12:03:14 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-10-04 11:02:33 +0300 |
commit | 3eb6d1a8e879a85f0fb58707965e55cf48287109 (patch) | |
tree | 95adb62162bea4ceaccb3071a7737b9f62e238c1 /platform/linux-generic/odp_packet.c | |
parent | c93e0cfd212c0a3a36d3d22bd848c7146aad093d (diff) |
linux-gen: packet: inline odp_packet_cls_mark() implementation
Inline implementation of odp_packet_cls_mark() function.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-generic/odp_packet.c')
-rw-r--r-- | platform/linux-generic/odp_packet.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c index 775836b66..e120a79b4 100644 --- a/platform/linux-generic/odp_packet.c +++ b/platform/linux-generic/odp_packet.c @@ -65,7 +65,8 @@ const _odp_packet_inline_offset_t _odp_packet_inline ODP_ALIGNED_CACHE = { .timestamp = offsetof(odp_packet_hdr_t, timestamp), .input_flags = offsetof(odp_packet_hdr_t, p.input_flags), .flags = offsetof(odp_packet_hdr_t, p.flags), - .subtype = offsetof(odp_packet_hdr_t, subtype) + .subtype = offsetof(odp_packet_hdr_t, subtype), + .cls_mark = offsetof(odp_packet_hdr_t, cls_mark) }; @@ -2296,16 +2297,6 @@ odp_proto_l4_type_t odp_packet_l4_type(odp_packet_t pkt) return ODP_PROTO_L4_TYPE_NONE; } -uint64_t odp_packet_cls_mark(odp_packet_t pkt) -{ - odp_packet_hdr_t *pkt_hdr = packet_hdr(pkt); - - if (pkt_hdr->p.input_flags.cls_mark) - return pkt_hdr->cls_mark; - - return 0; -} - void odp_packet_ts_request(odp_packet_t pkt, int enable) { odp_packet_hdr_t *pkt_hdr = packet_hdr(pkt); |