From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id DC2485B3C; Wed, 21 Nov 2018 11:17:43 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Nov 2018 02:17:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,260,1539673200"; d="scan'208";a="108101061" Received: from pgsmsx111.gar.corp.intel.com ([10.108.55.200]) by fmsmga004.fm.intel.com with ESMTP; 21 Nov 2018 02:17:42 -0800 Received: from pgsmsx101.gar.corp.intel.com ([169.254.1.244]) by PGSMSX111.gar.corp.intel.com ([169.254.2.208]) with mapi id 14.03.0415.000; Wed, 21 Nov 2018 18:17:41 +0800 From: "Zhao1, Wei" To: "dev@dpdk.org" CC: "stable@dpdk.org" , "Ananyev, Konstantin" , "Wang, Dong1" , "Lu, Wenzhuo" Thread-Topic: [PATCH] examples/ipv4_multicast: remove useless mbuf info copy Thread-Index: AQHUgYMPBUceULtBZEuuFot97vBDFKVaA6Og Date: Wed, 21 Nov 2018 10:17:41 +0000 Message-ID: References: <1542793757-52622-1-git-send-email-wei.zhao1@intel.com> In-Reply-To: <1542793757-52622-1-git-send-email-wei.zhao1@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [172.30.20.206] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] examples/ipv4_multicast: remove useless mbuf info copy X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2018 10:17:44 -0000 Add the background for this patch=20 https://mails.dpdk.org/archives/dev/2018-November/119391.html > -----Original Message----- > From: Zhao1, Wei > Sent: Wednesday, November 21, 2018 5:49 PM > To: dev@dpdk.org > Cc: stable@dpdk.org; Ananyev, Konstantin ; > Zhao1, Wei > Subject: [PATCH] examples/ipv4_multicast: remove useless mbuf info copy >=20 > There is not need for these useless information and it had better be > removed in oder not to confusing users. >=20 > Signed-off-by: Wei Zhao > --- > examples/ipv4_multicast/main.c | 8 -------- > 1 file changed, 8 deletions(-) >=20 > diff --git a/examples/ipv4_multicast/main.c > b/examples/ipv4_multicast/main.c index 428ca46..1eef291 100644 > --- a/examples/ipv4_multicast/main.c > +++ b/examples/ipv4_multicast/main.c > @@ -254,18 +254,10 @@ mcast_out_pkt(struct rte_mbuf *pkt, int use_clone) > /* prepend new header */ > hdr->next =3D pkt; >=20 > - > /* update header's fields */ > hdr->pkt_len =3D (uint16_t)(hdr->data_len + pkt->pkt_len); > hdr->nb_segs =3D pkt->nb_segs + 1; >=20 > - /* copy metadata from source packet*/ > - hdr->port =3D pkt->port; > - hdr->vlan_tci =3D pkt->vlan_tci; > - hdr->vlan_tci_outer =3D pkt->vlan_tci_outer; > - hdr->tx_offload =3D pkt->tx_offload; > - hdr->hash =3D pkt->hash; > - > __rte_mbuf_sanity_check(hdr, 1); > return hdr; > } > -- > 2.7.5