From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by dpdk.org (Postfix) with ESMTP id 1CAADB0B3 for ; Wed, 14 May 2014 20:57:35 +0200 (CEST) Received: by mail-pb0-f53.google.com with SMTP id md12so2016030pbc.26 for ; Wed, 14 May 2014 11:57:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:user-agent:date:from:to:cc:subject :references:mime-version:content-type:content-disposition; bh=LJSi/646yq9XTYshyGsMn7XtLJCHyrIaCr+r3FdE3bw=; b=Du855rzIIzFp7eEWetJX9WZuOF1kMQPgeY1E8G+5JFPlULlMukf0DNQAkN5DaH6Z2k Jv/3ZqMmsnF0uXfcCePjOHdDdVTDw4XhLJ1201hQwJbycgqVpV1zgQRwKFZ5tGNVBJUA WNujKmU3Nbm9Rb5ZeCw0DZG5XP/UntzPdT73n8c7OdWdgZ7NG1AP9WXm4WxMhKUzVhr6 vfZYM3IOQhFRVbWIomZSP4T+/bYn110jI/5YFC5D3SDB7iod0aCUOTrnqTz8OqiisGf8 J95apTmD70lcYA/+PjndCw8YQC/ANYpfZUrHjWjGLxsNM4GAHe49xh4EPaxAfeSeO7v+ RJvg== X-Gm-Message-State: ALoCoQmOBmmgmW/YuZ978WdHaIHtILAUhm1G/6zs4W9rJRsJXYEW9C9Wt6MxS8psSVG6NLkC9+dV X-Received: by 10.67.4.169 with SMTP id cf9mr6563077pad.45.1400093863358; Wed, 14 May 2014 11:57:43 -0700 (PDT) Received: from localhost (static-50-53-83-51.bvtn.or.frontiernet.net. [50.53.83.51]) by mx.google.com with ESMTPSA id su8sm4821540pbc.72.2014.05.14.11.57.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 May 2014 11:57:42 -0700 (PDT) Message-Id: <20140514185741.631426100@networkplumber.org> User-Agent: quilt/0.61-1 Date: Wed, 14 May 2014 11:55:28 -0700 From: Stephen Hemminger To: dev@dpdk.org References: <20140514185527.771828962@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Disposition: inline; filename=txq_flags_nochecksum.patch Cc: Stephen Hemminger Subject: [dpdk-dev] [PATCH 1/6] Subjec: ethdev: add macro to cover all checksum flags X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 May 2014 18:57:36 -0000 Convience to allow for devices that handle no checksum offload, but do do VLAN offload. Signed-off-by: Stephen Hemminger --- a/lib/librte_ether/rte_ethdev.h 2014-05-14 11:26:51.817382768 -0700 +++ b/lib/librte_ether/rte_ethdev.h 2014-05-14 11:26:51.817382768 -0700 @@ -510,9 +510,12 @@ struct rte_eth_rxconf { #define ETH_TXQ_FLAGS_NOXSUMSCTP 0x0200 /**< disable SCTP checksum offload */ #define ETH_TXQ_FLAGS_NOXSUMUDP 0x0400 /**< disable UDP checksum offload */ #define ETH_TXQ_FLAGS_NOXSUMTCP 0x0800 /**< disable TCP checksum offload */ -#define ETH_TXQ_FLAGS_NOOFFLOADS \ - (ETH_TXQ_FLAGS_NOVLANOFFL | ETH_TXQ_FLAGS_NOXSUMSCTP | \ - ETH_TXQ_FLAGS_NOXSUMUDP | ETH_TXQ_FLAGS_NOXSUMTCP) +#define ETH_TXQ_FLAGS_NOXSUMS (ETH_TXQ_FLAGS_NOXSUMSCTP | \ + ETH_TXQ_FLAGS_NOXSUMUDP | \ + ETH_TXQ_FLAGS_NOXSUMTCP) +#define ETH_TXQ_FLAGS_NOOFFLOADS (ETH_TXQ_FLAGS_NOVLANOFFL | \ + ETH_TXQ_FLAGS_NOXSUMS) + /** * A structure used to configure a TX ring of an Ethernet port. */