commit | 03304cc2185b8c68bc3b2b53d416e3c1d219634f | [log] [tgz] |
---|---|---|
author | Marek Vasut <marek.vasut+renesas@gmail.com> | Sun May 17 17:28:31 2020 +0200 |
committer | Marek Vasut <marek.vasut+renesas@gmail.com> | Thu Jun 18 19:34:41 2020 +0200 |
tree | fd6fa0c9296ac60d5b8578bd585aecfd5a0dc402 | |
parent | 5cfe7be26b1ba1d16a2d29ed52648f7c5cb2583c [diff] |
net: pcnet: Split common and non-DM functions Pull the common parts of functions out so they can be reused by both DM and non-DM code paths. The recv() function had to be reworked to fit into this scheme and this means it now only receives one packet at a time instead of spinning in an endless loop. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Cc: Joe Hershberger <joe.hershberger@ni.com>