[ovs-dev] [PATCH] bfd: Make the tp_dst masking megaflow-friendly.

Ben Pfaff blp at ovn.org
Wed Oct 3 21:06:17 UTC 2018


On Wed, Oct 03, 2018 at 02:05:30PM -0700, Ben Pfaff wrote:
> On Mon, Oct 01, 2018 at 02:12:29PM -0700, Han Zhou wrote:
> > From: Han Zhou <hzhou8 at ebay.com>
> > 
> > When there are tunnel ports with BFD enabled, all UDP flows will have
> > dst port as match condition in datapath, which causes unnecessarily
> > high flow miss for all UDP traffic, and results in latency increase.
> > For more details, see [1].
> > 
> > This patch solves the problem by masking tp_dst only for the leading
> > bits that is enough to tell the mismatch when it is not BFD traffic.
> > 
> > [1] https://mail.openvswitch.org/pipermail/ovs-discuss/2018-September/047360.html
> > 
> > Signed-off-by: Han Zhou <hzhou8 at ebay.com>
> 
> I think that we only need to "un-wildcard" one bit, not all the leading
> bits.
> 
> What do you think of the following slight generalization?

Oh, I should also admit that I haven't tested this.


More information about the dev mailing list