Re: [dpdk-dev] [PATCH v8 5/5] examples/l3fwd-power: support virtio/vhost
From: Ferruh Yigit <hidden>
Date: 2021-10-29 19:09:32
From: Ferruh Yigit <hidden>
Date: 2021-10-29 19:09:32
On 10/25/2021 3:47 PM, Miao Li wrote:
- /* this is checked in H/W */
+ /* if this is not checked in H/W, check it. */
+ if ((port_conf.rxmode.offloads & DEV_RX_OFFLOAD_IPV4_CKSUM) == 0) {s/DEV_RX_OFFLOAD_IPV4_CKSUM/RTE_ETH_RX_OFFLOAD_IPV4_CKSUM/
+ uint16_t actual_cksum, expected_cksum; + actual_cksum = pkt->hdr_checksum; + pkt->hdr_checksum = 0; + expected_cksum = rte_ipv4_cksum(pkt); + if (actual_cksum != expected_cksum) + return -2; + } /* * 3. The IP version number must be 4. If the version number is not 4@@ -2652,6 +2660,11 @@ main(int argc, char **argv) local_port_conf.rx_adv_conf.rss_conf.rss_hf); } + if (local_port_conf.rx_adv_conf.rss_conf.rss_hf == 0) + local_port_conf.rxmode.mq_mode = ETH_MQ_RX_NONE;
s/ETH_MQ_RX_NONE/RTE_ETH_MQ_RX_NONE/ Both will be updated in next-net