Received: by 10.192.165.148 with SMTP id m20csp780389imm; Fri, 27 Apr 2018 07:25:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoht8bI7XPDwUibUgNbpsB+PtdCeccktrlSmtflhvIgslsd/RZUmtqFq6vq98+3Jc58fOlt X-Received: by 2002:a17:902:bf0a:: with SMTP id bi10-v6mr2444898plb.235.1524839106767; Fri, 27 Apr 2018 07:25:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524839106; cv=none; d=google.com; s=arc-20160816; b=yQpPC52LHOX0kivf03hiuAaWer5bvUC7JbzxUPdLy9qWN+cj+NNHZO2q0X/Eh12a4R 66IdAECC0Uj0JDPQ46bS7xN1wrCwylCJ4Poolp2q8Jju7n6w0cqqsjuxsrMLWydWKMpQ qLwcFTWnYEcKlPURHcPCZpOxH/smXh9H6Xy6tseFRbpgTxEw/FaW9fvjWlQGhOcLwYbP eozBbXAysiyI1LmpdQAQB7mL8P6focaPeiiFc6Nvvn+537v4vI0VX7BwzqH+AasGsKK7 zI0FzeO42o1PlnvPH3IgmAFEyob9aJZ/Eo/SvTo0fQ/YKvrIZ7rvARs70EZUONouESrd 4NcQ== 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=v9fUlXJzyHqbiz7ZlWk0uw7gAZVDiYMFUlfF2tJkoPY=; b=PCpncYIIhOrF0scTX+BntS4Y5A1/YCUcWLphtwAVt/n8km2q4eUTSgo8kyUis3uGF/ rRBrcBWcR/d4jHls/xZ1RmrD95b3J+qiOJA34C8hAAYC4LIealIwcqkGSqoW4kx/17lC CNoSox0IK9x/++aUdyC3+JjIgElTDnN/4BIEvtvSTy4PEA0pi0olu82zvVzYWdKYpyko 6SFLlpUjF+F2Ev6o6KB5TgSlx5cOcfKf5bGSdKwZuEwMpT90jVT6crhNbFsn5cvxuI18 bho3q7o9rFXffzRiw+TDbZxXzfOXBB7Mj+x4RrPnlc6BhqNyZsnYE//fKzMMVwhLTywy 0PgA== 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 i1-v6si1229365pgv.591.2018.04.27.07.24.52; Fri, 27 Apr 2018 07:25:06 -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 S935194AbeD0OM3 (ORCPT + 99 others); Fri, 27 Apr 2018 10:12:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:56978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935130AbeD0OM1 (ORCPT ); Fri, 27 Apr 2018 10:12:27 -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 69F9E21895; Fri, 27 Apr 2018 14:12:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 69F9E21895 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.16 38/81] net: sched: ife: signal not finding metaid Date: Fri, 27 Apr 2018 15:58:40 +0200 Message-Id: <20180427135745.321130132@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427135743.216853156@linuxfoundation.org> References: <20180427135743.216853156@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.16-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 @@ -652,7 +652,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,