net: mvpp2: Split the PPv2 driver to a dedicated directory
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Thu, 31 May 2018 08:07:43 +0000 (10:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jun 2018 15:29:35 +0000 (11:29 -0400)
commitdb9d7d36eecc8926f03a8f2e46781887577b3353
tree7379f5e032171776b7ef0f8216cbcc7be4c00023
parentc431f89b18a2bd62f74174829565e6433fc0c109
net: mvpp2: Split the PPv2 driver to a dedicated directory

As the mvpp2 driver is growing, move this driver to a dedicated
directory and split it into several files.

Since this driver has a lot of register defines and structure
definitions, it can benefit from having all of this into a dedicated
header file, named mvpp2.h.

A good chunk of the mvpp2 code is dedicated to Header Parser handling, so
we introduce mvpp2_prs.h where all Header Parser definitions are located,
and mvpp2_prs.c containing the related code.

In the same way, mvpp2_cls.h and mvpp2_cls.c are created to contain
Classifier and RSS related code.

The former 'mvpp2.c' file is renamed 'mvpp2_main.c' so that we can keep
the driver binary named 'mvpp2'.

This commit is only about spliting the driver into multiple files and
doesn't introduce any new function, feature or fix besides removing
'static' keywords when needed.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Tested-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/Makefile
drivers/net/ethernet/marvell/mvpp2.c [deleted file]
drivers/net/ethernet/marvell/mvpp2/Makefile [new file with mode: 0644]
drivers/net/ethernet/marvell/mvpp2/mvpp2.h [new file with mode: 0644]
drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c [new file with mode: 0644]
drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h [new file with mode: 0644]
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c [new file with mode: 0644]
drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c [new file with mode: 0644]
drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.h [new file with mode: 0644]