lkml.org 
[lkml]   [2018]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 32/80] net: sched: ife: signal not finding metaid
    Date
    4.14-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Alexander Aring <aring@mojatatu.com>


    [ Upstream commit f6cd14537ff9919081be19b9c53b9b19c0d3ea97 ]

    We need to record stats for received metadata that we dont know how
    to process. Have find_decode_metaid() return -ENOENT to capture this.

    Signed-off-by: Alexander Aring <aring@mojatatu.com>
    Reviewed-by: Yotam Gigi <yotam.gi@gmail.com>
    Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    net/sched/act_ife.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/net/sched/act_ife.c
    +++ b/net/sched/act_ife.c
    @@ -605,7 +605,7 @@ static int find_decode_metaid(struct sk_
    }
    }

    - return 0;
    + return -ENOENT;
    }

    static int tcf_ife_decode(struct sk_buff *skb, const struct tc_action *a,

    \
     
     \ /
      Last update: 2018-04-27 16:53    [W:3.973 / U:0.564 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site