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