From: Ramon Fried <rfried.dev@gmail.com>
To: Vladimir Oltean <vladimir.oltean@nxp.com>
Cc: U-Boot Mailing List <u-boot@lists.denx.de>,
Joe Hershberger <joe.hershberger@ni.com>,
Priyanka Jain <priyanka.jain@nxp.com>
Subject: Re: [PATCH 2/9] include: import if_vlan.h from Linux
Date: Tue, 28 Sep 2021 16:26:09 +0300 [thread overview]
Message-ID: <CAGi-RUKajDmeAXrGXXO30PAKJyJ6EZs05a-9=VJ1rM7qCdi=rA@mail.gmail.com> (raw)
In-Reply-To: <20210927234825.823582-3-vladimir.oltean@nxp.com>
On Tue, Sep 28, 2021 at 2:48 AM Vladimir Oltean <vladimir.oltean@nxp.com> wrote:
>
> This is needed for the VLAN header structure.
>
> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
> ---
> 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 <greearb@candelatech.com>
> + */
> +#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 <rfried.dev@gmail.com>
next prev parent reply other threads:[~2021-09-28 13:26 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-27 23:48 [PATCH 0/9] Support the SJA1105 DSA switch on the NXP LS1021A-TSN board Vladimir Oltean
2021-09-27 23:48 ` [PATCH 1/9] net: tsec: add support for promiscuous mode Vladimir Oltean
2021-09-28 13:34 ` Ramon Fried
2021-09-29 2:32 ` Bin Meng
2021-09-27 23:48 ` [PATCH 2/9] include: import if_vlan.h from Linux Vladimir Oltean
2021-09-28 13:26 ` Ramon Fried [this message]
2021-09-29 2:32 ` Bin Meng
2021-09-27 23:48 ` [PATCH 3/9] net: dsa: allow drivers to get the port OF node Vladimir Oltean
2021-09-28 13:34 ` Ramon Fried
2021-09-27 23:48 ` [PATCH 4/9] net: introduce a helper to determine whether to use in-band autoneg Vladimir Oltean
2021-09-28 13:34 ` Ramon Fried
2021-09-29 2:32 ` Bin Meng
2021-09-27 23:48 ` [PATCH 5/9] net: dsa: felix: configure the in-band autoneg property based on OF node info Vladimir Oltean
2021-09-28 13:34 ` Ramon Fried
2021-09-29 12:21 ` Vladimir Oltean
2021-09-27 23:48 ` [PATCH 6/9] net: add driver for NXP SJA1105 DSA L2 switch Vladimir Oltean
2021-09-28 13:35 ` Ramon Fried
2021-09-27 23:48 ` [PATCH 7/9] arm: dts: ls1021a-tsn: add sja1105 and eth2 bindings Vladimir Oltean
2021-09-28 13:26 ` Ramon Fried
2021-09-27 23:48 ` [PATCH 8/9] configs: ls1021a-tsn: enable sja1105 switch driver Vladimir Oltean
2021-09-28 13:26 ` Ramon Fried
2021-09-29 2:33 ` Bin Meng
2021-09-27 23:48 ` [PATCH 9/9] configs: ls1021a-tsn: enable the generation of random Ethernet MAC addresses Vladimir Oltean
2021-09-28 13:26 ` Ramon Fried
2021-09-29 2:33 ` Bin Meng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGi-RUKajDmeAXrGXXO30PAKJyJ6EZs05a-9=VJ1rM7qCdi=rA@mail.gmail.com' \
--to=rfried.dev@gmail.com \
--cc=joe.hershberger@ni.com \
--cc=priyanka.jain@nxp.com \
--cc=u-boot@lists.denx.de \
--cc=vladimir.oltean@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).