Message ID | 1513008012-9231-10-git-send-email-odpbot@yandex.ru |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2980400qgn; Mon, 11 Dec 2017 08:08:20 -0800 (PST) X-Google-Smtp-Source: ACJfBouYdo4XdLzFW6EOiuo0RHZmBvjZihANDjiW42WkRdhQchD4trQ50WvXzacb8/2Wx8kGik4b X-Received: by 10.55.132.2 with SMTP id g2mr1218495qkd.151.1513008500322; Mon, 11 Dec 2017 08:08:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513008500; cv=none; d=google.com; s=arc-20160816; b=taJI4wiCuLbuutZyc9DEMK0MMVmUuhPoSgYqW0rsrHjTN1qrteGwVomxMFeuPytBcF CwVi6jQ+1LetO1cIqMQjbbcDPa1xXSWDgRFudNkYe4k7HVNLEyF0ZDCxuE3TyQ8QhWyE 5rUvoNMz6y7iDhDxjMGWLbr8r02l2UjcYGgP4wxylStp//BduHHP9cAnEYuZl7bMUUr2 qrpScDa/Q0ddrOV2irmy+ngQEJPym1chNbB3Cn14gM7KPPqSl8HAGlg31fG0NZknHjMD M2KL6SRm7rRyP3peei+ooyNBkuTkiownDd9qSaXZTU64NxP3OpchxGVY5ocbjqcZ1rn0 8UqA== 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 :content-transfer-encoding:mime-version:github-pr-num:references :in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=bslAxoXvHRboDfZ5Cl+a/Wj7aQXSYT8GfMmozP41h8Q=; b=qxsvSJxr9n0H8DUSFLlccqA+4BdC6BW47GA7Dc/ASczjlO0eZBIZcgklhDE44ewAug VSK67jyUe8z/SYUdvkYkimYTt53vuvkcbIKvYpD8lgB7inuzuH+2GHrS0/Q8XIt7Qb9I 5NphyQY5zGlZt+O2lSAOHlkvW2T3tEVK9Z10gpqLZsMFlorwhRnJ6eQ6MtL48YPmuXCN bXBE2JA2oByEkaWxmke7H1rOg4IvDpZlISbI77YFHkN4OVW3Uy/CJOdpRFu3c0WARlZS BgCMicDc4Gkkh7rO7+epbn5NEkMnjuTalW7U03+bqlVXhXN9Lm9SyWkppna751dZplQR WUXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: <lng-odp-bounces@lists.linaro.org> Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id y35si4597637qth.349.2017.12.11.08.08.20; Mon, 11 Dec 2017 08:08:20 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 0AF6860961; Mon, 11 Dec 2017 16:08:20 +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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED 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 178AD60991; Mon, 11 Dec 2017 16:01:12 +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 1C5366093D; Mon, 11 Dec 2017 16:00:36 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id EB5D160955 for <lng-odp@lists.linaro.org>; Mon, 11 Dec 2017 16:00:19 +0000 (UTC) Received: from mxback1j.mail.yandex.net (mxback1j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10a]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 781D31343D65 for <lng-odp@lists.linaro.org>; Mon, 11 Dec 2017 19:00:18 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback1j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 9TdYswwCwp-0IsCbdlQ; Mon, 11 Dec 2017 19:00:18 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id BifhbGdIDb-0HTSmloM; Mon, 11 Dec 2017 19:00:17 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot <odpbot@yandex.ru> To: lng-odp@lists.linaro.org Date: Mon, 11 Dec 2017 19:00:07 +0300 Message-Id: <1513008012-9231-10-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513008012-9231-1-git-send-email-odpbot@yandex.ru> References: <1513008012-9231-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 335 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [lng-odp] [PATCH API-NEXT v1 9/14] linux-gen: dpdk: cast addresses to uintptr_t rather than uint64_t X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" <lng-odp.lists.linaro.org> List-Unsubscribe: <https://lists.linaro.org/mailman/options/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=unsubscribe> List-Archive: <http://lists.linaro.org/pipermail/lng-odp/> List-Post: <mailto:lng-odp@lists.linaro.org> List-Help: <mailto:lng-odp-request@lists.linaro.org?subject=help> List-Subscribe: <https://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" <lng-odp-bounces@lists.linaro.org> |
Series |
None
|
expand
|
diff --git a/platform/linux-generic/pktio/dpdk.c b/platform/linux-generic/pktio/dpdk.c index db2a8b0f2..585ff462a 100644 --- a/platform/linux-generic/pktio/dpdk.c +++ b/platform/linux-generic/pktio/dpdk.c @@ -123,8 +123,8 @@ static unsigned cache_size(uint32_t num) static inline uint16_t mbuf_data_off(struct rte_mbuf *mbuf, odp_packet_hdr_t *pkt_hdr) { - return (uint64_t)pkt_hdr->buf_hdr.seg[0].data - - (uint64_t)mbuf->buf_addr; + return (uintptr_t)pkt_hdr->buf_hdr.seg[0].data - + (uintptr_t)mbuf->buf_addr; } /**