From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yong Wang Subject: Re: [PATCH v2 07/15] vmxnet3: support of unified packet type Date: Wed, 11 Feb 2015 01:46:14 +0000 Message-ID: References: <1422501365-12643-1-git-send-email-helin.zhang@intel.com> <1423464049-13457-1-git-send-email-helin.zhang@intel.com> <1423464049-13457-8-git-send-email-helin.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable To: Helin Zhang , "dev-VfR2kkLFssw@public.gmane.org" Return-path: In-Reply-To: <1423464049-13457-8-git-send-email-helin.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Content-Language: en-US Content-ID: <5BBF987DCB18B04CA0E3D32C78681030-xOhs/FgTdIXLi+/K9TH57EEOCMrvLtNR@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" On 2/8/15, 10:40 PM, "Helin Zhang" wrote: >To unify packet types among all PMDs, bit masks of packet type for >ol_flags are replaced by unified packet type. > >Signed-off-by: Helin Zhang >--- Acked-by: Yong Wang > lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >v2 changes: >* Used redefined packet types and enlarged packet_type field in mbuf. > >diff --git a/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c >b/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c >index 8425f32..c85ebd8 100644 >--- a/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c >+++ b/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c >@@ -650,9 +650,9 @@ vmxnet3_recv_pkts(void *rx_queue, struct rte_mbuf >**rx_pkts, uint16_t nb_pkts) > struct ipv4_hdr *ip =3D (struct ipv4_hdr *)(eth + 1); >=20 > if (((ip->version_ihl & 0xf) << 2) > (int)sizeof(struct ipv4_hdr)) >- rxm->ol_flags |=3D PKT_RX_IPV4_HDR_EXT; >+ rxm->packet_type =3D RTE_PTYPE_L3_IPV4_EXT; > else >- rxm->ol_flags |=3D PKT_RX_IPV4_HDR; >+ rxm->packet_type =3D RTE_PTYPE_L3_IPV4; >=20 > if (!rcd->cnc) { > if (!rcd->ipc) >--=20 >1.9.3 >