summaryrefslogtreecommitdiff
path: root/debian/patches/00list
blob: 6e04a66205b88059da4e912f874996b2a942f692 (plain)
1
2
01-fix-resize-crash-inside-vim
02-fix-xcscope-el-typo
ption>space:mode:
authorEric W. Biederman <ebiederm@xmission.com>2011-10-20 04:29:24 +0000
committerDavid S. Miller <davem@davemloft.net>2011-10-21 02:53:07 -0400
commite09eff7fc1c6f011f7bdb304e10d2ceef08c88ab (patch)
tree170603217dedb0434244f4ef35928e6267cd5105 /include/linux/if_macvlan.h
parent9bf1907f4293d61d5a283d18c4ad28d048261797 (diff)
macvtap: Fix the minor device number allocation
On systems that create and delete lots of dynamic devices the 31bit linux ifindex fails to fit in the 16bit macvtap minor, resulting in unusable macvtap devices. I have systems running automated tests that that hit this condition in just a few days. Use a linux idr allocator to track which mavtap minor numbers are available and and to track the association between macvtap minor numbers and macvtap network devices. Remove the unnecessary unneccessary check to see if the network device we have found is indeed a macvtap device. With macvtap specific data structures it is impossible to find any other kind of networking device. Increase the macvtap minor range from 65536 to the full 20 bits that is supported by linux device numbers. It doesn't solve the original problem but there is no penalty for a larger minor device range. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_macvlan.h')