[ovs-dev] [PATCH v2 ] flow: save "vlan_hdrs" memset for untagged traffic

Ben Pfaff blp at ovn.org
Wed Aug 28 21:47:37 UTC 2019

On Thu, Aug 22, 2019 at 06:09:50PM +0800, Yanqin Wei wrote:
> For untagged traffic, it is unnecessary to clear vlan_hdrs as it costs 32B
> memset. So the patch improves it by postponing to clear vlan_hdrs until
> ethtype check. It can benefit both untagged and single-tagged traffic. From
> testing, it does not impact performance of dual-tagged traffic.
> Reviewed-by: Gavin Hu <Gavin.Hu at arm.com>
> Signed-off-by: Yanqin Wei <Yanqin.Wei at arm.com>

Thanks, applied to master.

More information about the dev mailing list