netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] packet: deliver VLAN TPID to userspace
@ 2013-12-17 13:53 Atzm Watanabe
  2013-12-18  5:37 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Atzm Watanabe @ 2013-12-17 13:53 UTC (permalink / raw)
  To: netdev
  Cc: Stephen Hemminger, Ben Hutchings, David Miller, Daniel Borkmann,
	David Laight

This patchset enables userspace to get VLAN TPID as well as the VLAN TCI.

After the 802.1AD support, userspace packet receivers (packet dumper,
software switch, and the like) need how to know VLAN TPID in order to
reconstruct original tagged frame.

v4: Simply use sizeof(tp_padding) for zeroing the padding bytes,
    commented by David Laight.
    Use __u16 for tp_vlan_tpid in tpacket_hdr_variant1,
    commented by Daniel Borkmann.

v3: Add a definition which indicates whether tp_vlan_tpid is valid.
    Explicitly define pad bytes for tpacket{2,3}_hdr and pick the area
    for tp_vlan_tpid from the definition.  Commented by David Laight.

v2: Add BUILD_BUG_ON() to make current aligned size of
    struct tpacket{2,3}_hdr clear.  Commented by Ben Hutchings.

Atzm Watanabe (3):
  packet: make aligned size of struct tpacket{2,3}_hdr clear
  packet: fill the gap of TPACKET_ALIGNMENT with zeros
  packet: deliver VLAN TPID to userspace

 include/uapi/linux/if_packet.h | 23 ++++++++++++++---------
 net/packet/af_packet.c         | 24 +++++++++++++++++++-----
 2 files changed, 33 insertions(+), 14 deletions(-)

-- 
1.8.1.5

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v4 0/3] packet: deliver VLAN TPID to userspace
  2013-12-17 13:53 [PATCH v4 0/3] packet: deliver VLAN TPID to userspace Atzm Watanabe
@ 2013-12-18  5:37 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-12-18  5:37 UTC (permalink / raw)
  To: atzm; +Cc: netdev, stephen, bhutchings, dborkman, David.Laight

From: Atzm Watanabe <atzm@stratosphere.co.jp>
Date: Tue, 17 Dec 2013 22:53:24 +0900

> This patchset enables userspace to get VLAN TPID as well as the VLAN TCI.
> 
> After the 802.1AD support, userspace packet receivers (packet dumper,
> software switch, and the like) need how to know VLAN TPID in order to
> reconstruct original tagged frame.
> 
> v4: Simply use sizeof(tp_padding) for zeroing the padding bytes,
>     commented by David Laight.
>     Use __u16 for tp_vlan_tpid in tpacket_hdr_variant1,
>     commented by Daniel Borkmann.
> 
> v3: Add a definition which indicates whether tp_vlan_tpid is valid.
>     Explicitly define pad bytes for tpacket{2,3}_hdr and pick the area
>     for tp_vlan_tpid from the definition.  Commented by David Laight.
> 
> v2: Add BUILD_BUG_ON() to make current aligned size of
>     struct tpacket{2,3}_hdr clear.  Commented by Ben Hutchings.

Series applied, thank you.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-18  5:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-17 13:53 [PATCH v4 0/3] packet: deliver VLAN TPID to userspace Atzm Watanabe
2013-12-18  5:37 ` David Miller

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).