Received: by 10.192.165.148 with SMTP id m20csp762186imm; Fri, 27 Apr 2018 07:08:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqCxozb0oALD9unVViQE3gdtPu19XGblrXS1TNZM+pUiehCTmF3i03YHhmE0I/Jot9CrrVL X-Received: by 2002:a65:4c82:: with SMTP id m2-v6mr2298458pgt.23.1524838134404; Fri, 27 Apr 2018 07:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524838134; cv=none; d=google.com; s=arc-20160816; b=hNVkWotdVJA+wwMYUtZ0WvM8k3pD4lS+Wqi/7f2RhweVvIolF1g3R6gXtmy6YSiAxK lz33YZL+Q/4vzIgQHcvXis0Va4uouJsKEI0K1YcOIpPyystd8mn22mZNgUBuc5A39Eqn MIsofVOZU93kpleB/UdkasKbGINYyAiTaJwsrROj5kW2sAloiLKWbLiS8VBTuIWhbMYh qe+EZZmQP7PhTyXjtt8juQhiwZAx5yHOcbT6gd3g6SCC0ZJ3mxETi+1+b2CRT/s8SaeG +gzSG4YlYnPRiuutI8zz7bn3kHGBETYezIwLP9POOF7liuRt9K0nJrHhV1bL6YFbkT7U ZDhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dmarc-filter :arc-authentication-results; bh=s9x3202xR3rUwXvdGD9K1mOUXozwLOQJYzKsjY9aDxQ=; b=Q1s56L5a0PgKySa8y0h5SPOBEVXevR51XN8q7I5V0EtNs9SSCR3DJpxHFyX2iIQNvv 7lD3ap2Hhmd/fIuNRciD4m2d6ccKI3ME5RL+2MsWcg5SpxZvnpFlsxVxT/1k6NZnZsrI YObms5zoB3dUQkkTDKdIOtkeMJoMWKKVsJ4qc0s73tVEncMYYIFWgpY5kXZsMc+5ncIa HhoR3RPsmM48DuHRw5NZX6NzBPVbd+rq46h2DiTU+0uW8Bj5zS183QwWocX/hefy9QmG Z2AH1kCroULh3OlaYvPXV+zl8ggHHd+9YSXKNeBR1OyzNgNJHvOkeMwtFftCO0jjjbLT veFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s22-v6si1359995plp.216.2018.04.27.07.08.40; Fri, 27 Apr 2018 07:08:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934259AbeD0OHL (ORCPT + 99 others); Fri, 27 Apr 2018 10:07:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:53020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933954AbeD0OHI (ORCPT ); Fri, 27 Apr 2018 10:07:08 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5CD7C21864; Fri, 27 Apr 2018 14:07:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5CD7C21864 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=gregkh@linuxfoundation.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexander Aring , Yotam Gigi , Jamal Hadi Salim , "David S. Miller" Subject: [PATCH 4.14 32/80] net: sched: ife: signal not finding metaid Date: Fri, 27 Apr 2018 15:58:25 +0200 Message-Id: <20180427135734.608327344@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427135732.928644313@linuxfoundation.org> References: <20180427135732.928644313@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alexander Aring [ 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 Reviewed-by: Yotam Gigi Acked-by: Jamal Hadi Salim Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- 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,