From: David Laight <David.Laight@ACULAB.COM>
To: "'Jesper Dangaard Brouer'" <brouer@redhat.com>,
Christina Jacob <christina.jacob.koikara@gmail.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"Sunil.Goutham@cavium.com" <Sunil.Goutham@cavium.com>,
"daniel@iogearbox.net" <daniel@iogearbox.net>,
"dsahern@gmail.com" <dsahern@gmail.com>,
Christina Jacob <Christina.Jacob@cavium.com>
Subject: RE: [PATCH v2] xdp: Sample xdp program implementing ip forward
Date: Wed, 11 Oct 2017 10:08:21 +0000 [thread overview]
Message-ID: <063D6719AE5E284EB5DD2968C1650D6DD0090EEE@AcuExch.aculab.com> (raw)
In-Reply-To: <20171010210607.2af452e2@redhat.com>
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
next prev parent reply other threads:[~2017-10-11 10:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-10 7:28 [PATCH v2] XDP Program for Ip forward Christina Jacob
2017-10-10 7:28 ` [PATCH v2] xdp: Sample xdp program implementing ip forward Christina Jacob
2017-10-10 17:19 ` Stephen Hemminger
2017-10-10 21:37 ` David Daney
2017-10-28 13:37 ` Christina Jacob
2017-10-10 17:21 ` Stephen Hemminger
2017-10-10 19:06 ` Jesper Dangaard Brouer
2017-10-11 10:08 ` David Laight [this message]
2017-10-10 13:12 ` [PATCH v2] XDP Program for Ip forward Jesper Dangaard Brouer
2017-10-10 14:00 ` Jesper Dangaard Brouer
2017-10-11 17:06 ` Christina Jacob
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=063D6719AE5E284EB5DD2968C1650D6DD0090EEE@AcuExch.aculab.com \
--to=david.laight@aculab.com \
--cc=Christina.Jacob@cavium.com \
--cc=Sunil.Goutham@cavium.com \
--cc=brouer@redhat.com \
--cc=christina.jacob.koikara@gmail.com \
--cc=daniel@iogearbox.net \
--cc=dsahern@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®