linux/drivers/net/ethernet/sun
Aaron Young 5d01fa0c6b ldmvsw: Add ldmvsw.c driver code
Add ldmvsw.c driver

  Details:

  The ldmvsw driver very closely follows the sunvnet.c code and makes
  use of the sunvnet_common.c code for core functionality.

  A significant difference between sunvnet and ldmvsw driver is
  sunvnet creates a network interface for each vnet-port *parent*
  node in the MD while the ldmvsw driver creates a network interface
  for every vsw-port node in the Machine Description (MD).
  Therefore the netdev_priv() for sunvnet is a vnet structure while
  the netdev_priv() for ldmvsw is a vnet_port structure.

  Vnet_port structures allocated by ldmvsw have the vsw bit set.
  When finding the net_device associated with a port, the common code keys
  off this bit to use either the net_device found in the vnet_port or the
  net_device in the vnet structure (see the VNET_PORT_TO_NET_DEVICE() macro in
  sunvnet_common.h). This scheme allows the common code to work with
  both drivers with minimal changes.

  Similar to Xen, network interfaces created by the ldmvsw driver will always
  have a HW Addr (i.e. mac address) of FE:FF:FF:FF:FF:FF and each will be
  assigned the devname "vif<cfg_handle>.<port_id>" - where <cfg_handle> and
  <port_id> are a unique handle/port pair assigned to the associated
  vsw-port node in the MD.

  Signed-off-by: Aaron Young <aaron.young@oracle.com>
  Signed-off-by: Rashmi Narasimhan <rashmi.narasimhan@oracle.com>
  Reviewed-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
  Reviewed-by: Alexandre Chartre <Alexandre.Chartre@oracle.com>

Signed-off-by: David S. Miller <davem@davemloft.net>
2016-03-18 19:33:00 -04:00
..
cassini.c drivers/net: get rid of unnecessary initializations in .get_drvinfo() 2015-10-16 00:24:10 -07:00
cassini.h ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
Kconfig ldmvsw: Add ldmvsw.c driver code 2016-03-18 19:33:00 -04:00
ldmvsw.c ldmvsw: Add ldmvsw.c driver code 2016-03-18 19:33:00 -04:00
Makefile ldmvsw: Add ldmvsw.c driver code 2016-03-18 19:33:00 -04:00
niu.c niu: don't count tx error twice in case of headroom realloc fails 2015-07-26 21:17:54 -07:00
niu.h
sunbmac.c net: ethernet: sun: drop owner assignment from platform_drivers 2014-10-20 16:21:13 +02:00
sunbmac.h
sungem.c sungem, sunhme, sunvnet: Update drivers to use dma_wmb/rmb 2015-04-08 12:15:14 -04:00
sungem.h
sunhme.c sungem, sunhme, sunvnet: Update drivers to use dma_wmb/rmb 2015-04-08 12:15:14 -04:00
sunhme.h
sunqe.c net: ethernet: sun: drop owner assignment from platform_drivers 2014-10-20 16:21:13 +02:00
sunqe.h
sunvnet_common.c ldmvsw: Make sunvnet_common compatible with ldmvsw 2016-03-18 19:33:00 -04:00
sunvnet_common.h ldmvsw: Make sunvnet_common compatible with ldmvsw 2016-03-18 19:33:00 -04:00
sunvnet.c ldmvsw: Make sunvnet_common compatible with ldmvsw 2016-03-18 19:33:00 -04:00