Skip to content
Snippets Groups Projects
Commit 6f7d2705 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

Merge branch 'mellanoxglobalpauseoff' into 'master'

disabling global pause on hypervisors

See merge request !534
parents 41229efd 791f06b8
No related branches found
No related tags found
1 merge request!534disabling global pause on hypervisors
......@@ -9,6 +9,7 @@
shell: /usr/sbin/ibstat | grep mlx5 | awk '{print $2}' | sed -r "s#'##g"
register: qibdevicenames
check_mode: no
changed_when: false
#when: not statrocemode.stat.exists
- name: print qibdevicenames
......@@ -23,6 +24,7 @@
owner: root
group: root
mode: u+rwx,g-wx,o-rwx
register: pfcecn
- name: template roce_mode.service file
template: dest=/etc/systemd/system/roce_mode.service src=roce_mode.service.j2 owner=root group=root mode=0644
......@@ -38,9 +40,9 @@
register: reload_service
- name: enable roce_mode setting
service: name=roce_mode state=started enabled=yes
service: name=roce_mode state=restarted enabled=yes
become: true
when: service_file.changed
when: service_file.changed or pfcecn.changed
- name: enable roce_mode setting
service: name=roce_mode state=started enabled=yes
......
......@@ -18,6 +18,14 @@ ExecStart=/usr/sbin/cma_roce_mode -d {{ device }} -p 1 -m {{ rocemode }}
ExecStartPost=/usr/sbin/pfc-ecn.sh
{% endif %}
{% if "OpenStack Nova" not in ansible_product_name %}
ExecStartPost=/sbin/ethtool -A p1p1 rx off tx off
ExecStartPost=/sbin/ethtool -A p1p2 rx off tx off
{% else %}
# disable global pause counters. Query via ethtool -a mlx0. Commented because they are always off anyway and turning them of returns code 78
#ExecStartPost=/sbin/ethtool -A mlx0 rx off tx off
{% endif %}
[Install]
WantedBy=multi-user.target
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment