]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit68a1e305acab38486959a8a3c1ee7b9b4c36d3a7
tree7379f5e032171776b7ef0f8216cbcc7be4c00023
parentc8dbdd39fbd0160092b256090cd0960d708fb4a0
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]