From 043f4a9010b1bf251429a0842803ac63cd03bb83 Mon Sep 17 00:00:00 2001 From: Marek Isalski Date: Tue, 10 Aug 2021 13:31:23 +0100 Subject: [PATCH] add offloads and ringbuffers --- vyos.conf.j2 | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/vyos.conf.j2 b/vyos.conf.j2 index b8ca050..7c1dc2a 100644 --- a/vyos.conf.j2 +++ b/vyos.conf.j2 @@ -195,7 +195,22 @@ interfaces { {% elif iface_data.get('type',{}).get('label','') != 'Virtual' %} ethernet {{ iface_name }} { description "{{ iface_data['description'].replace('"','\\"') or "-" }}{% if iface_data['connected_endpoint'] and iface_data['connected_endpoint']['device'] %} ({% if iface_data['connected_endpoint']['device'] %}{{ iface_data['connected_endpoint']['name'] }} @ {{ iface_data['connected_endpoint']['device']['display'] }}{% endif %}){% endif %}" - {% if 'vrf' in salt['pillar.get']('interfaces:'+iface_name,{}) %}vrf {{ salt['pillar.get']('interfaces:'+iface_name+':vrf') }}{% endif %} + {% if 'vrf' in salt['pillar.get']('interfaces:'+iface_name,{}) %} + vrf {{ salt['pillar.get']('interfaces:'+iface_name+':vrf') }} + {% else %} + offload { + gro + gso + rps + sg + tso + ufo + } + ring-buffer { + rx 4096 + tx 4096 + } + {% endif %} {% for address in iface_data['addresses'] %} address {{ address['address'] }} {% endfor %}