]> git.baikalelectronics.ru Git - kernel.git/commit
rocker: make rocker_port_internal_vlan_id_{get, put}() non-transactional
authorSimon Horman <simon.horman@netronome.com>
Thu, 21 May 2015 03:40:17 +0000 (12:40 +0900)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 May 2015 21:20:55 +0000 (17:20 -0400)
commit5ef2040fabe2caad9d93f762afaacc0c4e2498fb
tree338bdd1e6d8a5ddd231c36d10588d353be52193b
parent15b6326bfa68c9abb66808a5d49094fbbcc3af79
rocker: make rocker_port_internal_vlan_id_{get, put}() non-transactional

The motivation for this is that rocker_port_internal_vlan_id_{get,put} appear
to only partially implement the transaction model: memory allocation
and freeing is transactional, but hash and bitmap manipulation is not.

The latter could be fixed, however, as it is not currently exercised
due to trans always being SWITCHDEV_TRANS_NONE it seems cleaner
to make rocker_port_internal_vlan_id_get non-transactional.

This problem was introduced by c932bd4ff32b ("rocker: support
prepare-commit transaction model").

Found by inspection.
I do not believe that this change should have any run-time effect.

Acked-by: Scott Feldman <sfeldma@gmail.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker.c