修改atca vxlan流量属性接入配置

This commit is contained in:
fumingwei
2021-04-13 09:42:11 +08:00
parent 8338693e40
commit 9dcd0cfbdd
9 changed files with 20 additions and 14 deletions

View File

@@ -10,7 +10,7 @@ ethtool -K {{ packet_io.internal_interface }} gro off
ethtool -K {{ packet_io.external_interface }} tso off
ethtool -K {{ packet_io.external_interface }} gso off
ethtool -K {{ packet_io.external_interface }} gro off
{% elif tsg_access_type == 4 %}
{% elif tsg_access_type == 4 or tsg_access_type == 5 %}
echo 3 > /sys/class/net/{{ ATCA_data_incoming.ethname }}/device/sriov_numvfs
ip link set {{ ATCA_data_incoming.ethname }} vf 1 vlan 4095
ip link set {{ ATCA_data_incoming.ethname }} vf 2 vlan 4095

View File

@@ -3,6 +3,6 @@
echo 0 >/sys/class/net/{{ nic_mgr.name }}/device/sriov_numvfs
ifconfig {{ nic_mgr.name }}.100 down
vconfig rem {{ nic_mgr.name }}.100
{% if tsg_access_type == 4 %}
{% if tsg_access_type == 4 or tsg_access_type == 5 %}
echo 0 >/sys/class/net/{{ ATCA_data_incoming.ethname }}/device/sriov_numvfs
{% endif %}