• Jiri Pirko's avatar
    net: sched: cls_matchall: allow to delete filter · f517f271
    Jiri Pirko authored
    Currently user is unable to delete the filter. See following example:
    $ tc filter add dev ens16np1 ingress pref 1 handle 1 matchall action drop
    $ tc filter show dev ens16np1 ingress
    filter protocol all pref 1 matchall chain 0
    filter protocol all pref 1 matchall chain 0 handle 0x1
      in_hw
            action order 1: gact action drop
             random type none pass val 0
             index 1 ref 1 bind 1
    
    $ tc filter del dev ens16np1 ingress pref 1 handle 1 matchall action drop
    RTNETLINK answers: Operation not supported
    
    Implement tcf_proto_ops->delete() op and allow user to delete the filter.
    Reported-by: default avatarEli Cohen <eli@mellanox.com>
    Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    f517f271
cls_matchall.c 9.97 KB