[dpdk-dev] [PATCH] mlx4: replace some offload flags with packet type
Thomas Monjalon
thomas.monjalon at 6wind.com
Thu Jul 16 01:05:07 CEST 2015
2015-07-15 18:06, Zhang, Helin:
> > The workaround for Tx tunnel offloading can now be replaced with packet type
> > flag checking.
> > The ol_flags for IPv4/IPv6 and tunnel Rx offloading are replaced with packet type
> > flags.
> >
> > Signed-off-by: Thomas Monjalon <thomas.monjalon at 6wind.com>
> > Acked-by: Adrien Mazarguil <adrien.mazarguil at 6wind.com>
[...]
> > + uint32_t pkt_type = 0;
> Initial value of 0 seems not needed.
>
> > +
> > + if (flags & IBV_EXP_CQ_RX_TUNNEL_PACKET)
> > + pkt_type |=
> Operand of 'OR' is not needed at all.
Matter of taste (OR allows to add more flags before).
Applied with above changes.
More information about the dev
mailing list