switchdev: introduce switchdev add/del obj ops
authorScott Feldman <sfeldma@gmail.com>
Sun, 10 May 2015 16:47:52 +0000 (09:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 May 2015 22:43:53 +0000 (18:43 -0400)
commit491d0f1533ac750260406dbf84cdad44fd3d8a29
tree6443f2004cf3198a43418f6c7f0faa33f2e23052
parent3563606258cf3b8f02eabddb1cb45a94c44d9611
switchdev: introduce switchdev add/del obj ops

Like switchdev attr get/set, add new switchdev obj add/del.  switchdev objs
will be things like VLANs or FIB entries, so add/del fits better for
objects than get/set used for attributes.

Use same two-phase prepare-commit transaction model as in attr set.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Acked-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/switchdev.h
net/switchdev/switchdev.c