From patchwork Sun Dec 15 20:53:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 1210009 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ek7GP4xV"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47bc7p3QRNz9sP3 for ; Mon, 16 Dec 2019 07:53:42 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4162680E80; Sun, 15 Dec 2019 21:53:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ek7GP4xV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7675380929; Sun, 15 Dec 2019 21:53:14 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, SPF_HELO_NONE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5938A808E5 for ; Sun, 15 Dec 2019 21:53:09 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=olteanv@gmail.com Received: by mail-wr1-x441.google.com with SMTP id w15so4812642wru.4 for ; Sun, 15 Dec 2019 12:53:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VCcdZog+kgOptXIpMd94LiH5IabpcdbhbetESUEct2o=; b=Ek7GP4xVORcoBuO5dXV1NUAQRaE8Hx4dzqNtcj7cehvvBPIZGzLSUbRIM8OEMrvA5s pU7/Egu8b+vyeWrahQJY4ufEV1/zGbIPPXAqby7q2jMf3HnP4aYYWTAWT5jIzTxwnpO3 dXS2B3kVTF1WVLzw86eP9xzpcPx7lVkwy41NURCHn2fIp4XRQXcfIWImn13lz9jVV+cJ GjXpovz8xPECcLD7U8PSyiezrScyo+QwhesSZptGaFwWHvUT0JPukvlWRxhRflBtJy5o d2Vg6WZK20A+WZSXLQGffo2vhpkALqlcFFm+aqt0FLKOwaRbGl/ZMoP6xlNqTbLmhIYn MN4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VCcdZog+kgOptXIpMd94LiH5IabpcdbhbetESUEct2o=; b=dC+BdAYAFxwyQRq/QEimjBAqnj11i2HoLo1OJSBzOdHZ+Ln6QywNDC6Ibvxz1jMzMv /13HhP6UM21hdRfvhWndQdWBVVh/WjE4u6F9wuzc5I2nP+sR1lQmiAyqE1VizhsqD04V SC4kMPOpVjBk9Ma9Ka9yDuh5j1OtXi+XJqYQLonJKSZFGLF60tu7UmhVHqpwy/ZFUMqx R4Uh8S0yc62enrh32hxjykY8cCpi0rEpq5E4BH4VJVeOXsS1QjPfW+q4AZANvShJ6uIt Qi1mVyXC9QAjTLjEu9DrgJqQqykynBn+THRGl8Y/al+nAW7bSdTaOcqkrchkAp0oW/6y U38A== X-Gm-Message-State: APjAAAXcw4sbRczzRgrZp9CidBlJD5KDemLsX+lVvHwk9t7ZcP1cqbE4 p0773m07o/J4XK7wF5ujWSQ= X-Google-Smtp-Source: APXvYqwE0YGdB9pHEt4lwG4R28f/QWMk7E6ghKFBM5V0sKz9DcD2lM/GMLbvJ2sIHRTJu9yTLWG27Q== X-Received: by 2002:adf:ea4f:: with SMTP id j15mr26909229wrn.356.1576443188987; Sun, 15 Dec 2019 12:53:08 -0800 (PST) Received: from localhost.localdomain ([86.121.29.241]) by smtp.gmail.com with ESMTPSA id g21sm19917028wrb.48.2019.12.15.12.53.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2019 12:53:08 -0800 (PST) From: Vladimir Oltean To: joe.hershberger@ni.com, u-boot@lists.denx.de Subject: [PATCH 2/3] include: import if_vlan.h from Linux Date: Sun, 15 Dec 2019 22:53:01 +0200 Message-Id: <20191215205302.13325-3-olteanv@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191215205302.13325-1-olteanv@gmail.com> References: <20191215205302.13325-1-olteanv@gmail.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: joseph.hershberger@ni.com, o.rempel@pengutronix.de, georg.waibel@sensor-technik.de Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean This is needed for the VLAN header structure. Signed-off-by: Vladimir Oltean --- include/linux/if_vlan.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 include/linux/if_vlan.h diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h new file mode 100644 index 000000000000..cbc82f4cc217 --- /dev/null +++ b/include/linux/if_vlan.h @@ -0,0 +1,26 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * VLAN An implementation of 802.1Q VLAN tagging. + * + * Authors: Ben Greear + */ +#ifndef _LINUX_IF_VLAN_H_ +#define _LINUX_IF_VLAN_H_ + +/** + * struct vlan_ethhdr - vlan ethernet header (ethhdr + vlan_hdr) + * @h_dest: destination ethernet address + * @h_source: source ethernet address + * @h_vlan_proto: ethernet protocol + * @h_vlan_TCI: priority and VLAN ID + * @h_vlan_encapsulated_proto: packet type ID or len + */ +struct vlan_ethhdr { + unsigned char h_dest[ETH_ALEN]; + unsigned char h_source[ETH_ALEN]; + __be16 h_vlan_proto; + __be16 h_vlan_TCI; + __be16 h_vlan_encapsulated_proto; +}; + +#endif /* !(_LINUX_IF_VLAN_H_) */