switchdev: introduce transaction item queue for attr_set and obj_add
authorJiri Pirko <jiri@mellanox.com>
Thu, 24 Sep 2015 08:02:41 +0000 (10:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2015 05:59:21 +0000 (22:59 -0700)
commit7ea6eb3f56f45cf4babae8b9a7421868e5005f17
treee5e4d816edc8e6254f35ffc689678b9cd59185db
parent69f5df491e0becb75d2d795add7481a35218d657
switchdev: introduce transaction item queue for attr_set and obj_add

Now, the memory allocation in prepare/commit state is done separatelly
in each driver (rocker). Introduce the similar mechanism in generic
switchdev code, in form of queue. That can be used not only for memory
allocations, but also for different items. Abort item destruction
is handled as well.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/switchdev.txt
drivers/net/ethernet/rocker/rocker.c
include/net/switchdev.h
net/dsa/slave.c
net/switchdev/switchdev.c