api: pktio: add parser configuration
api: pktio: add parser configuration

Packet input parsing level configuration is added. An application
may express the maximum layer it is interested about.
Implementations may optimize packet input performance as parsing
can be stopped on the application required level. Implementations
are free to parse more layers than application requests.

Lazy parsing (e.g. in current odp-linux) does not work in practice.
The implementation cannot continue parsing after the application
has got access to packet data, since application may overwrite
some packet headers. Parse results must reflect the format of the
received packet.

Signed-off-by: Petri Savolainen <d528fd253b9aaf78fa72edbcc6249e82047f6ce6@linaro.org>
Reviewed-and-tested-by: Bill Fischofer <52f3c909d51cc5d355a68a403df6906b3c1a8f83@linaro.org>
Signed-off-by: Maxim Uvarov <db4d16e02ae2d7493db430203537da8b2e34f290@linaro.org>

dkrot/odp,dkrot/odp,dkrot/odp,dkrot/odp