[PATCH 1/1] macvtap: Fix regression for macvtap ioctls

2015-09-18 Thread Christian Borntraeger
To avoid overwriting the upper bits of the flags, commit 39ec7de7092b ("macvtap: fix uninitialized access on TUNSETIFF") changed the variable u from unsigned int to unsigned short and added some ORing logic for the flags. This introduced at least one regression: - TUNSETSNDBUF supports int as its

Re: [PATCH 1/1] macvtap: Fix regression for macvtap ioctls

2015-09-18 Thread Michael S. Tsirkin
On Fri, Sep 18, 2015 at 09:54:44AM +0200, Christian Borntraeger wrote: > To avoid overwriting the upper bits of the flags, commit > 39ec7de7092b ("macvtap: fix uninitialized access on > TUNSETIFF") changed the variable u from unsigned int to > unsigned short and added some ORing logic for the