Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Aug 2013 16:28:32 +0100
From:      Mindaugas Rasiukevicius <rmind@netbsd.org>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        tech-net@netbsd.org, guy@alum.mit.edu, freebsd-net@freebsd.org
Subject:   Re: BPF_MISC+BPF_COP and BPF_COPX
Message-ID:  <20130829152847.9AC9514A14E@mail.netbsd.org>
In-Reply-To: <CAJ-Vmom_MmjYATxQFac0=Nyx2mM4vt1afkh1v9MWb_MZ-qYvMw@mail.gmail.com>
References:  <20130804191310.2FFBB14A152@mail.netbsd.org> <9813E50B-C557-4FE1-BADF-A2CFFCBB8BD7@felyko.com> <20130804195538.C87A614A135@mail.netbsd.org> <CAJ-VmokkbWCWmYng1QCpKOrfDuOC=0J1mjRX-kNDQj2%2BYO1rjA@mail.gmail.com> <20130804225434.87A9C14A152@mail.netbsd.org> <CAJ-Vmom_MmjYATxQFac0=Nyx2mM4vt1afkh1v9MWb_MZ-qYvMw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Adrian Chadd <adrian@freebsd.org> wrote:
> >> > It provides us a capability to offload more complex packet
> >> > processing. My primary user would be NPF in NetBSD, e.g. one of the
> >> > operations is to lookup an IP address in a table/ipset.
> >
> > I would like to coordinate the reservation of BPF opcodes though.
> 
> That's a good idea. I have no problem with that.
> 

I have added these to the NetBSD tree:

 #define BPF_MISCOP(code) ((code) & 0xf8)
 #define		BPF_TAX		0x00
+#define		BPF_COP		0x20
+#define		BPF_COPX	0x40
 #define		BPF_TXA		0x80

Would you like to reserve them in FreeBSD as well?

Thanks.

-- 
Mindaugas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130829152847.9AC9514A14E>