mirror of
https://github.com/openvswitch/ovs
synced 2025-10-23 14:57:06 +00:00
mac-learning: New function mac_entry_age().
This function will be used as part of printing the MAC learning table at user request.
This commit is contained in:
@@ -28,6 +28,9 @@
|
||||
|
||||
#define MAC_MAX 1024
|
||||
|
||||
/* Time, in seconds, before expiring a mac_entry due to inactivity. */
|
||||
#define MAC_ENTRY_IDLE_TIME 60
|
||||
|
||||
/* A MAC learning table entry. */
|
||||
struct mac_entry {
|
||||
struct list hash_node; /* Element in a mac_learning 'table' list. */
|
||||
@@ -39,6 +42,8 @@ struct mac_entry {
|
||||
tag_type tag; /* Tag for this learning entry. */
|
||||
};
|
||||
|
||||
int mac_entry_age(const struct mac_entry *);
|
||||
|
||||
/* MAC learning table. */
|
||||
struct mac_learning {
|
||||
struct list free; /* Not-in-use entries. */
|
||||
|
Reference in New Issue
Block a user