From patchwork Wed May 31 14:40:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bogdan Pricope X-Patchwork-Id: 100789 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp356267qge; Wed, 31 May 2017 07:41:26 -0700 (PDT) X-Received: by 10.200.0.136 with SMTP id c8mr5424013qtg.28.1496241686154; Wed, 31 May 2017 07:41:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496241686; cv=none; d=google.com; s=arc-20160816; b=unoC5+riPBUboWrf3YdLRVc6mXLk0qn/AiuXcEThtYZL7AxZ9mKB+Uw3YI3OvTdpo2 ILSgvtpA4jq6KPEaWz3d4eANd4m2ICvc/9egxn/KBdS6qPcw6/N/jGOWRzJUDCMj2OHQ H2JuzON2oJrFOMYlwrPJN0177WjPoJNB0AVUXfW2BBO45qUps5EeW9kWQUi84CK4fl2T IaBb0gV5JhMaV8Vc4ofvs/lR3ThhhX6pIFmv9P69ZTg+/t6hJF8+Z+0aHambyT1/rJbE BxUY/Nl1fwJIv+TaCFc6UmoC9PvWL3jifUUx7q2CBLgP9dygBmLG/EhXSYGaiLyTME8V epAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:message-id:date:to:from :delivered-to:arc-authentication-results; bh=6ZW5U28ssEXPsnA5G1Ab2iU+x3zRq/vul3JyBPMGZSo=; b=OEZ41uBtykX/wzb2UZqsrtK7TjK3hitLVQXIRpfjKL50sVA09jNzrNnXUP+45v6UG+ 5zr8eafYiZf0UVkYHqu1b+3xcjO70fsWHSIfyDNeumi1o4UcZa5xxsSuRlKzMlrhP9Nu Jk/6U4mk8nu4bipp+bZSvg282sr+R85bFxWeg86yVZLLKdBx+P/kovSpWZoQRWFjxGDD FWPdqGpWpseO/9u3BQOZwe1gx98IT6dfEljWxd6nJinle3ec583gTu1xo1tMTcnEl/pz xrnxkZXijvVuAGfXOFttgDBxfvf2HI+eKboy9m/AAZGjd6Z5Ui8M9f1nBcrXH2vSl8cR ysAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id h45si16555347qta.212.2017.05.31.07.41.25; Wed, 31 May 2017 07:41:26 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D175760CD2; Wed, 31 May 2017 14:41:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id B721F6069B; Wed, 31 May 2017 14:41:21 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 855A1606B6; Wed, 31 May 2017 14:41:13 +0000 (UTC) Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by lists.linaro.org (Postfix) with ESMTPS id 3643F60CD1 for ; Wed, 31 May 2017 14:41:05 +0000 (UTC) Received: by mail-wm0-f42.google.com with SMTP id 7so121384211wmo.1 for ; Wed, 31 May 2017 07:41:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6ZW5U28ssEXPsnA5G1Ab2iU+x3zRq/vul3JyBPMGZSo=; b=eUmsOYF78SCDSk2L8r4VZuVDYTFy8KC/RnRGiZ/gkj9lr8XCqQJqa+IxbnYjECG7dU y1QyHh52+eDjItIXDUPMNdGE63R9W5WtfG9jnk+k8L3+Mes6XQlDwHl8baiPAbXZyVLz B9/MF9zF98DyULDfF4lQ5o0GEmeDDqe1lCjT2nG3Upewiqhobdp32Bh3is6agPALRIsI IydUTvNUfB06AwYTqJ6CrgiT2M1NGIzKcCPyOykpdj//76gn0xqIdIxoKSjN8CFCrUls tZbPbJyfBkYzyUcHyjbVQM8X2Zv85kvDZsm1ubotdF2E1O+6XAkkRsi/3A6M1Hy6AZ4R UrZg== X-Gm-Message-State: AODbwcDWTm6p1OlgckuW3peaYEevC6Jwi0yOgym+fSo13XUy8HlQ0BKX M57H5N6vBg/5LwfH3yhOdAsx X-Received: by 10.28.218.3 with SMTP id r3mr5464743wmg.120.1496241663987; Wed, 31 May 2017 07:41:03 -0700 (PDT) Received: from netbricks-team.enea.se ([193.202.22.66]) by smtp.gmail.com with ESMTPSA id e23sm22483032wre.54.2017.05.31.07.41.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 May 2017 07:41:03 -0700 (PDT) From: Bogdan Pricope To: lng-odp@lists.linaro.org Date: Wed, 31 May 2017 17:40:54 +0300 Message-Id: <1496241660-27492-1-git-send-email-bogdan.pricope@linaro.org> X-Mailer: git-send-email 1.9.1 Subject: [lng-odp] [PATCH 0/6] dpdk pktio: enable hardware checksum support X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Add HW checksum calculation/validation support for dpdk pktio. No UDP/TCP HW checksum calculation/validation support for: - IPv4 fragments - IPv6 packets with extension headers (including fragments) Bogdan Pricope (6): Initialize pktio configuration structure dpdk: retrieve offload capabilities dpdk: enable per pktio RX IP/UDP/TCP checksum offload dpdk: RX - process checksum validation offload flags dpdk: TX - set checksum calculation offload flags examples: generator: update odp_generator to use HW checksum capabilities example/generator/odp_generator.c | 107 ++++++++++++++--- platform/linux-generic/odp_packet_io.c | 2 + platform/linux-generic/pktio/dpdk.c | 203 ++++++++++++++++++++++++++++++++- 3 files changed, 293 insertions(+), 19 deletions(-) -- 1.9.1