Hi, wenzhuo > -----Original Message----- > From: Lu, Wenzhuo > Sent: Tuesday, June 12, 2018 10:42 AM > To: Zhao1, Wei <wei.zh...@intel.com>; dev@dpdk.org > Cc: sta...@dpdk.org > Subject: RE: [PATCH] net/ixgbe: add support for VLAN in IP mode FDIR > > > -----Original Message----- > > From: Zhao1, Wei > > Sent: Tuesday, June 12, 2018 10:31 AM > > To: Lu, Wenzhuo <wenzhuo...@intel.com>; dev@dpdk.org > > Cc: sta...@dpdk.org > > Subject: RE: [PATCH] net/ixgbe: add support for VLAN in IP mode FDIR > > > > Hi, wenzhuo > > > > > -----Original Message----- > > > From: Lu, Wenzhuo > > > Sent: Tuesday, June 12, 2018 10:26 AM > > > To: Zhao1, Wei <wei.zh...@intel.com>; dev@dpdk.org > > > Cc: sta...@dpdk.org > > > Subject: RE: [PATCH] net/ixgbe: add support for VLAN in IP mode FDIR > > > > > > Hi Wei, > > > > > > > > > > -----Original Message----- > > > > From: Zhao1, Wei > > > > Sent: Tuesday, June 5, 2018 5:12 PM > > > > To: dev@dpdk.org > > > > Cc: Lu, Wenzhuo <wenzhuo...@intel.com>; sta...@dpdk.org; Zhao1, > > > > Wei <wei.zh...@intel.com> > > > > Subject: [PATCH] net/ixgbe: add support for VLAN in IP mode FDIR > > > > > > > > In IP mode FDIR, X550 can support not only 4 tuple parameters but > > > > also vlan tci in protocol, so add this feature to flow parser. > > > > > > > > Fixes: 11777435c727 ("net/ixgbe: parse flow director filter") > > > > > > > > Signed-off-by: Wei Zhao <wei.zh...@intel.com> > > > > --- > > > > > > > > item = next_no_void_pattern(pattern, item); > > > > - if (item->type != RTE_FLOW_ITEM_TYPE_IPV4) { > > > > + if (item->type != RTE_FLOW_ITEM_TYPE_IPV4 && > > > > + item->type != RTE_FLOW_ITEM_TYPE_VLAN) > > > { > > > > rte_flow_error_set(error, > > > > EINVAL, RTE_FLOW_ERROR_TYPE_ITEM, > > > > item, "Not supported by ntuple filter"); > > > Really confused. I see the above code is already wrapped by " if > > > (item->type == RTE_FLOW_ITEM_TYPE_VLAN) {". You want to support > > double vlan? > > > > No, I have get a report that some use the following mode > > sendp([Ether(dst="A0:36:9F:BD:5D:B0")/Dot1Q(vlan=1)/IP(src="192.168.0. > > 1",d st="192.168.0.2",tos=2,ttl=40)/UDP(dport=23, > > sport=22)/Raw('x'*100)],iface="enp3s0f0",count=10) > > to test fdir IP mode. > > In order to support this, we need this patch. > I can understand the change in ' ixgbe_parse_fdir_filter_normal' is to support > this case. > What I cannot understand is the above change. The original code is already > for the case vlan + IPv4. >
I will commit new v2 for your comment.