diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-05-23 15:27:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-23 16:56:17 -0700 |
commit | f75063abc39441585a13fcc5b9ef3af993e9ac40 (patch) | |
tree | 4159a8ce4a8e566442ee3a764d08661aa087ff21 /LICENSES | |
parent | cb8a14b205699fee1053a406e1e3fce330b6bdc3 (diff) | |
download | lwn-f75063abc39441585a13fcc5b9ef3af993e9ac40.tar.gz lwn-f75063abc39441585a13fcc5b9ef3af993e9ac40.zip |
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>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions