Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp205465imj; Thu, 14 Feb 2019 18:39:41 -0800 (PST) X-Google-Smtp-Source: AHgI3IY/4lC/wWDMnHzP0mDXAxSdy+exuN+vWSiB8wVJglWnyTyJUqBOvhY09HFCCLItKf5+DarM X-Received: by 2002:a17:902:9008:: with SMTP id a8mr7746393plp.38.1550198381737; Thu, 14 Feb 2019 18:39:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550198381; cv=none; d=google.com; s=arc-20160816; b=oUiYWf1q3XanHPCCVTp/dpo9bZA+EQzF4guFSSCdI9rROk4+a2otde4jv27/MU2hSB zlY45LxggQq1EUOxiEq3wKj+ZQI65nr6m+k94w7dvQy4WUlfFb+xq7l1qvy43I4kJJ2C N5Z7HuYgqE1U8cr4biiZ8qnF921hnICMPWx//WjHGRQtsqADeJliDEC3xE1DO6RD//cX h6LnSi7vF6vUGlA4iwgiD0pEkPqPbfZ9WuCnbNz8OrcBCMKNdeA4oxsBfTL7EOtvYJaJ UxqkN3YA5pZRo6onwhHOAmC39xPcVbEnMvheaCLhNS6yT/r8C/FQRJe7V5yX9+mv/YgQ wtTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BKEO4YjZUsrw+ZNyRZMEDtSUxO5q14ekUiMwSNDHl+s=; b=tjV8x3vW+3Cltn+UxtOybxSpl5KPr5XpHD5+prwsTZIFX1CYfiWUyzSn9RlS8oC8Hk h5dTF/lX1JHCwlaYtM9Q1xVKxggxNpILGZ36rnmjUiOyyx87oxEweQXEyIVWjWX2w2mW GTPVwFtT23eeeCtFIJ7qzy4C08oRtjkbXmSKGPhAlpCWbYzFu+PD6AjzzEyqfIBZuuOK i5fmvdt5q4qLB5n6Um58Bmv9+BpDA5ShPFIt4IM2T8yr4OPT9lkzr5yuzjD6GZDFrXy+ kbEaApA6DPsuoPvLGuolEx1cLjujfm5rnUQQt7jUXIF6r1lhW6ivK2whlnI3KKz033Y2 RHSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1AMY7SNp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o186si4106609pfb.66.2019.02.14.18.39.25; Thu, 14 Feb 2019 18:39:41 -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; dkim=pass header.i=@kernel.org header.s=default header.b=1AMY7SNp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732075AbfBOCLB (ORCPT + 99 others); Thu, 14 Feb 2019 21:11:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:51072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731997AbfBOCK6 (ORCPT ); Thu, 14 Feb 2019 21:10:58 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A1545222A1; Fri, 15 Feb 2019 02:10:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550196658; bh=jFHWkWRw26p02TRN15v96mLRgiaZCiVc7qw9ncNPpZI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1AMY7SNpDXWFv50h2lBFirw240QwYB8QCGEy6RL/cV/eh1P8G6UiwDnvrL5gGJD6N u4mZANeW3qe2k1YRBD3qtj/mRrkKHOSxYmcQQhzR2bzA1vCHylIFgz115IqdtakEbz 6wO09K+f07JrlYAiOQVWbWRdSV58tN+sGD/17EDk= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org Subject: [PATCH AUTOSEL 4.20 68/77] net: dev_is_mac_header_xmit() true for ARPHRD_RAWIP Date: Thu, 14 Feb 2019 21:08:46 -0500 Message-Id: <20190215020855.176727-68-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190215020855.176727-1-sashal@kernel.org> References: <20190215020855.176727-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maciej Żenczykowski [ Upstream commit 3b707c3008cad04604c1f50e39f456621821c414 ] __bpf_redirect() and act_mirred checks this boolean to determine whether to prefix an ethernet header. Signed-off-by: Maciej Żenczykowski Acked-by: Daniel Borkmann Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- include/linux/if_arp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/if_arp.h b/include/linux/if_arp.h index 6756fea18b69..e44746de95cd 100644 --- a/include/linux/if_arp.h +++ b/include/linux/if_arp.h @@ -54,6 +54,7 @@ static inline bool dev_is_mac_header_xmit(const struct net_device *dev) case ARPHRD_IPGRE: case ARPHRD_VOID: case ARPHRD_NONE: + case ARPHRD_RAWIP: return false; default: return true; -- 2.19.1