Thanks Adrien. I have two questions: 1. when I set " / vlan tci fix 10" with testpmd, I find the mask of tci is 0xFFFF. Actually tci includes PRI, CFI, and Vlan_id which holds 12 bits, so is it possible to set the mask to 0xFFF? Our driver will check the mask only covers vlan_id instead of the whole tci.
2. When we test destroy function, we find the pointer provided to PMD is NULL instead of the pointer PMD returned to RTE during creating flow. Could you please have double check? Thanks. Best Regards Beilei > -----Original Message----- > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] > Sent: Friday, December 16, 2016 5:18 PM > To: Pei, Yulong <yulong....@intel.com> > Cc: dev@dpdk.org; Thomas Monjalon <thomas.monja...@6wind.com>; De > Lara Guarch, Pablo <pablo.de.lara.gua...@intel.com>; Olivier Matz > <olivier.m...@6wind.com>; Xing, Beilei <beilei.x...@intel.com> > Subject: Re: [dpdk-dev] [PATCH 12/22] app/testpmd: add rte_flow item spec > handler > > Hi Yulong, > > On Fri, Dec 16, 2016 at 03:01:15AM +0000, Pei, Yulong wrote: > > Hi Adrien, > > > > I try to setup the following rule, but it seems that after set 'spec' > > param, > can not set 'mask' param, is it an issue here or am I wrong to use it ? > > > > testpmd> flow create 0 ingress pattern eth dst spec 00:00:00:00:09:00 > > dst [TOKEN]: destination MAC > > src [TOKEN]: source MAC > > type [TOKEN]: EtherType > > / [TOKEN]: specify next pattern item > > You need to re-specify dst with "mask" instead of "spec". You can specify it > as many times you like to update each structure in turn, e.g.: > > testpmd> flow create 0 ingress pattern eth dst spec 00:00:00:00:09:00 dst > mask 00:00:00:00:ff:ff > > If you want to specify both spec and mask at once assuming you want it full, > these commands yield the same result: > > testpmd> flow create 0 ingress pattern eth dst fix 00:00:00:00:09:00 > testpmd> > flow create 0 ingress pattern eth dst spec 00:00:00:00:09:00 dst mask > ff:ff:ff:ff:ff:ff testpmd> flow create 0 ingress pattern eth dst spec > 00:00:00:00:09:00 dst prefix 48 > > You are even allowed to change your mind: > > testpmd> flow create 0 ingress pattern eth dst fix 00:00:2a:2a:2a:2a dst fix > 00:00:00:00:09:00 > > All these will be properly documented in the v2 patchset. Note, this version > will replace the "fix" keyword with "is" ("fix" made no sense according to > feedback). > > -- > Adrien Mazarguil > 6WIND