::[snip]:: > Example of usage: > 1. check packets from all possible layers for integrity. > flow create integrity spec packet_ok = 1 mask packet_ok = 1 ..... > > 2. Check only packet with layer 4 (UDP / TCP) > flow create integrity spec l3_ok = 1, l4_ok = 1 mask l3_ok = 1 l4_ok = 1 > > Signed-off-by: Ori Kam > Acked-by: Ferruh Yigit Acked-by: Ajit Khaparde > --- > doc/guides/prog_guide/rte_flow.rst | 22 ++++++++++++ > doc/guides/rel_notes/release_21_05.rst | 5 +++ > lib/librte_ethdev/rte_flow.h | 50 ++++++++++++++++++++++++++ > 3 files changed, 77 insertions(+) > > diff --git a/doc/guides/prog_guide/rte_flow.rst b/doc/guides/prog_guide/rte_flow.rst > index e1b93ecedf..04b598390d 100644 > --- a/doc/guides/prog_guide/rte_flow.rst > +++ b/doc/guides/prog_guide/rte_flow.rst > @@ -1398,6 +1398,28 @@ Matches a eCPRI header. > - ``hdr``: eCPRI header definition (``rte_ecpri.h``). > - Default ``mask`` matches nothing, for all eCPRI messages. > > +Item: ``PACKET_INTEGRITY_CHECKS`` > +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > + > +Matches packet integrity. > +For some devices application needs to enable integration checks in HW > +before using this item. > + > +- ``level``: the encapsulation level that should be checked: > + - ``level == 0`` means the default PMD mode (can be inner most / outermost). s/inner most/ innermost