<html><div>Hi,</div>
<div>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:</div>
<div>
<div>struct rte_eth_conf port_conf = {</div>
<div>.rxmode = {</div>
<div>.mq_mode = RTE_ETH_MQ_RX_RSS,</div>
<div>.offloads =</div>
<div>RTE_ETH_TX_OFFLOAD_IPV4_CKSUM |</div>
<div>RTE_ETH_TX_OFFLOAD_UDP_CKSUM |</div>
<div>RTE_ETH_TX_OFFLOAD_TCP_CKSUM ,</div>
<div>},</div>
<div>.txmode = {</div>
<div>.mq_mode = RTE_ETH_MQ_TX_NONE,</div>
<div>.offloads =</div>
<div>RTE_ETH_TX_OFFLOAD_IPV4_CKSUM |</div>
<div>RTE_ETH_TX_OFFLOAD_UDP_CKSUM |</div>
<div>RTE_ETH_TX_OFFLOAD_TCP_CKSUM ,</div>
<div>},</div>
<div>.rx_adv_conf = {</div>
<div>.rss_conf = {</div>
<div>.rss_hf = RTE_ETH_RSS_IP |</div>
<div>RTE_ETH_RSS_TCP | RTE_ETH_RSS_UDP,</div>
<div>}</div>
<div>}</div>
<div>};</div>
<div> </div>
<div>And for the correctness of checksums I want to use rte_flow pattern
<div>
<div>RTE_FLOW_ITEM_TYPE_INTEGRITY. But I could not find an example of it. Is there any example how to use this pattern</div>
<div> </div>
<div>My card is Mellanox Technologies MT27710 Family [ConnectX-4 Lx] and I am using dpdk-23.03</div>
<div> </div>
<div>Thanks,</div>
<div>Aisenur Yoldas</div>
</div>
</div>
</div></html>