Received: by 10.223.185.116 with SMTP id b49csp1100326wrg; Fri, 23 Feb 2018 11:57:40 -0800 (PST) X-Google-Smtp-Source: AH8x226clxTW/CYE5LxiT+krKlHJpNSkx53l0/0db3D35pKLYLhiOepjSJfCd6TE10DYFUyWy2iJ X-Received: by 10.99.36.70 with SMTP id k67mr2335807pgk.48.1519415860155; Fri, 23 Feb 2018 11:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519415860; cv=none; d=google.com; s=arc-20160816; b=0lL3i9Vtk/fD8yVAY2sa3piqCwi84ggZ15yxRCBHqtH9WypvFV/skoTLk8DFYm/DOt SWXOoOmzV8DzaSm0q7FC8TDf6H6rVqwBLERLiAvkvU3zfLbp2OL7yp3lSaTrUSabPRSB hqDg5sVzJnTAwEXnRXWj4JKsO+pRemq8r+4ddXsC6/ENyCgBTVhz2TD3BH6joomP0sr9 NHuu01rdPcVFIq+mH2r8nf4gU24dEWex2Rs2HV3EpbudBZLkWW/zqnsQza4YO+GB8JVx acQjIKNxQIZ0LYUuW3TlzxSVyhYusbrELFt2cw3qaf5cMoCWJfGCeb8vzFyg0gRv1UYs LwIg== 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 :arc-authentication-results; bh=A4bnxl9Jb5rE9Y1EurcQlwmEbvVs0+HIZpIADrE4+a4=; b=JfyAebISrouix1E2HhCiAhmh9hHc6eUQyuUiQaE0r2s+zYP8tc6bjedK6SdWOgMnfu thNYDl4X8jAX52Je2FnHT0lM+AHYLnQuH9Zil3qtE4Fu9ieUh8T3c/Ti/gatApZ4fJax PiwkqJMx6/iuWOoe4tTonXIeqt4PuCR213TNS06BFoekKIs3Qp+d6iPWvNP7n7L3i/zT 6QBxWCXCgvxafq7bZs6QGrhH96o8Sh2rNvG4Ko1kzsdSpE4qVi+DGbjJvYureZ30++P7 UVolxVXOPl+48DIscPKGLrixUtiAiJPSISiyzdWP2ZsU+w57dFxmmAvIr4UPi3E7yZFa gHvw== 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 p8-v6si2244154pll.84.2018.02.23.11.57.25; Fri, 23 Feb 2018 11:57:40 -0800 (PST) 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 S933726AbeBWT4Y (ORCPT + 99 others); Fri, 23 Feb 2018 14:56:24 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:42962 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754212AbeBWSow (ORCPT ); Fri, 23 Feb 2018 13:44:52 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D19B31269; Fri, 23 Feb 2018 18:44:42 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Gao Feng , "David S. Miller" , Sasha Levin Subject: [PATCH 4.9 059/145] ipvlan: Add the skb->mark as flow4s member to lookup route Date: Fri, 23 Feb 2018 19:26:05 +0100 Message-Id: <20180223170732.421385784@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170724.669759283@linuxfoundation.org> References: <20180223170724.669759283@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.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Gao Feng [ Upstream commit a98a4ebc8c61d20f0150d6be66e0e65223a347af ] Current codes don't use skb->mark to assign flowi4_mark, it would make the policy route rule with fwmark doesn't work as expected. Signed-off-by: Gao Feng Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ipvlan/ipvlan_core.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/ipvlan/ipvlan_core.c +++ b/drivers/net/ipvlan/ipvlan_core.c @@ -370,6 +370,7 @@ static int ipvlan_process_v4_outbound(st .flowi4_oif = dev->ifindex, .flowi4_tos = RT_TOS(ip4h->tos), .flowi4_flags = FLOWI_FLAG_ANYSRC, + .flowi4_mark = skb->mark, .daddr = ip4h->daddr, .saddr = ip4h->saddr, };