summaryrefslogtreecommitdiff
path: root/net/tipc/msg.c
diff options
context:
space:
mode:
authorIvan Vecera <ivecera@redhat.com>2018-02-08 18:10:39 +0300
committerDavid S. Miller <davem@davemloft.net>2018-02-08 23:27:58 +0300
commiteb53f7af6f15285e2f6ada97285395343ce9f433 (patch)
treea0d8288be4929ac39f3b115e1f159f8979b6b21e /net/tipc/msg.c
parent3968523f855050b8195134da951b87c20bd66130 (diff)
downloadlinux-eb53f7af6f15285e2f6ada97285395343ce9f433.tar.xz
net/sched: cls_u32: fix cls_u32 on filter replace
The following sequence is currently broken: # tc qdisc add dev foo ingress # tc filter replace dev foo protocol all ingress \ u32 match u8 0 0 action mirred egress mirror dev bar1 # tc filter replace dev foo protocol all ingress \ handle 800::800 pref 49152 \ u32 match u8 0 0 action mirred egress mirror dev bar2 Error: cls_u32: Key node flags do not match passed flags. We have an error talking to the kernel, -1 The error comes from u32_change() when comparing new and existing flags. The existing ones always contains one of TCA_CLS_FLAGS_{,NOT}_IN_HW flag depending on offloading state. These flags cannot be passed from userspace so the condition (n->flags != flags) in u32_change() always fails. Fix the condition so the flags TCA_CLS_FLAGS_NOT_IN_HW and TCA_CLS_FLAGS_IN_HW are not taken into account. Fixes: 24d3dc6d27ea ("net/sched: cls_u32: Reflect HW offload status") Signed-off-by: Ivan Vecera <ivecera@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/msg.c')
0 files changed, 0 insertions, 0 deletions