From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F241FC433EF for ; Tue, 28 Sep 2021 13:26:29 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 47934611C3 for ; Tue, 28 Sep 2021 13:26:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 47934611C3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5F01283130; Tue, 28 Sep 2021 15:26:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (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=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="lvJJ3Yf3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D171E8318E; Tue, 28 Sep 2021 15:26:25 +0200 (CEST) Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) (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 9387182E67 for ; Tue, 28 Sep 2021 15:26:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rfried.dev@gmail.com Received: by mail-oi1-x236.google.com with SMTP id n64so10633755oih.2 for ; Tue, 28 Sep 2021 06:26:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2dBP2YdXLwuiflVjCRB50wpsvyb9ehjigftNuWub8gw=; b=lvJJ3Yf344GSrjnppq0V81llaytpuVoXOqvL74DkIuvaxLO3JNBhOC+hMvcMPGEUqJ EsFXa3C6UUMjRUQw/FJ2iytDUqN1Fcoucd0DyjDO7gJYNpjhoN28pSVnQc9YFKIZtArS IrBd30J+yBBTOgbiucqENTQFJ1W5XcLn6CPuGCWS0fz/1tyy/FNLa3719tJELw4l/x8Y /gEw6vCVR618tv+muZ/1V8rRLRcLWf8tO9eUqk+6ov6YCEav2XAQKpHpTGDUarZmhwXi fiYxfGFVLNTVa0i8oKVTRdcNVz282vCxCEHruOvhwY1En+mFasZu3lW4xKza7uDLs7hW dsTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2dBP2YdXLwuiflVjCRB50wpsvyb9ehjigftNuWub8gw=; b=pUmAOM1hEGPUnATTNppZSbP29QgAAat3wwheFs0yDHkyTb7QLQVmOqy008gBh9K8d2 JgpJm+3PnjQV0K5unua73L0lEnXZ87W5LwyHnzd2S0uqy9mltf6XkBP1LrrBoqhJLdVL eavwZT3IaJL0WcbeCAcUJPgpgWsL3h6iFeSUTC5B+3b8EVVMlLC0bnDikMDteipKpZDK vrjEch0MjWnV/IfGCuDZC9sK+JtsFTW/6IhqSb7nDhVY2InjoXlbH90Dadr5FAz+Ata9 MThcvJ692A3YDCOymK4KbLPQrlvJaVcP1Gt/6GyOlyO98hOxoPvdYhxErr5e+9EiSKMk S2Yg== X-Gm-Message-State: AOAM530K3ZFzKS+Lir0R/gidyr5TlkpUyg5JQZWFsGK4b3/Wivsjnuj+ NC5KQ+7LCxyi+kElJtnCAbmfqrpPlsOFweoZgVkhpBJzf3V2YQ== X-Google-Smtp-Source: ABdhPJzGD0oQKIAEVtfwVW+0pRqOecsrgMbkd0DLD2WRPqqFVep9uTCCh1B5H3XKPdrMHRHjiWiHtOczulv/1HtDqgs= X-Received: by 2002:a05:6808:bd1:: with SMTP id o17mr3677601oik.92.1632835581400; Tue, 28 Sep 2021 06:26:21 -0700 (PDT) MIME-Version: 1.0 References: <20210927234825.823582-1-vladimir.oltean@nxp.com> <20210927234825.823582-3-vladimir.oltean@nxp.com> In-Reply-To: <20210927234825.823582-3-vladimir.oltean@nxp.com> From: Ramon Fried Date: Tue, 28 Sep 2021 16:26:09 +0300 Message-ID: Subject: Re: [PATCH 2/9] include: import if_vlan.h from Linux To: Vladimir Oltean Cc: U-Boot Mailing List , Joe Hershberger , Priyanka Jain Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On Tue, Sep 28, 2021 at 2:48 AM Vladimir Oltean wrote: > > 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_) */ > -- > 2.25.1 > Reviewed-by: Ramon Fried