]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit03f1c0f164b931adb6f89535ec3cb3c14d4a5e46
tree32c237ea97019f71803c39f76be72ca778912598
parentcec3c5b1fc3e1f68a25013af377c02da436a6050
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