commit | 1ca28ec9abff927178b1ea9d6431e4c320145b10 | [log] [tgz] |
---|---|---|
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | Fri Nov 03 19:05:24 2017 -0400 |
committer | David S. Miller <davem@davemloft.net> | Sun Nov 05 22:31:39 2017 +0900 |
tree | ee3531e3e3d447b35c2a9cdf5f037014af5f9466 | |
parent | 65254108b4655dc55e8d8f62ee895960085e73f4 [diff] |
net: dsa: provide a find or new tree helper Rename dsa_get_dst to dsa_tree_find since it doesn't increment the reference counter, rename dsa_add_dst to dsa_tree_alloc for symmetry with dsa_tree_free, and provide a convenient dsa_tree_touch function to find or allocate a new tree. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>