Commit 43b6780
Xin Long
net: sched: fix erspan_opt settings in cls_flower
JIRA: https://issues.redhat.com/browse/RHEL-73195
Tested: compile only
commit 2922078
Author: Xin Long <lucien.xin@gmail.com>
Date: Mon Dec 2 10:21:38 2024 -0500
net: sched: fix erspan_opt settings in cls_flower
When matching erspan_opt in cls_flower, only the (version, dir, hwid)
fields are relevant. However, in fl_set_erspan_opt() it initializes
all bits of erspan_opt and its mask to 1. This inadvertently requires
packets to match not only the (version, dir, hwid) fields but also the
other fields that are unexpectedly set to 1.
This patch resolves the issue by ensuring that only the (version, dir,
hwid) fields are configured in fl_set_erspan_opt(), leaving the other
fields to 0 in erspan_opt.
Fixes: 79b1011 ("net: sched: allow flower to match erspan options")
Reported-by: Shuang Li <shuali@redhat.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Xin Long <lxin@redhat.com>1 parent 6da47a8 commit 43b6780
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1369 | 1369 | | |
1370 | 1370 | | |
1371 | 1371 | | |
1372 | | - | |
1373 | 1372 | | |
1374 | 1373 | | |
1375 | 1374 | | |
| |||
1398 | 1397 | | |
1399 | 1398 | | |
1400 | 1399 | | |
| 1400 | + | |
1401 | 1401 | | |
1402 | 1402 | | |
1403 | | - | |
1404 | 1403 | | |
1405 | 1404 | | |
1406 | 1405 | | |
| |||
1409 | 1408 | | |
1410 | 1409 | | |
1411 | 1410 | | |
| 1411 | + | |
1412 | 1412 | | |
1413 | 1413 | | |
1414 | 1414 | | |
1415 | 1415 | | |
| 1416 | + | |
1416 | 1417 | | |
1417 | 1418 | | |
1418 | 1419 | | |
| |||
0 commit comments