Netdev List
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] l2tp: add vlan pseudowire support
@ 2013-09-24 16:27 James Chapman
  2013-09-24 16:27 ` [RFC PATCH 1/2] vlan: export functions to register/unregister vlan devices James Chapman
  2013-09-24 16:27 ` [RFC PATCH 2/2] l2tp: add vlan pseudowire support James Chapman
  0 siblings, 2 replies; 3+ messages in thread
From: James Chapman @ 2013-09-24 16:27 UTC (permalink / raw)
  To: netdev; +Cc: James Chapman

This RFC patch series adds L2TP vlan pseudowire support by creating a
vlan netdev in addition to the l2tpeth netdev when the user creates
vlan pseudowires. To do so, new symbols are exported in 8021q to allow
l2tp to create and destroy vlan netdevs. The existing L2TP netlink API
already contains attributes for vlan pseudowires but they have been
unused to date.

L2TP vlan pseudowires are similar to the existing L2TP ethernet
pseudowires except that vlan pseudowires always carry only one vlan
and never carry untagged frames, while ethernet pseudowires can carry
any ethernet frame (tagged or untagged). It is possible to create vlan
interfaces on top of l2tpeth interfaces (ethernet pseudowires) today
using standard tools. But for VLAN pseudowires, there must be one and
only one vlan.

The changes in this patch series create a pair of netdevs per vlan
pseudowire: a vlan netdev and an l2tpeth netdev; the l2tpeth netdev is
used as the master for the vlan netdev. The master netdev must not be
configured since untagged frames are not allowed in vlan pseudowires.

Some L2TP setups have thousands of L2TP pseudowires so creating two
netdevs per vlan pseudowire isn't ideal when one might suffice. Should I
investigate changing 8021q to allow for the case where there is no
master netdev?


James Chapman (2):
  vlan: export functions to register/unregister vlan devices
  l2tp: add vlan pseudowire support

 include/linux/if_vlan.h |   11 ++++++
 net/8021q/vlan.c        |   82 ++++++++++++++++++++++++++++------------------
 net/l2tp/l2tp_eth.c     |   73 ++++++++++++++++++++++++++++++++++++++++-
 3 files changed, 132 insertions(+), 34 deletions(-)

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

end of thread, other threads:[~2013-09-24 16:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-24 16:27 [RFC PATCH 0/2] l2tp: add vlan pseudowire support James Chapman
2013-09-24 16:27 ` [RFC PATCH 1/2] vlan: export functions to register/unregister vlan devices James Chapman
2013-09-24 16:27 ` [RFC PATCH 2/2] l2tp: add vlan pseudowire support James Chapman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox