On Mon, 13 Sep 2021 17:09:51 +0500
usamanadeem321 <usama.nad...@emumba.com> wrote:

>  
> +             if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_IPV4_CKSUM)
> +                     local_port_conf.rxmode.offloads |=
> +                      DEV_RX_OFFLOAD_IPV4_CKSUM;
> +             else {
> +                     rte_exit(EXIT_FAILURE,
> +                             "IPV4 Checksum offload not available. (port %u) 
> ",
> +                             portid);
> +             }
> +

Why not just do it in software if not available. The IPv4 checksum
is so cheap many operating systems just always do it in software.

Reply via email to