commit | f75063abc39441585a13fcc5b9ef3af993e9ac40 | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Sat May 23 15:27:09 2020 +0200 |
committer | David S. Miller <davem@davemloft.net> | Sat May 23 16:56:17 2020 -0700 |
tree | 4159a8ce4a8e566442ee3a764d08661aa087ff21 | |
parent | cb8a14b205699fee1053a406e1e3fce330b6bdc3 [diff] |
net: devres: define a separate devres structure for devm_alloc_etherdev() Not using a proxy structure to store struct net_device doesn't save anything in terms of compiled code size or memory usage but significantly decreases the readability of the code with all the pointer casting. Define struct net_device_devres and use it in devm_alloc_etherdev_mqs(). Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: David S. Miller <davem@davemloft.net>