REM:
1. 增加vxlan隧道初始化日志
This commit is contained in:
huangxin 2022-06-14 09:57:08 +08:00
parent 6ee38533ed
commit dddca17acd
1 changed files with 5 additions and 3 deletions

View File

@ -220,7 +220,7 @@ static void vxlan_pkg_head_init(PVXLAN_PEER pvxLan) {
pkg->qinq_head.in_type = lwip_htons(QINQ_802_1_AD);
}
int vxlan_peer_add(unsigned int vni, const char* pIp, const char* pMac) {
int vxlan_peer_add(unsigned int vni, const char *pIp, const char *pMac) {
PVXLAN_PEER vxlan_peer;
if (!VERIFY_STRING(pIp) || !VERIFY_STRING(pMac)) {
@ -260,6 +260,8 @@ int vxlan_peer_add(unsigned int vni, const char* pIp, const char* pMac) {
uv_rwlock_wrlock(&g_vxLanLinks.lock_peer);
HASH_ADD_INT(g_pAllvxLanPeers, vni, vxlan_peer);
uv_rwlock_wrunlock(&g_vxLanLinks.lock_peer);
dzlog_debug("Add vxLan[vni = %d]: vSwitch: %s, %s\n", vni, pIp, pMac);
}
return ERR_SUCCESS;