TSG-7234 调整Proxy的解密流量转发的配置,以适配TSG-9140下解密流量转发需求

This commit is contained in:
luwenpeng
2021-07-29 11:29:11 +08:00
parent 319afbc11b
commit 67be58f6ea
3 changed files with 4 additions and 1 deletions

View File

@@ -286,7 +286,7 @@ void profile_table_ex_data_new_cb(int table_id, const char * key, const char * t
}
ex_data->ether_addrs[iter] = ether_addr_aton;
ex_data->vlans[iter] = 0;
ex_data->vlans[iter] = instance->default_vlan_id_for_mac;
iter++;
}
@@ -451,6 +451,7 @@ static int traffic_mirror_ethdev_init(struct traffic_mirror_instance * instance)
return -1;
}
MESA_load_profile_uint_def(profile, "traffic_mirror", "default_vlan_id_for_mac", &(instance->default_vlan_id_for_mac), 0);
unsigned int device_type;
MESA_load_profile_uint_def(profile, "traffic_mirror", "type", &device_type, TRAFFIC_MIRROR_ETHDEV_AF_PACKET);