]> git.karo-electronics.de Git - karo-tx-linux.git/commit
macvlan: validate flags
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 5 Aug 2013 15:25:54 +0000 (18:25 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Aug 2013 18:02:48 +0000 (11:02 -0700)
commit1512747820367c8b3b8b72035f0f78c62f2bf1e9
treeec96a777fc357c27d2c4e9ebec3c760c83eb5514
parentf7b7a365331deb4553944a0b695dd6371614053a
macvlan: validate flags

commit df8ef8f3aaa6692970a436204c4429210addb23a
    macvlan: add FDB bridge ops and macvlan flags
added a flags field to macvlan, which can be
controlled from userspace.
The idea is to make the interface future-proof
so we can add flags and not new fields.

However, flags value isn't validated, as a result,
userspace can't detect which flags are supported.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c