From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 76710A0524; Mon, 19 Apr 2021 16:09:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5416241332; Mon, 19 Apr 2021 16:09:21 +0200 (CEST) Received: from mail-qv1-f47.google.com (mail-qv1-f47.google.com [209.85.219.47]) by mails.dpdk.org (Postfix) with ESMTP id 468FF412E6 for ; Mon, 19 Apr 2021 16:09:20 +0200 (CEST) Received: by mail-qv1-f47.google.com with SMTP id i9so16736868qvo.3 for ; Mon, 19 Apr 2021 07:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3+DIx9t+nPj5+zUyebi3oF0e5xntQWlYQ/1RDxrX0HE=; b=QCBGyxAZX4NB0dClSpsI6EBB4Ufpd0PIi/ToJU0iBv7IGW86SqlAwImYsak1pjZGx2 uTO3/oXd83zQ7ciWhjnRtvCWNCltFRf97F3FSMumCAFEBCwcNRXFK+PjP6yimSLo+emT nZfnd15NxOtaupIcfUBB3erPW+JzDRXT+/UqM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3+DIx9t+nPj5+zUyebi3oF0e5xntQWlYQ/1RDxrX0HE=; b=rQN2ATOPyVXrGPNjs7Iuqdy+ZafPcTKqlb1jexRr9ndPqpCy7szJCVec+z0Lbh3/oJ IeCmOfg3U7AHMAlwjuANpLJKrIn+X4WD9c2U4B6YuwebtEJbszjOl9D9ciwE+2mLywgi WO4KpKexAvuXAyfdCGzyJHbBEJuXHtXljM3kh9UHXqqeExjUygxvHcFNoT3qp4tU9Au+ HB6J2E3AlAD1mYskqI32iQf98n+ugtZwS1jfJc0537jxdbO3C1Dy7gR4knM+ysUGDCQz wqQJf56PuzYGafy/wJ/BG9ZnbN27uIZAtHvHUch+dLcGIti9rh0tfiIiJvvVx6/a6vN5 yO/g== X-Gm-Message-State: AOAM532UjRmgLiZe8R6lZFSr+EpsLj8zkpHov/ncr5wTXemcFBcaV2YT gdkl0oiqHMSAzKzTCR2+xJa+/klk5uGon022SMiAzyWtS1NdxQ== X-Google-Smtp-Source: ABdhPJwYBXxELwpzzSHhyzWA+a9ZECL5Wze7x4UJk+N70chirWMUD3qEaQB4gXiLlMJxfOq79Dsifk5Wc6xiHjGc/Gs= X-Received: by 2002:a0c:9e0f:: with SMTP id p15mr21614487qve.33.1618841359614; Mon, 19 Apr 2021 07:09:19 -0700 (PDT) MIME-Version: 1.0 References: <20210419124431.21826-1-getelson@nvidia.com> <20210419124431.21826-2-getelson@nvidia.com> In-Reply-To: <20210419124431.21826-2-getelson@nvidia.com> From: Ajit Khaparde Date: Mon, 19 Apr 2021 07:09:03 -0700 Message-ID: To: Gregory Etelson Cc: Ori Kam , Andrew Rybchenko , dpdk-dev , Ferruh Yigit , Jerin Jacob Kollanukkaran , Jerin Jacob , Olivier Matz , Thomas Monjalon , Slava Ovsiienko , Matan Azrad , Raslan Darawsheh Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000034bf9905c053e03a" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH v8 1/2] ethdev: add packet integrity checks X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" --00000000000034bf9905c053e03a Content-Type: text/plain; charset="UTF-8" ::[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 --00000000000034bf9905c053e03a--