summaryrefslogtreecommitdiff
path: root/data/templates/firewall/nftables-offload.j2
blob: a893e05b2174a08110ef492af2a0d527412f2f43 (plain)
1
2
3
4
5
6
7
8
9
{% macro flowtable(name, config) %}
    flowtable VYOS_FLOWTABLE_{{ name }} {
        hook ingress priority 0; devices = { {{ config.interface | join(', ') }} };
{% if config.offload is vyos_defined('hardware') %}
        flags offload;
{% endif %}
        counter
    }
{% endmacro %}