[ovs-discuss] packet processing plugin

Jesse Gross jesse at nicira.com
Wed Apr 18 00:56:49 UTC 2012


On Mon, Apr 16, 2012 at 7:50 PM, Yi Sun <beyounn at gmail.com> wrote:
> On 04/10/2012 05:26 PM, Jesse Gross wrote:
>>
>> On Tue, Apr 10, 2012 at 3:27 PM, Yi Sun<beyounn at gmail.com>  wrote:
>>>
>>> Hello,
>>> In openvswitch, is there something similar to the NF_HOOK? Bascially, I'm
>>> looking for a method to register an action handling function that is
>>> implemented by another kernel module.
>>
>> No, Open vSwitch is designed to be driven by userspace and arbitrary
>> hooks prevent that from happening.  It sounds like you want to use
>> Netfilter instead.
>
> Just a double check--are you saying that I can use netfilter? I was trying
> to filter on NF_BR_FORWARD but my callback hook did not get called at all.
> During the debug, I try to find NF_HOOK calls in the openvswitch code, since
> they used to be called from bridge module, But I did not find any of them.
> Not sure if I have missed something or got some wrong ideas about the
> netfilter code.

No, what you're trying to do is incompatible with the design of Open
vSwitch.  You should either reconsider your approach or use the bridge
+ netfilter, which is intended to be entirely kernel based.



More information about the discuss mailing list