DPDK usage discussions
 help / color / mirror / Atom feed
From: "Aisenur Yoldaş" <aisenur.yoldas@b-ulltech.com>
To: "" <users@dpdk.org>
Subject: rte_flow_type_integrity example for checksum correctness
Date: Thu, 8 Jun 2023 15:55:00 +0300 (TRT)	[thread overview]
Message-ID: <617016224.2280224.1686228900510.JavaMail.zimbra@b-ulltech.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1091 bytes --]

Hi,
I am developing a project to read packets from pcap file and procces them to 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 below:

struct rte_eth_conf port_conf = {
.rxmode = {
.mq_mode = RTE_ETH_MQ_RX_RSS,
.offloads =
RTE_ETH_TX_OFFLOAD_IPV4_CKSUM |
RTE_ETH_TX_OFFLOAD_UDP_CKSUM |
RTE_ETH_TX_OFFLOAD_TCP_CKSUM ,
},
.txmode = {
.mq_mode = RTE_ETH_MQ_TX_NONE,
.offloads =
RTE_ETH_TX_OFFLOAD_IPV4_CKSUM |
RTE_ETH_TX_OFFLOAD_UDP_CKSUM |
RTE_ETH_TX_OFFLOAD_TCP_CKSUM ,
},
.rx_adv_conf = {
.rss_conf = {
.rss_hf = RTE_ETH_RSS_IP |
RTE_ETH_RSS_TCP | RTE_ETH_RSS_UDP,
}
}
};
 
And for the correctness of checksums I want to use rte_flow pattern 

RTE_FLOW_ITEM_TYPE_INTEGRITY. But I could not find an example of it. Is there any example how to use this pattern
 
My card is Mellanox Technologies MT27710 Family [ConnectX-4 Lx] and I am using dpdk-23.03
 
Thanks,
Aisenur Yoldas



[-- Attachment #2.1: Type: text/html, Size: 1478 bytes --]

             reply	other threads:[~2023-06-08 12:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-08 12:55 Aisenur Yoldaş [this message]
2023-06-09 11:40 ` Gregory Etelson
2023-06-10 17:52   ` omer yamac
  -- strict thread matches above, loose matches on Subject: below --
2023-06-08 12:54 Aisenur Yoldaş

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=617016224.2280224.1686228900510.JavaMail.zimbra@b-ulltech.com \
    --to=aisenur.yoldas@b-ulltech.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).