]> 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)
commit877e9e0731c1b646a48cd9b380eedf45e325952a
treee5e4d816edc8e6254f35ffc689678b9cd59185db
parent50990e7c757bda8fea53f908de310a3a1d7e7733
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