소스 검색

Merge pull request #72 from aplsms/feature-tap_custom_txqueuelen

Feature: automatically set txqueuelen for all tap* network interfaces
tags/2017.4
Filip Pytloun 8 년 전
부모
커밋
ffdf22388c
3개의 변경된 파일19개의 추가작업 그리고 0개의 파일을 삭제
  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 파일 보기

@@ -888,6 +888,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 파일 보기

@@ -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 파일 보기

@@ -292,3 +292,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 %}

Loading…
취소
저장