kernel - Change mbuf allocation in tapwrite/tunwrite path to blocking
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 26 Mar 2011 22:15:34 +0000 (15:15 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 26 Mar 2011 22:15:34 +0000 (15:15 -0700)
commit0f9e55b1061457d40a93e39bf88ec59f010fc856
tree13ea14c9918e9fde824c74493dbce90f37b73c09
parent3110e56aa543b8bfc79ec62073efdc2d84a27d97
kernel - Change mbuf allocation in tapwrite/tunwrite path to blocking

* Tapwrite and tunwrite are called via userland, a blocking mbuf allocation
  is perfectly acceptable here and avoids dropping packets unnecessarily.

* Fixes numerous spurious packet drops when using TAP or TUN, for example
  with openvpn.

* Minor code cleanup in if_tap.c
sys/net/tap/if_tap.c
sys/net/tun/if_tun.c