Received: by 10.223.185.116 with SMTP id b49csp1133832wrg; Fri, 23 Feb 2018 12:31:49 -0800 (PST) X-Google-Smtp-Source: AH8x225xpvu2bXAqCaFeSGrVDYld2hcEbmQufdASYyey2u8GJduYfVBPXWjo71B6lwhCperjWd2/ X-Received: by 2002:a17:902:5a88:: with SMTP id r8-v6mr2900294pli.426.1519417909199; Fri, 23 Feb 2018 12:31:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519417909; cv=none; d=google.com; s=arc-20160816; b=UmXS8k70nbxDNRFIRnXEAT7MKnDu+w4ocAOOOOCbUDFd4vXb9HAvAN0QMqW/7FAq0y k7ydh8LfHt5gtRZdCnxMZxQHS5undBfiErMtGYzkrvme5RKn9oSYcKxYkeVe+bsL7ENS 7AhCHF1WC0CqiIko+ZUF1P6ELYVVNIH8ccFrzSVDDXqQi6rUx/d0tAvzHM5CcqTEEQeQ YaM5yzI5SC3etDwp7nYjH4MrDScdBn/QE2HsSn0c04g6k8jXsnS/hamzYBhko3DQG4K1 RNWuxG3fw8MXgLZeDnp8kUqQFfY75BS7ipGj2Zp47FP8eTathg7tIoxhfOxluMma0Z7J L/Jw== 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=1C4CMbjl3IVsqHL5SlBbPgsFJNGCgNfa5OSGA8pRnMY=; b=t94vVUwdTKeTj2whHbdyqrpzwFqoHQKjXHb1gT9cSvWmVhudTAyxPs0Nrs/7U26lu3 AvLwriAN3KO6nx9ZTJZUbVB0tcI5pUh099IW/HOZc+pqR4HH9i9xk/94ApsGpAC90IBo nDdIAsCTjvc5xCVQLq5rLnlEXhVUDgFn94x3rFdMCKiClBmVwZVggdPwf+jIItoXu5cs 1DiFsO98jmWZ8WKzKg6Lr3O0cHWMUO6aYcbWZDc2DuUU/ocFYXTk6iiYq/+tY1QJLORM DqwgflWbi0ihhBuvc8hmb3dQvKxlkbC5Ced+uDwzlNEpRYaqR1Y7O2RlxOPdJrE2KMkc 5fEw== 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 j10si1948299pgn.571.2018.02.23.12.31.35; Fri, 23 Feb 2018 12:31:49 -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 S1754003AbeBWSgR (ORCPT + 99 others); Fri, 23 Feb 2018 13:36:17 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:37606 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752639AbeBWSgO (ORCPT ); Fri, 23 Feb 2018 13:36:14 -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 2CFA61311; Fri, 23 Feb 2018 18:36:14 +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.4 041/193] ipvlan: Add the skb->mark as flow4s member to lookup route Date: Fri, 23 Feb 2018 19:24:34 +0100 Message-Id: <20180223170332.474008716@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170325.997716448@linuxfoundation.org> References: <20180223170325.997716448@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.4-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 @@ -353,6 +353,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, };