DPDK usage discussions
 help / color / mirror / Atom feed
* rte_flow_type_integrity example for checksum correctness
@ 2023-06-08 12:55 Aisenur Yoldaş
  2023-06-09 11:40 ` Gregory Etelson
  0 siblings, 1 reply; 4+ messages in thread
From: Aisenur Yoldaş @ 2023-06-08 12:55 UTC (permalink / raw)
  To: users

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* rte_flow_type_integrity example for checksum correctness
@ 2023-06-08 12:54 Aisenur Yoldaş
  0 siblings, 0 replies; 4+ messages in thread
From: Aisenur Yoldaş @ 2023-06-08 12:54 UTC (permalink / raw)
  To: users

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-06-10 17:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-08 12:55 rte_flow_type_integrity example for checksum correctness Aisenur Yoldaş
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ş

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).