summaryrefslogtreecommitdiff
path: root/net/nfc/digital_technology.c
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2024-12-02 10:21:38 -0500
committerDavid S. Miller <davem@davemloft.net>2024-12-04 10:35:14 +0000
commit292207809486d99c78068d3f459cbbbffde88415 (patch)
tree3eae226047906a6f0e96558449e7e6428d6a78d7 /net/nfc/digital_technology.c
parent94071909477677fc2a1abf3fb281f203f66cf3ca (diff)
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: 79b1011cb33d ("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>
Diffstat (limited to 'net/nfc/digital_technology.c')
0 files changed, 0 insertions, 0 deletions