switchdev: remove pointers from switchdev objects
authorJiri Pirko <jiri@mellanox.com>
Wed, 14 Oct 2015 17:40:51 +0000 (19:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Oct 2015 13:09:49 +0000 (06:09 -0700)
commit850d0cbc9171f63f0418afffb0d89a84db927851
tree21ecd5e1adb0d14f8c455484d57795d0a86379ea
parent0bc05d585d381c30de3fdf955730df31593d2101
switchdev: remove pointers from switchdev objects

When object is used in deferred work, we cannot use pointers in
switchdev object structures because the memory they point at may be already
used by someone else. So rather do local copy of the value.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Scott Feldman <sfeldma@gmail.com>
Reviewed-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker.c
include/net/switchdev.h
net/bridge/br_fdb.c
net/dsa/slave.c
net/switchdev/switchdev.c