Application can indicate which packet parsing results it is interested in (all or none).
Signed-off-by: Petri Savolainen <[email protected]> --- include/odp/api/packet_flags.h | 1 + include/odp/api/packet_io.h | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/include/odp/api/packet_flags.h b/include/odp/api/packet_flags.h index bfbcc94..ee5dd33 100644 --- a/include/odp/api/packet_flags.h +++ b/include/odp/api/packet_flags.h @@ -26,6 +26,7 @@ extern "C" { * @{ */ + /** * Check for packet errors * diff --git a/include/odp/api/packet_io.h b/include/odp/api/packet_io.h index 77c207e..4656204 100644 --- a/include/odp/api/packet_io.h +++ b/include/odp/api/packet_io.h @@ -18,6 +18,7 @@ extern "C" { #endif + /** @defgroup odp_packet_io ODP PACKET IO * Operations on a packet. * @{ @@ -58,6 +59,16 @@ enum odp_pktio_input_mode { }; /** + * Packet parsing mode + */ +enum odp_pktio_parse_mode { + /** Parse all protocols */ + ODP_PKTIN_PARSE_ALL = 0, + /** Parsing not needed */ + ODP_PKTIN_PARSE_NONE +}; + +/** * Packet IO parameters * * In minimum, user must select the input mode. Use 0 for defaults. Initialize @@ -66,6 +77,8 @@ enum odp_pktio_input_mode { typedef struct odp_pktio_param_t { /** Packet input mode */ enum odp_pktio_input_mode in_mode; + /** Packet parse mode */ + enum odp_pktio_parse_mode parse_mode; } odp_pktio_param_t; /** -- 2.3.5 _______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
