]> git.baikalelectronics.ru Git - kernel.git/commit
macvlan: better mode validation
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 1 Aug 2013 10:43:19 +0000 (13:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Aug 2013 23:32:05 +0000 (16:32 -0700)
commit8c86f479b9290231e0fd121802d614e77e700df8
treeee1ee950654dcb6eab2f2d3f78f03db4a29e3ae1
parentf20cf26598fe97ee1ebc1fcecfc0c32c69189a4f
macvlan: better mode validation

macvlan passthrough mode is special: it's not possible to switch to or
from it through a netlink command.

But if you try, the command will succeed, which is
confusing.

Validate input and return error to user.

Cc: Sridhar Samudrala <sri@us.ibm.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c