From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH 05/12] mbuf: add new Rx checksum mbuf flags Date: Thu, 21 Jul 2016 14:22:08 -0700 Message-ID: <20160721142208.0cf399e3@xeon-e3> References: <1469088510-7552-1-git-send-email-olivier.matz@6wind.com> <1469088510-7552-6-git-send-email-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, yuanhan.liu@linux.intel.com, konstantin.ananyev@intel.com, sugesh.chandran@intel.com, bruce.richardson@intel.com, jianfeng.tan@intel.com, helin.zhang@intel.com, adrien.mazarguil@6wind.com To: Olivier Matz Return-path: Received: from mail-pf0-f179.google.com (mail-pf0-f179.google.com [209.85.192.179]) by dpdk.org (Postfix) with ESMTP id 5040E5A08 for ; Thu, 21 Jul 2016 23:21:53 +0200 (CEST) Received: by mail-pf0-f179.google.com with SMTP id p64so33987612pfb.1 for ; Thu, 21 Jul 2016 14:21:53 -0700 (PDT) In-Reply-To: <1469088510-7552-6-git-send-email-olivier.matz@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 21 Jul 2016 10:08:23 +0200 Olivier Matz wrote: > +/** > + * Deprecated. > + * Checking this flag alone is deprecated: check the 2 bits of > + * PKT_RX_L4_CKSUM_MASK. > + * This flag was set when the L4 checksum of a packet was detected as > + * wrong by the hardware. > + */ > +#define PKT_RX_L4_CKSUM_BAD (1ULL << 3) > + > +/** > + * Deprecated. > + * Checking this flag alone is deprecated: check the 2 bits of > + * PKT_RX_IP_CKSUM_MASK. > + * This flag was set when the IP checksum of a packet was detected as > + * wrong by the hardware. > + */ > +#define PKT_RX_IP_CKSUM_BAD (1ULL << 4) I think you should use the GCC deprecated attribute, not sure how though