net: pcnet: Simplify private data allocation
authorMarek Vasut <marek.vasut@gmail.com>
Sun, 17 May 2020 16:24:14 +0000 (18:24 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Mon, 29 Jun 2020 20:36:35 +0000 (22:36 +0200)
commit89369b0ac2ca0621bfc30baed739bb9d9e7fdcad
tree32c237ea97019f71803c39f76be72ca778912598
parentd3b1df0f396adb2b5c25ff655c3dae8624c41e50
net: pcnet: Simplify private data allocation

The current code is horribly complex. Both the RX and TX buffer
descriptors are 16 bytes in size, the init block is 32 bytes in
size, so simplify the code such that the entire private data of
the driver are allocated cache aligned and the RX and TX buffer
descriptors are part of the private data.

This removes multiple malloc calls and cache flushes.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/pcnet.c