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 21F1442C5E for ; Thu, 8 Jun 2023 14:55:05 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 139DF410D3; Thu, 8 Jun 2023 14:55:05 +0200 (CEST) Received: from outbound09.uzmanposta.com (outbound09.uzmanposta.com [159.146.44.138]) by mails.dpdk.org (Postfix) with ESMTP id 3E1BD40042 for ; Thu, 8 Jun 2023 14:55:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=b-ulltech.com; h=from:subject:message-id:date:to; s=default; bh=5LtY5M/B5RjpBl uHhnLY4Ja6f7PfL/JvZ3ylU+z0xq0=; b=0Q2gQxc4eyFcZYaRcXFAtlIlnOKZHd dTqpWHkkmrRMH2/8Ikul3i+tUnhwK0DR3EmikofhJ4dnbZ2zspcLxpfShOvS1XUX vau2RRlpYRPPFQ//qF27KeCWSURg3LHS4xQJqHKota4IzaSQCXKpwAlbdlpytLAR viQWlPzd7c1Mw= X-MXLAYER-out-id: f3679a65-cb4a-4fa2-ac34-4a45666c91e3 Received: from pub01.uzmanposta.com (pub01 [10.60.81.162]) by outbound09.uzmanposta.com (Postfix) with ESMTP id 4QcPLs3Qy9zrvHd for ; Thu, 8 Jun 2023 15:55:01 +0300 (+03) Date: Thu, 8 Jun 2023 15:55:00 +0300 (TRT) From: Aisenur =?utf-8?Q?Yolda=C5=9F?= To: "" Message-ID: <617016224.2280224.1686228900510.JavaMail.zimbra@b-ulltech.com> Subject: =?utf-8?B?cnRlX2Zsb3dfdHlwZV9pbnRlZ3JpdHkgZXhhbXBsZSBmb3IgY2hlY2tzdW0gY29ycmVjdG5lc3M=?= MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_8e6c66e3-11af-4e10-aa81-6568fe1acc6a" X-Originating-IP: [78.171.201.204] Thread-Index: 3sfnqCNA7qWbPHr/4XXNPjxdHj+n2w== Thread-Topic: rte_flow_type_integrity example for checksum correctness X-Original-Sender: aisenur.yoldas@b-ulltech.com X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --=_8e6c66e3-11af-4e10-aa81-6568fe1acc6a Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, I am developing a project to read packets from pcap file and procces them t= o extract the corresponding payloads. In this project I want to offload the= checksum calculations. Also I only want packages with correct checksums to= reach the application layer . To do that I set port configuration like bel= ow: struct rte_eth_conf port_conf =3D { .rxmode =3D { .mq_mode =3D RTE_ETH_MQ_RX_RSS, .offloads =3D RTE_ETH_TX_OFFLOAD_IPV4_CKSUM | RTE_ETH_TX_OFFLOAD_UDP_CKSUM | RTE_ETH_TX_OFFLOAD_TCP_CKSUM , }, .txmode =3D { .mq_mode =3D RTE_ETH_MQ_TX_NONE, .offloads =3D RTE_ETH_TX_OFFLOAD_IPV4_CKSUM | RTE_ETH_TX_OFFLOAD_UDP_CKSUM | RTE_ETH_TX_OFFLOAD_TCP_CKSUM , }, .rx_adv_conf =3D { .rss_conf =3D { .rss_hf =3D RTE_ETH_RSS_IP | RTE_ETH_RSS_TCP | RTE_ETH_RSS_UDP, } } }; =C2=A0 And for the correctness of checksums I want to use rte_flow pattern=C2=A0 RTE_FLOW_ITEM_TYPE_INTEGRITY. But I could not find an example of it. Is the= re any example how to use this pattern =C2=A0 My card is Mellanox Technologies MT27710 Family [ConnectX-4 Lx] and I am us= ing dpdk-23.03 =C2=A0 Thanks, Aisenur Yoldas --=_8e6c66e3-11af-4e10-aa81-6568fe1acc6a Content-Type: multipart/related; boundary="=_6d81e5d1-69c8-482c-a112-fbd60780ed6c" --=_6d81e5d1-69c8-482c-a112-fbd60780ed6c Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi,
I am developing a project to read packets from pcap file and procces t= hem to extract the corresponding payloads. In this project I want to offloa= d the checksum calculations. Also I only want packages with correct checksu= ms to reach the application layer . To do that I set port configuration lik= e below:
struct rte_eth_conf port_conf =3D {
.rxmode =3D {
.mq_mode =3D RTE_ETH_MQ_RX_RSS,
.offloads =3D
RTE_ETH_TX_OFFLOAD_IPV4_CKSUM |
RTE_ETH_TX_OFFLOAD_UDP_CKSUM |
RTE_ETH_TX_OFFLOAD_TCP_CKSUM ,
},
.txmode =3D {
.mq_mode =3D RTE_ETH_MQ_TX_NONE,
.offloads =3D
RTE_ETH_TX_OFFLOAD_IPV4_CKSUM |
RTE_ETH_TX_OFFLOAD_UDP_CKSUM |
RTE_ETH_TX_OFFLOAD_TCP_CKSUM ,
},
.rx_adv_conf =3D {
.rss_conf =3D {
.rss_hf =3D RTE_ETH_RSS_IP |
RTE_ETH_RSS_TCP | RTE_ETH_RSS_UDP,
}
}
};
=C2=A0
And for the correctness of checksums I want to use rte_flow pattern=C2= =A0
RTE_FLOW_ITEM_TYPE_INTEGRITY. But I could not find an example of it. I= s there any example how to use this pattern
=C2=A0
My card is Mellanox Technologies MT27710 Family [ConnectX-4 Lx] and I = am using dpdk-23.03
=C2=A0
Thanks,
Aisenur Yoldas
--=_6d81e5d1-69c8-482c-a112-fbd60780ed6c-- --=_8e6c66e3-11af-4e10-aa81-6568fe1acc6a--