summaryrefslogtreecommitdiff
path: root/curvetun_mgmt.h
AgeCommit message (Collapse)AuthorFilesLines
2013-07-11curvetun_mgmt: consolidate the two mgmt include files into oneDaniel Borkmann1-0/+7
Consolidate the two mgmt include files into one. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
t.git/commit/?id=69fc58a57e56bf5e39b48809aefffdaa1b04c945'>69fc58a57e56bf5e39b48809aefffdaa1b04c945 (patch) tree765e38a7aa3f81cdf02fd0750e810e729ecfa084 parent9a0fee2b552b1235fb1706ae1fc664ae74573be8 (diff)
net: phy: Manage fixed PHY address space using IDA
If we have a system which uses fixed PHY devices and calls fixed_phy_register() then fixed_phy_unregister() we can exhaust the number of fixed PHYs available after a while, since we keep incrementing the variable phy_fixed_addr, but we never decrement it. This patch fixes that by converting the fixed PHY allocation to using IDA, which takes care of the allocation/dealloaction of the PHY addresses for us. Fixes: a75951217472 ("net: phy: extend fixed driver with fixed_phy_register()") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat