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 EEAC642C5E for ; Thu, 8 Jun 2023 14:54:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6A752406B5; Thu, 8 Jun 2023 14:54:53 +0200 (CEST) Received: from outbound11.uzmanposta.com (outbound11.uzmanposta.com [188.119.51.230]) by mails.dpdk.org (Postfix) with ESMTP id 4F95940042 for ; Thu, 8 Jun 2023 14:54:52 +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=m60wsKOQS9uTJO +3E+Xq/KbPEZBmyASTYWzBbGkPha4=; b=wIGVhwPPTcHqvPT+/HIwi0g9NqeTZE W1Kehf+0EG26h512FCHsk4A6gGmIuWk1su7Z5mmdLqYCLetBm2nTXBpIyfZL4MQv 1vXwuS8nxQpGNMz9FvMF6XqvKW1qvdaLBABGJGIc6W71Zc1HRd7vnYONLNaY8nzg PKSAUunFrBYXU= X-MXLAYER-out-id: 0b7bde1d-b8cd-4169-9156-37908d526eca Received: from pub01.uzmanposta.com (pub01 [10.60.81.162]) by outbound11.uzmanposta.com (Postfix) with ESMTP id 4QcPLg2CQ2zllxj for ; Thu, 8 Jun 2023 15:54:50 +0300 (+03) Date: Thu, 8 Jun 2023 15:54:50 +0300 (TRT) From: Aisenur =?utf-8?Q?Yolda=C5=9F?= To: "" Message-ID: <177534029.2280126.1686228890353.JavaMail.zimbra@b-ulltech.com> Subject: =?utf-8?B?cnRlX2Zsb3dfdHlwZV9pbnRlZ3JpdHkgZXhhbXBsZSBmb3IgY2hlY2tzdW0gY29ycmVjdG5lc3M=?= MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_35a97d88-a990-4cae-aeb5-af94f12999fd" X-Originating-IP: [78.171.201.204] Thread-Index: DQsb3afbKep1J6zDef91OI0bcgXORA== 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 --=_35a97d88-a990-4cae-aeb5-af94f12999fd 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 --=_35a97d88-a990-4cae-aeb5-af94f12999fd Content-Type: multipart/related; boundary="=_2e099930-7ef5-4ea2-ba55-d407b3f91d5c" --=_2e099930-7ef5-4ea2-ba55-d407b3f91d5c 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
--=_2e099930-7ef5-4ea2-ba55-d407b3f91d5c-- --=_35a97d88-a990-4cae-aeb5-af94f12999fd--