]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit86df65c402cffdf1fd2b1eba154bb365bbf9d129
treee5e4d816edc8e6254f35ffc689678b9cd59185db
parent7825631315948a2ac123726b4ac8808697e78d4e
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