[ovs-discuss] How does ovs-vswitchd deliver the packets which are already handled to datapath?
blp at ovn.org
Sat May 6 04:48:50 UTC 2017
I'd suggest reading the code for the kernel module.
On Sat, May 06, 2017 at 12:49:50AM +0800, 杨润垲 wrote:
> I do not understand where to store these packets in the kernel module, is there a queue or buffer to store these packets?
> 在2017-05-05 23:57:38,杨润垲<16125201 at bjtu.edu.cn>写道：
> > Please don't drop the mailing list.
> > OVS sends packets to the kernel module in batches but not necessarily
> > all 50 at once.
> > Why do you care?
> > On Fri, May 05, 2017 at 03:51:10PM +0800, 杨润垲 wrote:
> > > Thank you very much!
> > > 1.Ovs-vswitchd passes 1 packet to ovs kernel module and then ovs kernel module processes it. When ovs kernel module finishes the process of a packet and then ovs-vswitchd passes the next.
> > > 2.Ovs-vswitchd passes 50 packets to ovs kernel module and then ovs kernel module starts to process them.
> > > Which one is right?
> > > Thank you!
> > >
> > > > -----原始邮件-----
> > > > 发件人: "Ben Pfaff" <blp at ovn.org>
> > > > 发送时间: 2017年5月5日 星期五
> > > > 收件人: "杨润垲" <16125201 at bjtu.edu.cn>
> > > > 抄送: discuss at openvswitch.org
> > > > 主题: Re: [ovs-discuss] How does ovs-vswitchd deliver the packets which are already handled to datapath?
> > > >
> > > > On Thu, May 04, 2017 at 02:41:59PM +0800, 杨润垲 wrote:
> > > > > The ovs-vswitchd handles 50 packets once. When ovs-vswitchd finishes
> > > > > the process, let‘s suppose all the actions are OVS_ACTION_ATTR_OUTPUT,
> > > > > dose ovs-vswitchd pass the first packet back to the datapath and then
> > > > > send it to the TX DMA then the second, or by other way?I am sorry to
> > > > > trouble you, and thank you very much!
> > > >
> > > > OVS passes the packets to the OVS kernel module, which passes them to
> > > > the kernel driver for the output port.
> > >
More information about the discuss