Commit 1063ae0
Revert "openvswitch: switch to per-action label counting in conntrack"
Currently, ovs_ct_set_labels() is only called for confirmed conntrack
entries (ct) within ovs_ct_commit(). However, if the conntrack entry
does not have the labels_ext extension, attempting to allocate it in
ovs_ct_get_conn_labels() for a confirmed entry triggers a warning in
nf_ct_ext_add():
WARN_ON(nf_ct_is_confirmed(ct));
This happens when the conntrack entry is created externally before OVS
increments net->ct.labels_used. The issue has become more likely since
commit fcb1aa5 ("openvswitch: switch to per-action label counting
in conntrack"), which changed to use per-action label counting and
increment net->ct.labels_used when a flow with ct action is added.
Since there’s no straightforward way to fully resolve this issue at the
moment, this reverts the commit to avoid breaking existing use cases.
Fixes: fcb1aa5 ("openvswitch: switch to per-action label counting in conntrack")
Reported-by: Jianbo Liu <jianbol@nvidia.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Aaron Conole <aconole@redhat.com>
Link: https://patch.msgid.link/1bdeb2f3a812bca016a225d3de714427b2cd4772.1741457143.git.lucien.xin@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent a1e64ad commit 1063ae0
2 files changed
Lines changed: 21 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1368 | 1368 | | |
1369 | 1369 | | |
1370 | 1370 | | |
1371 | | - | |
1372 | | - | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
1373 | 1376 | | |
1374 | 1377 | | |
1375 | 1378 | | |
| |||
1378 | 1381 | | |
1379 | 1382 | | |
1380 | 1383 | | |
1381 | | - | |
1382 | 1384 | | |
1383 | 1385 | | |
1384 | 1386 | | |
| |||
1407 | 1409 | | |
1408 | 1410 | | |
1409 | 1411 | | |
1410 | | - | |
1411 | | - | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
1415 | | - | |
1416 | 1412 | | |
1417 | 1413 | | |
1418 | 1414 | | |
| |||
1581 | 1577 | | |
1582 | 1578 | | |
1583 | 1579 | | |
1584 | | - | |
1585 | 1580 | | |
1586 | 1581 | | |
1587 | 1582 | | |
| |||
2006 | 2001 | | |
2007 | 2002 | | |
2008 | 2003 | | |
2009 | | - | |
| 2004 | + | |
2010 | 2005 | | |
2011 | 2006 | | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
2012 | 2015 | | |
2013 | 2016 | | |
2014 | 2017 | | |
| |||
2017 | 2020 | | |
2018 | 2021 | | |
2019 | 2022 | | |
2020 | | - | |
2021 | 2023 | | |
2022 | 2024 | | |
| 2025 | + | |
2023 | 2026 | | |
2024 | 2027 | | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
2025 | 2031 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
163 | 166 | | |
164 | 167 | | |
165 | 168 | | |
| |||
0 commit comments