X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Flearning-switch.c;h=7eb9e1c29d0bb09e25de87d585368333122cced2;hb=69123704450703f7ebea4af9e3b9635399fc21f2;hp=64639f2c829a38324608113d55438e26bc320035;hpb=7cf8b2660f9813fe080a3f4fcc975099cb36417a;p=openvswitch diff --git a/lib/learning-switch.c b/lib/learning-switch.c index 64639f2c..7eb9e1c2 100644 --- a/lib/learning-switch.c +++ b/lib/learning-switch.c @@ -27,6 +27,7 @@ #include "mac-learning.h" #include "ofpbuf.h" #include "ofp-print.h" +#include "ofp-util.h" #include "openflow/openflow.h" #include "poll-loop.h" #include "queue.h" @@ -401,7 +402,8 @@ process_packet_in(struct lswitch *sw, struct rconn *rconn, void *opi_) flow_extract(&pkt, 0, in_port, &flow); if (may_learn(sw, in_port) && sw->ml) { - if (mac_learning_learn(sw->ml, flow.dl_src, 0, in_port)) { + if (mac_learning_learn(sw->ml, flow.dl_src, 0, in_port, + GRAT_ARP_LOCK_NONE)) { VLOG_DBG_RL(&rl, "%016llx: learned that "ETH_ADDR_FMT" is on " "port %"PRIu16, sw->datapath_id, ETH_ADDR_ARGS(flow.dl_src), in_port); @@ -418,7 +420,7 @@ process_packet_in(struct lswitch *sw, struct rconn *rconn, void *opi_) } if (sw->ml) { - int learned_port = mac_learning_lookup(sw->ml, flow.dl_dst, 0); + int learned_port = mac_learning_lookup(sw->ml, flow.dl_dst, 0, NULL); if (learned_port >= 0 && may_send(sw, learned_port)) { out_port = learned_port; }