[PATCH 1/1] examples/l3fwd: fix scalar LPM compilation

Stanisław Kardach kda at semihalf.com
Wed May 11 16:18:39 CEST 2022


On Wed, May 11, 2022 at 1:39 PM David Marchand
<david.marchand at redhat.com> wrote:
<snip>
> Based on the vector specific implemtations of process_packet in this
> example, this code could be replaced with a call to rfc1812_process().
> Eth macs updates can be moved prior to rfc1812_process.
>
> What do you think of (untested):
That actually looks a lot better! Though it seems safer to use
rte_pktmbuf_mtod_offset() for getting the ipv4_hdr. I'll post V2 with
this update.


More information about the dev mailing list