diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-09-30 02:14:19 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-07 02:44:42 +0900 |
commit | 75ffb011b059be96d73241e6eb4a481ec667a4cb (patch) | |
tree | 7f9cb5f96ed5c1d3fde43d7b9ef94cc71754d5b5 | |
parent | e6ad630d774054d93648be5e618bd0bfab2e6720 (diff) | |
download | systemd-75ffb011b059be96d73241e6eb4a481ec667a4cb.tar.gz |
network: drop unused fdb_ntf_flags_to_string()
-rw-r--r-- | src/network/networkd-fdb.c | 18 | ||||
-rw-r--r-- | src/network/networkd-fdb.h | 3 |
2 files changed, 9 insertions, 12 deletions
diff --git a/src/network/networkd-fdb.c b/src/network/networkd-fdb.c index 05fd07c374..c5e591d50b 100644 --- a/src/network/networkd-fdb.c +++ b/src/network/networkd-fdb.c @@ -21,15 +21,6 @@ #define STATIC_FDB_ENTRIES_PER_NETWORK_MAX 1024U -static const char* const fdb_ntf_flags_table[_NEIGHBOR_CACHE_ENTRY_FLAGS_MAX] = { - [NEIGHBOR_CACHE_ENTRY_FLAGS_USE] = "use", - [NEIGHBOR_CACHE_ENTRY_FLAGS_SELF] = "self", - [NEIGHBOR_CACHE_ENTRY_FLAGS_MASTER] = "master", - [NEIGHBOR_CACHE_ENTRY_FLAGS_ROUTER] = "router", -}; - -DEFINE_STRING_TABLE_LOOKUP(fdb_ntf_flags, NeighborCacheEntryFlags); - /* remove and FDB entry. */ FdbEntry *fdb_entry_free(FdbEntry *fdb_entry) { if (!fdb_entry) @@ -368,6 +359,15 @@ int config_parse_fdb_vxlan_vni( return 0; } +static const char* const fdb_ntf_flags_table[_NEIGHBOR_CACHE_ENTRY_FLAGS_MAX] = { + [NEIGHBOR_CACHE_ENTRY_FLAGS_USE] = "use", + [NEIGHBOR_CACHE_ENTRY_FLAGS_SELF] = "self", + [NEIGHBOR_CACHE_ENTRY_FLAGS_MASTER] = "master", + [NEIGHBOR_CACHE_ENTRY_FLAGS_ROUTER] = "router", +}; + +DEFINE_PRIVATE_STRING_TABLE_LOOKUP_FROM_STRING(fdb_ntf_flags, NeighborCacheEntryFlags); + int config_parse_fdb_ntf_flags( const char *unit, const char *filename, diff --git a/src/network/networkd-fdb.h b/src/network/networkd-fdb.h index 39e016e867..9ab44f9d3e 100644 --- a/src/network/networkd-fdb.h +++ b/src/network/networkd-fdb.h @@ -47,9 +47,6 @@ void network_verify_fdb_entries(Network *network); int link_set_bridge_fdb(Link *link); -const char* fdb_ntf_flags_to_string(NeighborCacheEntryFlags i) _const_; -NeighborCacheEntryFlags fdb_ntf_flags_from_string(const char *s) _pure_; - CONFIG_PARSER_PROTOTYPE(config_parse_fdb_hwaddr); CONFIG_PARSER_PROTOTYPE(config_parse_fdb_vlan_id); CONFIG_PARSER_PROTOTYPE(config_parse_fdb_destination); |