Skip to content

RFC l2tp: add vlan pseudowire support

James Chapman netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vlan: export functions to register/unregister vlan devicesinclude/linux/if_vlan.h net/8021q/vlan.c+61 -320 replies
2/2l2tp: add vlan pseudowire supportnet/l2tp/l2tp_eth.c+71 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] l2tp: add vlan pseudowire support

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