Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-1750

devices: skip checksum calculation if guest supports checksum offload

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • Devices
    • None

      Set VNET_HW_INTERFACE_FLAG_SUPPORTS_TX_L4_CKSUM_OFFLOAD for the interface to skip checksum calculation if guest supports checksum offload.

      This is needed because after interface_output checksum calculation, it turns off these flags

        b->flags &= ~VNET_BUFFER_F_OFFLOAD_TCP_CKSUM;

        b->flags &= ~VNET_BUFFER_F_OFFLOAD_UDP_CKSUM;

        b->flags &= ~VNET_BUFFER_F_OFFLOAD_IP_CKSUM;

      vhost_user_output needs them to set the descriptor header. Since in this case, vhost_user will tell the driver that it needs to compute the checksum, why both to let interface_output do the checksum.

            sluong steven luong
            sluong steven luong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: