diff options
author | David S. Miller <davem@davemloft.net> | 2020-05-23 16:56:17 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-23 16:56:17 -0700 |
commit | c0096a28588d5a72fa290a74593cf9737c0b1cfb (patch) | |
tree | d753232b4b8456e57c5f83bc31aab36c1ac4a1d3 /net/mptcp/subflow.c | |
parent | 54b9aca08c9a141f48beb533ccb9ebcee679e855 (diff) | |
parent | 9250dccc119e72aecb0dfa786c94b4d8eb67ea29 (diff) | |
download | linux-c0096a28588d5a72fa290a74593cf9737c0b1cfb.tar.bz2 |
Merge branch 'net-provide-a-devres-variant-of-register_netdev'
Bartosz Golaszewski says:
====================
net: provide a devres variant of register_netdev()
Using devres helpers allows to shrink the probing code, avoid memory leaks in
error paths make sure the order in which resources are freed is the exact
opposite of their allocation. This series proposes to add a devres variant
of register_netdev() that will only work with net_device structures whose
memory is also managed.
First we add the missing documentation entry for the only other networking
devres helper: devm_alloc_etherdev().
Next we move devm_alloc_etherdev() into a separate source file.
We then use a proxy structure in devm_alloc_etherdev() to improve readability.
Last: we implement devm_register_netdev() and use it in mtk-eth-mac driver.
v1 -> v2:
- rebase on top of net-next after driver rename, no functional changes
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mptcp/subflow.c')
0 files changed, 0 insertions, 0 deletions