projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bridge: Check for null ofproto_controller_info pointer.
[openvswitch]
/
lib
/
mac-learning.c
diff --git
a/lib/mac-learning.c
b/lib/mac-learning.c
index c8582f3123c98d577596d9dcc47a4e54635e648b..af46e3cc5331890b97272351cd88d6af1149e2f4 100644
(file)
--- a/
lib/mac-learning.c
+++ b/
lib/mac-learning.c
@@
-31,7
+31,10
@@
#include "util.h"
#include "vlog.h"
#include "util.h"
#include "vlog.h"
-VLOG_DEFINE_THIS_MODULE(mac_learning)
+VLOG_DEFINE_THIS_MODULE(mac_learning);
+
+COVERAGE_DEFINE(mac_learning_learned);
+COVERAGE_DEFINE(mac_learning_expired);
/* Returns the number of seconds since 'e' was last learned. */
int
/* Returns the number of seconds since 'e' was last learned. */
int
@@
-79,7
+82,7
@@
search_bucket(struct list *bucket, const uint8_t mac[ETH_ADDR_LEN],
uint16_t vlan)
{
struct mac_entry *e;
uint16_t vlan)
{
struct mac_entry *e;
- LIST_FOR_EACH (e,
struct mac_entry,
hash_node, bucket) {
+ LIST_FOR_EACH (e, hash_node, bucket) {
if (eth_addr_equals(e->mac, mac) && e->vlan == vlan) {
return e;
}
if (eth_addr_equals(e->mac, mac) && e->vlan == vlan) {
return e;
}