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_io.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/odp/api/packet_io.h b/include/odp/api/packet_io.h index 4712fc3..1b50c37 100644 --- a/include/odp/api/packet_io.h +++ b/include/odp/api/packet_io.h @@ -58,6 +58,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 +76,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.4.0 _______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
