mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 08:36:40 +07:00
2ad7bf3638
This driver is very similar to the macvlan driver except that it uses L3 on the frame to determine the logical interface while functioning as packet dispatcher. It inherits L2 of the master device hence the packets on wire will have the same L2 for all the packets originating from all virtual devices off of the same master device. This driver was developed keeping the namespace use-case in mind. Hence most of the examples given here take that as the base setup where main-device belongs to the default-ns and virtual devices are assigned to the additional namespaces. The device operates in two different modes and the difference in these two modes in primarily in the TX side. (a) L2 mode : In this mode, the device behaves as a L2 device. TX processing upto L2 happens on the stack of the virtual device associated with (namespace). Packets are switched after that into the main device (default-ns) and queued for xmit. RX processing is simple and all multicast, broadcast (if applicable), and unicast belonging to the address(es) are delivered to the virtual devices. (b) L3 mode : In this mode, the device behaves like a L3 device. TX processing upto L3 happens on the stack of the virtual device associated with (namespace). Packets are switched to the main-device (default-ns) for the L2 processing. Hence the routing table of the default-ns will be used in this mode. RX processins is somewhat similar to the L2 mode except that in this mode only Unicast packets are delivered to the virtual device while main-dev will handle all other packets. The devices can be added using the "ip" command from the iproute2 package - ip link add link <master> <virtual> type ipvlan mode [ l2 | l3 ] Signed-off-by: Mahesh Bandewar <maheshb@google.com> Cc: Eric Dumazet <edumazet@google.com> Cc: Maciej Żenczykowski <maze@google.com> Cc: Laurent Chavey <chavey@google.com> Cc: Tim Hockin <thockin@google.com> Cc: Brandon Philips <brandon.philips@coreos.com> Cc: Pavel Emelianov <xemul@parallels.com> Signed-off-by: David S. Miller <davem@davemloft.net>
69 lines
1.9 KiB
Makefile
69 lines
1.9 KiB
Makefile
#
|
|
# Makefile for the Linux network device drivers.
|
|
#
|
|
|
|
#
|
|
# Networking Core Drivers
|
|
#
|
|
obj-$(CONFIG_BONDING) += bonding/
|
|
obj-$(CONFIG_IPVLAN) += ipvlan/
|
|
obj-$(CONFIG_DUMMY) += dummy.o
|
|
obj-$(CONFIG_EQUALIZER) += eql.o
|
|
obj-$(CONFIG_IFB) += ifb.o
|
|
obj-$(CONFIG_MACVLAN) += macvlan.o
|
|
obj-$(CONFIG_MACVTAP) += macvtap.o
|
|
obj-$(CONFIG_MII) += mii.o
|
|
obj-$(CONFIG_MDIO) += mdio.o
|
|
obj-$(CONFIG_NET) += Space.o loopback.o
|
|
obj-$(CONFIG_NETCONSOLE) += netconsole.o
|
|
obj-$(CONFIG_PHYLIB) += phy/
|
|
obj-$(CONFIG_RIONET) += rionet.o
|
|
obj-$(CONFIG_NET_TEAM) += team/
|
|
obj-$(CONFIG_TUN) += tun.o
|
|
obj-$(CONFIG_VETH) += veth.o
|
|
obj-$(CONFIG_VIRTIO_NET) += virtio_net.o
|
|
obj-$(CONFIG_VXLAN) += vxlan.o
|
|
obj-$(CONFIG_NLMON) += nlmon.o
|
|
|
|
#
|
|
# Networking Drivers
|
|
#
|
|
obj-$(CONFIG_ARCNET) += arcnet/
|
|
obj-$(CONFIG_DEV_APPLETALK) += appletalk/
|
|
obj-$(CONFIG_CAIF) += caif/
|
|
obj-$(CONFIG_CAN) += can/
|
|
obj-$(CONFIG_ETRAX_ETHERNET) += cris/
|
|
obj-$(CONFIG_NET_DSA) += dsa/
|
|
obj-$(CONFIG_ETHERNET) += ethernet/
|
|
obj-$(CONFIG_FDDI) += fddi/
|
|
obj-$(CONFIG_HIPPI) += hippi/
|
|
obj-$(CONFIG_HAMRADIO) += hamradio/
|
|
obj-$(CONFIG_IRDA) += irda/
|
|
obj-$(CONFIG_PLIP) += plip/
|
|
obj-$(CONFIG_PPP) += ppp/
|
|
obj-$(CONFIG_PPP_ASYNC) += ppp/
|
|
obj-$(CONFIG_PPP_BSDCOMP) += ppp/
|
|
obj-$(CONFIG_PPP_DEFLATE) += ppp/
|
|
obj-$(CONFIG_PPP_MPPE) += ppp/
|
|
obj-$(CONFIG_PPP_SYNC_TTY) += ppp/
|
|
obj-$(CONFIG_PPPOE) += ppp/
|
|
obj-$(CONFIG_PPPOL2TP) += ppp/
|
|
obj-$(CONFIG_PPTP) += ppp/
|
|
obj-$(CONFIG_SLIP) += slip/
|
|
obj-$(CONFIG_SLHC) += slip/
|
|
obj-$(CONFIG_NET_SB1000) += sb1000.o
|
|
obj-$(CONFIG_SUNGEM_PHY) += sungem_phy.o
|
|
obj-$(CONFIG_WAN) += wan/
|
|
obj-$(CONFIG_WLAN) += wireless/
|
|
obj-$(CONFIG_WIMAX) += wimax/
|
|
obj-$(CONFIG_IEEE802154) += ieee802154/
|
|
|
|
obj-$(CONFIG_VMXNET3) += vmxnet3/
|
|
obj-$(CONFIG_XEN_NETDEV_FRONTEND) += xen-netfront.o
|
|
obj-$(CONFIG_XEN_NETDEV_BACKEND) += xen-netback/
|
|
|
|
obj-$(CONFIG_USB_NET_DRIVERS) += usb/
|
|
|
|
obj-$(CONFIG_HYPERV_NET) += hyperv/
|
|
obj-$(CONFIG_NTB_NETDEV) += ntb_netdev.o
|