[PATCH v2] xdp: Sample xdp program implementing ip forward

David Laight David.Laight at ACULAB.COM
Wed Oct 11 03:08:21 PDT 2017


From: Jesper Dangaard Brouer
> Sent: 10 October 2017 20:06
...
> > +		int src_ip = 0, dest_ip = 0;
...
> > +			key4.b8[4] = dest_ip % 0x100;
> > +			key4.b8[5] = (dest_ip >> 8) % 0x100;
> > +			key4.b8[6] = (dest_ip >> 16) % 0x100;
> > +			key4.b8[7] = (dest_ip >> 24) % 0x100;

Do you really want signed remainders done here?

	David




More information about the linux-arm-kernel mailing list