> > > Wait a minute.. does this mean that if the user passes, say, ETH / IPV4 / UDP<br />> > > pattern and the 'spec' and 'mask' of ETH are both 'null', the actual key/mask<br />> > > values in the HW rule will be, say, for the EtherType, '0000' and 'ffff'?<br />> > > Is this correct? And which part of DPDK interface envisages that?<br />> >  <br />> > > Again, may be it's just my misunderstanding.<br />> >  <br />> >  Sorry, I misunderstood and caused you inconvenience.<br />> >  If the user does not set 'spec' and 'mask', we will set 'spec' '0000' and mask 'ffff' write fd table to HW,<br />> >  not set by DPDK interface.<br />> >  If the user set one of 'spec' and 'mask', we will also set 'spec' '0000' and mask 'ffff' write fd table to HW.<br />> >  This is how we handle it.<br /> <br />> Understood. But is this the best course of action? Say, what happens if the user<br />> passes ETH / IPV4 / UDP pattern items, where 'spec' and 'mask' are 'null' in all<br />> the items? Theoretically, the driver could translate this to set the key to have<br />> EtherType 0x0800/0xffff and IP protocol to be 0x11/0xff . Or am I wrong?<br /> <br />> Thank you.<br /> <br /> Yes, you are right. Currently, our plan is not optimal, and we will take your suggestions as a reference.<br /> If there are any optimizations in the future, we will resubmit it.<br /> <br /> Thank you very much.<br />