From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f54.google.com (mail-vk0-f54.google.com [209.85.213.54]) by dpdk.org (Postfix) with ESMTP id DB75CADCB for ; Thu, 23 Jun 2016 01:37:19 +0200 (CEST) Received: by mail-vk0-f54.google.com with SMTP id c2so53086954vkg.1 for ; Wed, 22 Jun 2016 16:37:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=J3zOKIa0rfal892h3O/wvfcXS52RQjRFlYtPblIWsmI=; b=GPeab3bj/TgkHjqlEwKpOQkUBvOlyNicGLKbWc0GweRRwU45ZE4ultMCPszXzLrdNK V4Q7JWsFXP0np2YPm43/MZt/te57uat/OFU7D/mNfYVI2B5JU8zufJJT0zf4/vp3EXqO Iv5FPutXScwZvJ7+x2aMZtlcD2rQxaK/IN3BRW7ayDanu3uwqpycBIqlNW8NsTRTseGL dIfw74MGEYn1cwitxiIAp8xb8+sug3hqEHgCez2oou6hXZQd8EKnGqvQqFZatl3zZTLD M1mx+BHyp6tatjzjaVc1+3PN6cZg5DlSE4GDl6g/WuhGz0LOTMv3Ai3cJEY58UrIhE+W HNzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=J3zOKIa0rfal892h3O/wvfcXS52RQjRFlYtPblIWsmI=; b=bSRT7wRtA4WRxU6llr2xNREPFLyPqmJ0Vqfhpf4mZzq1pD0ymSFL/JbhOhZSopX5x9 +dR+WIXd6Nwv/Z4D0nH+TauYsZrm6/0gVK1lrFt6bSELemxyzoO1jzC8ui6pfKQNOa47 0OPhN1OxiP7I7Vt5W5AxBlqiHwHc6upCTOMjeuKmPQkgpGOe8Dr6BFIj2Usw8kXALbVh Wz6EPqZPV66oHMQ7X8qYt+GAgK+Up2imsiLyRWXRBRSQfC1opvP0yJiTjWqMY0u0kDSf AlrAUgDWmhiQUQW1td+AX5ZUMcVo8KvArNAf/f60HqyaKek4drNZLbby1LzjUAkO6axQ vdpQ== X-Gm-Message-State: ALyK8tJetymSyTR8EByIZzqxeaHXE7ADsxcNdvuUjCfHmzNSNEzata42zjW23sPTDHUNsptcERsmtUy1hDZHnQ== X-Received: by 10.31.224.132 with SMTP id x126mr7533018vkg.39.1466638639128; Wed, 22 Jun 2016 16:37:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.37.183 with HTTP; Wed, 22 Jun 2016 16:37:18 -0700 (PDT) From: Cliff Burdick Date: Wed, 22 Jun 2016 16:37:18 -0700 Message-ID: To: users Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] TX UDP Checksum X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2016 23:37:20 -0000 Hi, I'm trying to figure out how to get the TX UDP checksum offloading working on my i40e by using the only example I can find in the csumonly.c file from testpmd. I have a ethernet + vlan header, followed by 20 bytes of IP, then UDP + 1000 bytes of my payload. The IP HCS is calculating correctly using rte_ipv4_cksum(). Here is what I'm currently doing while setting up the mbuf: pkt->l2_len = 18; pkt->l3_len = 20; pkt->ol_flags = (PKT_TX_UDP_CKSUM); customMsg *msg = rte_pktmbuf_mtod(pkt, customMsg *); ... Fill in IP headers and all UDP headers msg->udp.dgram_cksum = 0; msg->udp.dgram_cksum = rte_ipv4_phdr_cksum(&msg->ip, pkt->ol_flags); The UDP checksum reported by wireshark is incorrect. Am I on the right track for offloading this or is there something I'm missing? I'd ideally like to offload IP onto the card as well, but that was failing too. I was setting IP in the ol_flags and setting the checksum to 0 as per the example.