summaryrefslogtreecommitdiff
path: root/data/templates/firewall/nftables-offload.j2
blob: 6afcd79f740a7b159990fa6f757b9be122f3ab1c (plain)
1
2
3
4
5
6
7
8
9
10
11
{% macro render_flowtable(name, devices, priority='filter', hardware_offload=false, with_counter=true) %}
flowtable {{ name }} {
    hook ingress priority {{ priority }}; devices = { {{ devices | join(', ') }} };
{% if hardware_offload %}
    flags offload;
{% endif %}
{% if with_counter %}
    counter
{% endif %}
}
{% endmacro %}