• Li Wei's avatar
    tc: filter: validate filter priority in userspace. · 424adc19
    Li Wei authored
    Because we use the high 16 bits of tcm_info to pass prio value to
    kernel, thus it's range would be [0, 0xffff], without validation
    in tc when user pass a lager(>65535) priority, the actual priority
    set in kernel would confuse the user.
    
    So, add a validation to ensure prio in the range.
    424adc19
tc_filter.c 9.36 KB