From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by dpdk.org (Postfix) with ESMTP id BA5601B4A1; Tue, 23 Oct 2018 12:54:16 +0200 (CEST) Received: by mail-wr1-f51.google.com with SMTP id t10-v6so1148774wrn.10; Tue, 23 Oct 2018 03:54:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=g7FfCJCFwR3UhyW7JV9H8i6zGZgzzBhcCHjPLVGVugc=; b=inJOvYOBaXLJ628LRKze/whvz6vxsrOvSrawrMVE6QWYCcOk/SZm9Y4u8AKB+VQqSw nwjiephuKQnLs1fZ8zrEwJg/Y3te19bGSRlT9i/po8tkxrWoxbtk1j2e+re4a46nHMWk U8AU+TsoDM1V4wg0QwxYo/tqVgQjmh1ch7/rogZkYSGFUlTOD85RUvd4KqWH57kLUlmr L4xfj/PuXvUH6a9rtkCl9eaoHFDSBXQ3UPqxmD3Q6GOM0uvWL69/ZKOHQlH5JWDUA1xS GlMkki8yK3j7RX/zv0zcNR0MuTEtXd8ZFvYN4WN7w9y4163t8WmWL8CFlBHpAIgAHbie FX9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=g7FfCJCFwR3UhyW7JV9H8i6zGZgzzBhcCHjPLVGVugc=; b=Tab3s2FQkj1/yvZS0Do0wiRlCXXi7UOhpLu0q6/dE4UnBeOWNT43DcHPKbQnuIQScy REH7MTgfx+ciB9dlenplKaTMCOfVuVtpU+ilAE4qdZ3vJdsjKIGHAKb4nGlmHCk/Cxza sgAOSVpoOL58ybJDWHcRRMBbnsfHXTA+Zbf1gvWUYHf1kM8W1yMYyKWejsBvnVxDqKd0 3I1+vI/v1Hc68sWWcHOdMoIDrD6wGhXAc4DzBcVCo2vf7IHPk8UGckGSQiFFq4d7DdjL mlAyqGJA9Rhvsyo2Xnu60s9DTJfVpux+fCRBW2dTyCY5moSgMeGQkOYNilgjBEib9sbf 2T3g== X-Gm-Message-State: AGRZ1gLWFypZUE1KcNcJfvGlZBSXiHou4m5Ymm5fgbXviwufGCJkYjMA fz/sdSAbixwbN5GSzdkSIvcRY7cK1oaOwxUyeic= X-Google-Smtp-Source: AJdET5dxJmXpyO8XVh0ynaiu2g1fHv0sZ58Y+dDtYtM4k09q62oYTRzVsH47+d3rThWY9jTGkke5v6QVA+CBAQfWxZY= X-Received: by 2002:adf:dcc4:: with SMTP id x4-v6mr13592280wrm.212.1540292056252; Tue, 23 Oct 2018 03:54:16 -0700 (PDT) MIME-Version: 1.0 References: <20181023090158.z5w3gtvdzax247w6@platinum> In-Reply-To: <20181023090158.z5w3gtvdzax247w6@platinum> From: Shyam Shrivastav Date: Tue, 23 Oct 2018 16:23:59 +0530 Message-ID: To: olivier.matz@6wind.com Cc: Ferruh Yigit , lidejun1@huawei.com, users , dev@dpdk.org, lichunhe@huawei.com, zhangxufeng4@huawei.com Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [dpdk-users] IPV4/IPV6 TCP/UDP Pseudo Header Checksum APIs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2018 10:54:17 -0000 These fixes/modifications should include the upper level APIs, rte_ipv4_udptcp_cksum and rte_ipv6_udptcp_cksum. Even for ipv4 following API is more/really useful if changed to take mbufs rte_ipv4_udptcp_cksum(const struct ipv4_hdr *ipv4_hdr, const void *l4_hdr) I can not use it in present form as it requires single contiguous l4 buffer, instead using rte_raw_cksum_mbuf.