From patchwork Wed Sep 6 13:00:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 111768 Delivered-To: patch@linaro.org Received: by 10.140.94.166 with SMTP id g35csp830718qge; Wed, 6 Sep 2017 06:01:47 -0700 (PDT) X-Google-Smtp-Source: ADKCNb6fBPauy4LGwCw/l1JTeZdQooZ8kiO94bIrKIGvHbyM61RtnKlFkVOMWahXymTjMIrbhqYI X-Received: by 10.129.39.6 with SMTP id n6mr2001878ywn.216.1504702907654; Wed, 06 Sep 2017 06:01:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504702907; cv=none; d=google.com; s=arc-20160816; b=B5PhYWY2en8QXcmp7PHxNfCvemHJt2h707weByBzXenEaU9sdzH9FNwMJfXeyqndrj Hg2yHYEXFHkh/GB5n0Q3TD2WfFzqpP82K+ykMQtQo1sm2LbNglbqx6XhAAChx0wCgP/5 RCKRm1ysjdS93ZeTMv0dJKBRcupu37+jAKFZCILIDlOxsuZKgWnaCaG4k9HZUl+YRTLf dEHOB4laR9KQrqNDKzxMOTfnEnocAfqVmPsKko0dYizTFOqQIuTEotNJu2S/CISi9WQu cXiijQOJQqPDxBBYvdeD5DANmQTcBilDJm6QZ45yEki8+aDdlzKnkuha2W8yc1m9OMOE qNhg== 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:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=Ww65+UoBe1GvSBbto/AeG9P2qZ+j63Jj75zx10vJ2T8=; b=AV89Psf3L+LG6NzzbLDPH0p2d2YsInrN4XQAZ6TOr2VCkspN4adenCBuH/r7h1X7/3 2i/qBJaz0px33hBL6bF/aplhNUDV0iFknQngI78pPPk9vdkT+/5hryMNCPgQYJBUDohr VH5zc4iKzuGgIKGuvLrgTYkiqaqyvKII/oiUsqjCdgWu1ywS+cjrRxn0cww+T/Q6fInB Jjf5MswIlttXBJN638j9NM/OlPRfvZTjGM6+0wtTypWgHdFh2Df36eCwLJ97cejuy4gg 3tW4pR1PdUtfJjmhkw0jr+N9O61aUA3LcjSVfGrweK5F2RIYy4J/Szyev+X64JZsx2qQ bSdQ== 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=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t7si679983qtd.280.2017.09.06.06.01.47; Wed, 06 Sep 2017 06:01:47 -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=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 4B41E64476; Wed, 6 Sep 2017 13:01:47 +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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 2FC5262D20; Wed, 6 Sep 2017 13:00:36 +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 D30DF61E19; Wed, 6 Sep 2017 13:00:24 +0000 (UTC) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by lists.linaro.org (Postfix) with ESMTPS id E19F060826 for ; Wed, 6 Sep 2017 13:00:18 +0000 (UTC) Received: from mxback4o.mail.yandex.net (mxback4o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1e]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 90C7640844E9 for ; Wed, 6 Sep 2017 16:00:17 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback4o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id tkzreio6WJ-0H2itvuO; Wed, 06 Sep 2017 16:00:17 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id rJPyfxy80y-0GougSkx; Wed, 06 Sep 2017 16:00:16 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Wed, 6 Sep 2017 16:00:04 +0300 Message-Id: <1504702806-13800-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1504702806-13800-1-git-send-email-odpbot@yandex.ru> References: <1504702806-13800-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 167 Subject: [lng-odp] [PATCH API-NEXT v1 1/3] api: packet_io: refine packet format on output 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" From: Petri Savolainen Define explicitly that (by default) packet output does not need any extra metadata to be set. Also (Ethernet) padding and CRC are added by default. Signed-off-by: Petri Savolainen --- /** Email created from pull request 167 (psavol:next-pkt-checksum) ** https://github.com/Linaro/odp/pull/167 ** Patch: https://github.com/Linaro/odp/pull/167.patch ** Base sha: 4eae04e80a634c17ac276bb06bce468cbe28cde0 ** Merge commit sha: fb1526ce83d639bbbd28205b31145e0e15153508 **/ include/odp/api/spec/packet_io.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/odp/api/spec/packet_io.h b/include/odp/api/spec/packet_io.h index d42cebf0..6040a831 100644 --- a/include/odp/api/spec/packet_io.h +++ b/include/odp/api/spec/packet_io.h @@ -889,6 +889,11 @@ uint64_t odp_pktin_wait_time(uint64_t nsec); * is less than 'num', the remaining packets at the end of packets[] array * are not consumed, and the caller has to take care of them. * + * Entire packet data is sent out (odp_packet_len() bytes of data, starting from + * odp_packet_data()). All other packet metadata is ignored unless otherwise + * specified e.g. for protocol offload purposes. Link protocol specific frame + * checksum and padding are added to frames before transmission. + * * @param queue Packet output queue handle for sending packets * @param packets[] Array of packets to send * @param num Number of packets to send