> -----Original Message-----
> From: Fu, Qi <qi...@intel.com>
> Sent: Wednesday, April 29, 2020 6:16 PM
> To: Zhao1, Wei <wei.zh...@intel.com>; dev@dpdk.org
> Cc: Zhang, Qi Z <qi.z.zh...@intel.com>
> Subject: RE: [PATCH] net/ice/base: fix bm mask set and find switch recipe
> method
>
> Tested-by: Fu, Qi <qi...@intel.com>
>
> > -----Original Message-----
> > From: Zhao1, Wei <wei.zh...@intel.com>
> > Sent: Tuesday, April 28, 2020 2:50 PM
> > To: dev@dpdk.org
> > Cc: Zhang, Qi Z <qi.z.zh...@intel.com>; Fu, Qi <qi...@intel.com>
> > Subject: RE: [PATCH] net/ice/base: fix bm mask set and find switch
> > recipe method
> >
> > Add fuqi
> >
> > > -----Original Message-----
> > > From: Zhao1, Wei <wei.zh...@intel.com>
> > > Sent: Tuesday, April 28, 2020 2:22 PM
> > > To: dev@dpdk.org
> > > Cc: Zhang, Qi Z <qi.z.zh...@intel.com>; Zhao1, Wei
> > > <wei.zh...@intel.com>
> > > Subject: [PATCH] net/ice/base: fix bm mask set and find switch
> > > recipe method
> > >
> > > When we download a switch rule for ipv6 with esp payload "eth / ipv6
> > > / esp spi is 1 / end actions queue index 2 / end"
> > >
> > > if we don't add bm bit set check for tun_type, then a packet of
> > > ipv4 with esp payload
> > >
> > > "sendp([Ether(dst="00:00:00:00:01:00")/IP(proto=50)/ESP(spi=1)/
> > > ("X"*480)], iface="ens5f0", count=10)"
> > >
> > > will also go to queue index 2. And also, we need to do tun_type
> > > check, or the second rule of following can not be download because
> > > of rejection from switch rule download function ice_aq_sw_rules().
> > >
> > > "eth / ipv4 / esp spi is 1 / end actions queue index 5 / end"
> > >
> > > "eth / ipv6 / esp spi is 1 / end actions queue index 2 / end"
> > >
> > > Signed-off-by: Wei Zhao <wei.zh...@intel.com>
Acked-by: Qi Zhang <qi.z.zh...@intel.com>