Explorar el Código

Feature: automatically set txqueuelen for all tap* network interfaces

Config:

linux:
  network:
    tap_custom_txqueuelen: 10000

in case of configuration parameter defined will create file:

/etc/udev/rules.d/60-net-txqueue.rules

with content:

KERNEL==”tap[0-9a-z\-]*", RUN+="/sbin/ip link set %k txqueuelen 10000"
tags/2017.4
Andrii Petrenko hace 7 años
padre
commit
735761d3e5
Se han modificado 3 ficheros con 19 adiciones y 0 borrados
  1. +8
    -0
      README.rst
  2. +1
    -0
      linux/files/60-net-txqueue.rules
  3. +10
    -0
      linux/network/interface.sls

+ 8
- 0
README.rst Ver fichero

@@ -771,6 +771,14 @@ Setup resolv.conf, nameservers, domain and search domains
- timeout: 2
- attempts: 2

**setting custom TX queue length for tap interfaces**

.. code-block:: yaml

linux:
network:
tap_custom_txqueuelen: 10000

DPDK OVS interfaces
--------------------


+ 1
- 0
linux/files/60-net-txqueue.rules Ver fichero

@@ -0,0 +1 @@
KERNEL==”tap[0-9a-z\-]*", RUN+="/sbin/ip link set %k txqueuelen {{ network.tap_custom_txqueuelen }}"

+ 10
- 0
linux/network/interface.sls Ver fichero

@@ -285,3 +285,13 @@ NetworkManager:
- enable: false

{%- endif %}

{%- if network.tap_custom_txqueuelen is defined %}

/etc/udev/rules.d/60-net-txqueue.rules:
file.managed:
- source: salt://linux/files/60-net-txqueue.rules
- mode: 755
- template: jinja

{%- endif %}

Cargando…
Cancelar
Guardar