ldmvsw: Split sunvnet driver into common code
authorAaron Young <aaron.young@oracle.com>
Tue, 15 Mar 2016 18:35:37 +0000 (11:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Mar 2016 23:33:00 +0000 (19:33 -0400)
commit31762eaa0d0804d34e297daad57cda45cbc6c961
treede95945195c02d0f9e89bb343bd42c163032638d
parent1e6bb1a3540fec3ef112b9a89dda88e684c3ff59
ldmvsw: Split sunvnet driver into common code

  Split sunvnet.c into sunvnet.c and sunvnet_common.c.

  Details:

  Since the sunvnet and ldmvsw drivers will both use common sunvnet code,
  move the functions (and support functions) anticipated to be common code
  from sunvnet.c to sunvnet_common.c. Similarly, sunvnet.h was renamed to
  sunvnet_common.h. The sunvnet_common.c code will be compiled into the
  kernel and act as a library of functions that are linked by either
  (or both) drivers when loaded.

  Function names for external functions in sunvnet_common.c (to be
  called by both the sunvnet and ldmvsw drivers) were tagged with a "_common"
  suffix to clearly designate them as common functions.

  No functional changes as of yet... just moved code verbatim to the new
  sunvnet_common.c/h files.

  Makefile/Kconfig support added to build sunvnet_common.c file. The code
  is included in the kernel if SUN_LDOMS is defined/selected.

  NOTE - per the SubmittingPatches documentation, since the code was just
  moved from one file another, the code was NOT checkpatch'd in this commit
  to aid in review.

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>
drivers/net/ethernet/sun/Kconfig
drivers/net/ethernet/sun/Makefile
drivers/net/ethernet/sun/sunvnet.c
drivers/net/ethernet/sun/sunvnet.h [deleted file]
drivers/net/ethernet/sun/sunvnet_common.c [new file with mode: 0644]
drivers/net/ethernet/sun/sunvnet_common.h [new file with mode: 0644]
This page took 0.024888 seconds and 5 git commands to generate.