[ovs-discuss] 回复: 回复: GRE interface packet receive procedure
jkpei at hotmail.com
Wed Mar 20 03:38:26 UTC 2019
Thanks all for the help.
I got the answer by adding some debug logs.
In our testbed in which the OVS is using the kernel datapath, GRE will receive the gre packets by gre_rcv function call registered in dp_init.
发件人: ovs-discuss-bounces at openvswitch.org <ovs-discuss-bounces at openvswitch.org> 代表 pei Jikui <jkpei at hotmail.com>
发送时间: 2019年3月20日 7:03
收件人: Gregory Rose; ovs-discuss at openvswitch.org
主题: [ovs-discuss] 回复: GRE interface packet receive procedure
Thanks for your help.
If OVS is using DPDK user space datapath, which one is used for receiving the GRE packets?
On the counterpart, how about OVS is using the traditional kernel datapath?
发件人: Gregory Rose <gvrose8192 at gmail.com>
发送时间: 2019年3月20日 4:18
收件人: pei Jikui; ovs-discuss at openvswitch.org
主题: Re: [ovs-discuss] GRE interface packet receive procedure
On 3/19/2019 6:29 AM, pei Jikui wrote:
> 1) I am reading the OVS source code about how a GRE interface in OVS
> receives packets into OVS bridge.
> I found there are two places that the GRE packets will possibly
> be received into OVS bridge.
> a) . The first place is when we create a gre interface with
> The register rx_handler is netdev_frame_hook which will
> receive the packets into the ovs bridge.
> b) The second place is located at the dp_init which will register
> a packet handler function gre_rcv for GRE protocol packets.
> gre_rcv will also receive the packets to OVS bridge.
> 2) My questions are,
> a) Which is the real receive handler for the GRE packets?
> b) Is it possible that the packets could be received by both of
> the two cases. If yes, for which scenarios will be match to each one?
OVS supports a user space datapath and a kernel datapath so it depends
on whether you're using the user space datapath or the kernel datapath.
> Thanks much.
> discuss mailing list
> discuss at openvswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the discuss