From patchwork Mon Feb 17 12:14:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Wallen X-Patchwork-Id: 24760 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CC89C202B2 for ; Mon, 17 Feb 2014 12:15:29 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id c9sf29813555qcz.9 for ; Mon, 17 Feb 2014 04:15:29 -0800 (PST) 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:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=7XDyB3QggiVjcmyIw6ZJ3/IPKPV71TjbNYPeMzcFt+g=; b=Q6pjVlMqN8Q3k/dC7fpzMVXs0s2q4wnwJfuxT/B+fLD3gFPPMc3viU8/iYaSyqF2oJ gBUYL7VsQD5Z5zluihedkji509dAnghErd2O9nLU6lBDfQrDM2QyQQUzZ5/Xz8ZHbEV7 GxVYz3BlF9kwMB6IGYJUkim7dBlkf+ZHpfZbatcHNIBx5F6zUoeeLllEm/iTRHz8cZlQ LSbJMprfkLZNh9E4+b0Mfh0Uwurg/2LSVh+eKVmoprZYNPqZExSgY9LByItTknq/5SB0 MAiXb9Z16NeQuomBOOQi49qS8+8TPXU4927/dArFGCUA2+hq8n+KbRJ08N2K5lOLlQpD yzVw== X-Gm-Message-State: ALoCoQkIm/wxxJYmRwN0RZensPolnY5hXfR1jEkL2BuDinoCDpzAlXPbP79nOXFM2Pjs0yUTx0C2 X-Received: by 10.236.13.36 with SMTP id a24mr9220836yha.50.1392639329008; Mon, 17 Feb 2014 04:15:29 -0800 (PST) MIME-Version: 1.0 X-BeenThere: lng-odp@linaro.org Received: by 10.140.96.138 with SMTP id k10ls864092qge.66.gmail; Mon, 17 Feb 2014 04:15:28 -0800 (PST) X-Received: by 10.140.34.231 with SMTP id l94mr1578122qgl.85.1392639328745; Mon, 17 Feb 2014 04:15:28 -0800 (PST) Received: from mail-qa0-f43.google.com (mail-qa0-f43.google.com [209.85.216.43]) by mx.google.com with ESMTPS id v9si7894915qgd.163.2014.02.17.04.15.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Feb 2014 04:15:28 -0800 (PST) Received-SPF: neutral (google.com: 209.85.216.43 is neither permitted nor denied by best guess record for domain of carl.wallen@linaro.org) client-ip=209.85.216.43; Received: by mail-qa0-f43.google.com with SMTP id o15so21511038qap.2 for ; Mon, 17 Feb 2014 04:15:28 -0800 (PST) X-Received: by 10.140.21.179 with SMTP id 48mr1736758qgl.78.1392639328564; Mon, 17 Feb 2014 04:15:28 -0800 (PST) Received: from mcint01.emea.nsn-net.net (ec2-23-23-178-99.compute-1.amazonaws.com. [23.23.178.99]) by mx.google.com with ESMTPSA id 3sm44637049qan.15.2014.02.17.04.15.27 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Feb 2014 04:15:28 -0800 (PST) From: Carl Wallen To: lng-odp@linaro.org Cc: Carl Wallen Subject: [lng-odp] [PATCH 1/7] ODP helper: Add Ethernet length defines Date: Mon, 17 Feb 2014 14:14:35 +0200 Message-Id: <1392639281-2753-2-git-send-email-carl.wallen@linaro.org> X-Mailer: git-send-email 1.8.5.3 In-Reply-To: <1392639281-2753-1-git-send-email-carl.wallen@linaro.org> References: <1392639281-2753-1-git-send-email-carl.wallen@linaro.org> X-Original-Sender: carl.wallen@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.216.43 is neither permitted nor denied by best guess record for domain of carl.wallen@linaro.org) smtp.mail=carl.wallen@linaro.org Precedence: list Mailing-list: list lng-odp@linaro.org; contact lng-odp+owners@linaro.org List-ID: X-Google-Group-Id: 474323889996 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Carl Wallen --- include/helper/odp_eth.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/helper/odp_eth.h b/include/helper/odp_eth.h index 834814f..d1cb33b 100644 --- a/include/helper/odp_eth.h +++ b/include/helper/odp_eth.h @@ -23,10 +23,13 @@ extern "C" { #include #include -#define ODP_ETHADDR_LEN 6 -#define ODP_ETHHDR_LEN 14 -#define ODP_VLANHDR_LEN 4 -#define ODP_ETH_LEN_MIN 64 /* incl 4B CRC/FCS */ +#define ODP_ETHADDR_LEN 6 +#define ODP_ETHHDR_LEN 14 +#define ODP_VLANHDR_LEN 4 +#define ODP_ETH_LEN_MIN 60 /* exclude 4B CRC/FCS */ +#define ODP_ETH_LEN_MIN_CRC 64 /* include 4B CRC/FCS */ +#define ODP_ETH_LEN_MAX 1514 /* exclude 4B CRC/FCS */ +#define ODP_ETH_LEN_MAX_CRC 1518 /* include 4B CRC/FCS */ /** * Ethernet MAC address