From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by dpdk.org (Postfix) with ESMTP id 34E58590C for ; Fri, 7 Mar 2014 19:12:55 +0100 (CET) Received: by mail-pd0-f172.google.com with SMTP id p10so4337649pdj.31 for ; Fri, 07 Mar 2014 10:14:23 -0800 (PST) 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:content-disposition; bh=hwM63DTb7ig43UQb+BfdjevOIDBT3xJekWJ5QZ8HtiI=; b=E82Om9zoTQU04yln+fv5vKVGlJ/yCqBt31XS/fcgyM1qUvPYIwAvoTH2NC9+ocUHRh M1JAjYdJ38qZ2F+Nk20UfZNlcm1WtVlcGXT7M6YaNoshtqjP0mEODxU6xTt/yIwEb1GK vmAu1nOSAMJRv5cbI7wRksWaIp7yzQvu5vPh8zVz4n9X3uMJe09/MdtlallgSuc1Us01 7dYnh3h8GoZpOt3gyFOfldniKSq/PsUAyJt7BT5/pYNyRgHLpHEewAi5M2POT4VXWXW/ lZP04o+VVVdfCPysaZ0Qr6Ef5LvTuWK2N4jKW/sZv+9uj7T6rnn7lyoIOa+WHtiDGNlY Uo7g== X-Gm-Message-State: ALoCoQm7I3tS86fASZCP+5Q23S5884MII74vdpu3BmdtzP8E4AQ813nJus2doVKlCp9iuCuscsKk X-Received: by 10.66.142.170 with SMTP id rx10mr23794417pab.117.1394216063147; Fri, 07 Mar 2014 10:14:23 -0800 (PST) Received: from localhost (static-50-53-83-51.bvtn.or.frontiernet.net. [50.53.83.51]) by mx.google.com with ESMTPSA id yx3sm38912790pbb.6.2014.03.07.10.14.21 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 07 Mar 2014 10:14:22 -0800 (PST) Message-Id: <20140307181421.045171437@vyatta.com> User-Agent: quilt/0.60-1 Date: Fri, 07 Mar 2014 10:13:36 -0800 From: Stephen Hemminger To: "Venkatesan, Venky" References: <20140307181335.024904493@vyatta.com> Content-Disposition: inline; filename=mbuf-ol-flags.patch Cc: dev@dpdk.org, Stephen Hemminger Subject: [dpdk-dev] [PATCH 1/6] rte_mbuf: copy offload flags when doing attach/clone of mbuf 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: Fri, 07 Mar 2014 18:12:55 -0000 rte_pktmbuf_attach copies the packet meta data but does not copy the offload flags. This means that cloned packets lose their offload settings such as vlan tag. Signed-off-by: Stephen Hemminger --- a/lib/librte_mbuf/rte_mbuf.h 2013-12-06 08:39:43.000000000 -0800 +++ b/lib/librte_mbuf/rte_mbuf.h 2014-03-06 15:16:44.525440437 -0800 @@ -624,6 +624,7 @@ static inline void rte_pktmbuf_attach(st mi->pkt.next = NULL; mi->pkt.pkt_len = mi->pkt.data_len; mi->pkt.nb_segs = 1; + mi->ol_flags = md->ol_flags; __rte_mbuf_sanity_check(mi, RTE_MBUF_PKT, 1); __rte_mbuf_sanity_check(md, RTE_MBUF_PKT, 0);