[dpdk-dev] [PATCH] net/ice/base: fix bm mask set and find switch recipe method

Zhang, Qi Z qi.z.zhang at intel.com
Thu Apr 30 04:17:16 CEST 2020



> -----Original Message-----
> From: Fu, Qi <qi.fu at intel.com>
> Sent: Wednesday, April 29, 2020 6:16 PM
> To: Zhao1, Wei <wei.zhao1 at intel.com>; dev at dpdk.org
> Cc: Zhang, Qi Z <qi.z.zhang at intel.com>
> Subject: RE: [PATCH] net/ice/base: fix bm mask set and find switch recipe
> method
> 
> Tested-by: Fu, Qi <qi.fu at intel.com>
> 
> > -----Original Message-----
> > From: Zhao1, Wei <wei.zhao1 at intel.com>
> > Sent: Tuesday, April 28, 2020 2:50 PM
> > To: dev at dpdk.org
> > Cc: Zhang, Qi Z <qi.z.zhang at intel.com>; Fu, Qi <qi.fu at 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.zhao1 at intel.com>
> > > Sent: Tuesday, April 28, 2020 2:22 PM
> > > To: dev at dpdk.org
> > > Cc: Zhang, Qi Z <qi.z.zhang at intel.com>; Zhao1, Wei
> > > <wei.zhao1 at 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.zhao1 at intel.com>

Acked-by: Qi Zhang <qi.z.zhang at intel.com>



More information about the dev mailing list