Commit 4201f39
committed
netfilter: nf_tables: set element timeout update support
Store new timeout and expiration in transaction object, use them to
update elements from .commit path. Otherwise, discard update if .abort
path is exercised.
Use update_flags in the transaction to note whether the timeout,
expiration, or both need to be updated.
Annotate access to timeout extension now that it can be updated while
lockless read access is possible.
Reject timeout updates on elements with no timeout extension.
Element transaction remains in the 96 bytes kmalloc slab on x86_64 after
this update.
This patch requires ("netfilter: nf_tables: use timestamp to check for
set element timeout") to make sure an element does not expire while
transaction is ongoing.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>1 parent 8bfb74a commit 4201f39
File tree
3 files changed
+59
-6
lines changed- include/net/netfilter
- net/netfilter
3 files changed
+59
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
833 | 833 | | |
834 | 834 | | |
835 | 835 | | |
836 | | - | |
| 836 | + | |
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
| |||
1749 | 1749 | | |
1750 | 1750 | | |
1751 | 1751 | | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
1752 | 1757 | | |
1753 | 1758 | | |
1754 | 1759 | | |
1755 | 1760 | | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
1756 | 1764 | | |
1757 | 1765 | | |
1758 | 1766 | | |
| |||
1762 | 1770 | | |
1763 | 1771 | | |
1764 | 1772 | | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
1765 | 1779 | | |
1766 | 1780 | | |
1767 | 1781 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5815 | 5815 | | |
5816 | 5816 | | |
5817 | 5817 | | |
5818 | | - | |
| 5818 | + | |
5819 | 5819 | | |
5820 | 5820 | | |
5821 | 5821 | | |
| |||
6852 | 6852 | | |
6853 | 6853 | | |
6854 | 6854 | | |
| 6855 | + | |
6855 | 6856 | | |
6856 | 6857 | | |
6857 | 6858 | | |
| |||
7163 | 7164 | | |
7164 | 7165 | | |
7165 | 7166 | | |
7166 | | - | |
| 7167 | + | |
7167 | 7168 | | |
| 7169 | + | |
| 7170 | + | |
| 7171 | + | |
| 7172 | + | |
| 7173 | + | |
| 7174 | + | |
| 7175 | + | |
| 7176 | + | |
| 7177 | + | |
| 7178 | + | |
| 7179 | + | |
| 7180 | + | |
| 7181 | + | |
| 7182 | + | |
| 7183 | + | |
| 7184 | + | |
| 7185 | + | |
| 7186 | + | |
| 7187 | + | |
| 7188 | + | |
| 7189 | + | |
| 7190 | + | |
7168 | 7191 | | |
7169 | 7192 | | |
7170 | 7193 | | |
| |||
10489 | 10512 | | |
10490 | 10513 | | |
10491 | 10514 | | |
10492 | | - | |
| 10515 | + | |
| 10516 | + | |
| 10517 | + | |
| 10518 | + | |
| 10519 | + | |
| 10520 | + | |
| 10521 | + | |
| 10522 | + | |
| 10523 | + | |
| 10524 | + | |
| 10525 | + | |
| 10526 | + | |
| 10527 | + | |
| 10528 | + | |
| 10529 | + | |
| 10530 | + | |
10493 | 10531 | | |
10494 | 10532 | | |
10495 | 10533 | | |
| |||
10789 | 10827 | | |
10790 | 10828 | | |
10791 | 10829 | | |
10792 | | - | |
| 10830 | + | |
| 10831 | + | |
10793 | 10832 | | |
10794 | 10833 | | |
10795 | 10834 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
0 commit comments