]> git.proxmox.com Git - mirror_ovs.git/commit
lib: Refactor mac-learning updates.
authorJarno Rajahalme <jarno@ovn.org>
Wed, 14 Sep 2016 23:51:26 +0000 (16:51 -0700)
committerJarno Rajahalme <jarno@ovn.org>
Wed, 14 Sep 2016 23:51:26 +0000 (16:51 -0700)
commit064799a172852c623b2262e65e5fbfc3957758ee
treed501a8a725dfc0dc5d1e2420a1599f1585bfc90b
parent40df456680fc1e760d9cc666fef1761b5234cf00
lib: Refactor mac-learning updates.

Make mac table update functions part of the mac-learning module, which
also helps in figuring what is the minimal set of struct flow fields
needed for the update.  Use this to change the xlate cache entry for
XC_NORMAL to not take a copy of the struct flow, but only save the
in_port, dl_src, and some auxiliary fields.  This reduces the memory
burden of XC_NORMAL by roughly 0.5kb.

Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
lib/mac-learning.c
lib/mac-learning.h
ofproto/ofproto-dpif-xlate.c