[ovs-dev] 答复: 答复: [PATCH] dpif-netdev:Delete port check in do_add_port

Linhaifeng haifeng.lin at huawei.com
Sat Jun 23 07:19:46 UTC 2018


It's good. If get_port_by_name  in dpif-netdev use string hash replace of HMAP_FOR_EACH the performance would better.

-----邮件原件-----
发件人: Ben Pfaff [mailto:blp at ovn.org] 
发送时间: 2018年6月22日 6:56
收件人: Linhaifeng <haifeng.lin at huawei.com>
抄送: dev at openvswitch.org
主题: Re: 答复: [ovs-dev] [PATCH] dpif-netdev:Delete port check in do_add_port

OK.

I think that it's the dpif itself that should really be doing the check (the kernel datapath especially needs to do this for itself), so I sent an alternative patch that works that way:
        https://patchwork.ozlabs.org/patch/932991/

Will you test it?

Thanks,

Ben.

On Thu, Jun 21, 2018 at 06:24:09AM +0000, Linhaifeng wrote:
> For the performance problem. When add 3000 or more ports it costs too more time and it is not needed.
> 
> port_add function in ofproto-dpif.c have checked it used 
> dpif_port_exists so we really not need to check it again in 
> do_add_port
> 
> -----邮件原件-----
> 发件人: Ben Pfaff [mailto:blp at ovn.org]
> 发送时间: 2018年5月10日 5:10
> 收件人: Linhaifeng <haifeng.lin at huawei.com>
> 抄送: dev at openvswitch.org
> 主题: Re: [ovs-dev] [PATCH] dpif-netdev:Delete port check in do_add_port
> 
> On Thu, Apr 26, 2018 at 03:12:51PM +0800, Haifeng Lin wrote:
> > It is not need check port exist in do_add_port because it had check 
> > in port_add.
> > 
> > Change-Id: Ie66206b40e305cef5f5b20af765c3128ccec6782
> > Signed-off-by: Haifeng Lin <haifeng.lin at huawei.com>
> 
> Can you explain the problem and the solution in a little more detail?
> 
> Thanks,
> 
> Ben.


More information about the dev mailing list