Skip to content

RFC net: L2 only interfaces

Florian Fainelli netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: add IFF_L2_ONLY flaginclude/uapi/linux/if.h+4 -10 replies
2/5net: ipv4: Skip in_dev initialization for IFF_L2_ONLY interfacesnet/ipv4/devinet.c+3 -00 replies
3/5net: ipv6: Skip in6_dev initialization for IFF_L2_ONLY interfacesnet/ipv6/addrconf.c+4 -00 replies
4/5net: dsa: Flag slave network devices with IFF_L2_ONLYnet/dsa/slave.c+1 -00 replies
5/5net: dsa: bcm_sf2: Allow disabling tagging protocoldrivers/net/dsa/bcm_sf2.c+13 -31 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH RFC 0/5] net: L2 only interfaces

Hi all,

This patch series implements a L2 only interface concept which basically denies any kind of IP address configuration on these interfaces, but still allows them to be used as configuration end-points to keep using ethtool and friends.

A cleaner approach might be to finally come up with the concept of net_port which a net_device would be a superset of, but this still raises tons of questions as to whether we should be modifying userland tools to be able to configure/query these interfaces. During all the switch talks/discussions last year, it seemed to me like th L2-only interface is closest we have to a "network port".

Comments, flames, flying tomatoes welcome!

Florian Fainelli (5):
net: add IFF_L2_ONLY flag
net: ipv4: Skip in_dev initialization for IFF_L2_ONLY interfaces
net: ipv6: Skip in6_dev initialization for IFF_L2_ONLY interfaces
net: dsa: Flag slave network devices with IFF_L2_ONLY
net: dsa: bcm_sf2: Allow disabling tagging protocol

 drivers/net/dsa/bcm_sf2.c | 16 +++++++++++++---
 include/uapi/linux/if.h   |  5 ++++-
 net/dsa/slave.c           |  1 +
 net/ipv4/devinet.c        |  3 +++
 net/ipv6/addrconf.c       |  4 ++++
 5 files changed, 25 insertions(+), 4 deletions(-)
Signature · 1 line
2.1.0