linux/drivers/net/ethernet/rocker
Jiri Pirko da4ed55165 switchdev: pass pointer to fib_info instead of copy
The problem is that fib_info->nh is [0] so the struct fib_info
allocation size depends on number of nexthops. If we just copy fib_info,
we do not copy the nexthops info and driver accesses memory which is not
ours.

Given the fact that fib4 does not defer operations and therefore it does
not need copy, just pass the pointer down to drivers as it was done
before.

Fixes: 850d0cbc91 ("switchdev: remove pointers from switchdev objects")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-05-17 13:58:49 -04:00
..
Kconfig net: ethernet: rocker: Add dependency to CONFIG_BRIDGE in Kconfig 2014-12-09 15:26:43 -05:00
Makefile rocker: introduce worlds infrastructure 2016-02-17 23:08:34 -05:00
rocker.h rocker: move ageing_time from struct rocker to struct ofdpa 2016-03-12 20:11:13 -05:00
rocker_hw.h rocker: rename rocker.h to rocker_hw.h 2016-02-17 23:08:34 -05:00
rocker_main.c rocker: move ageing_time from struct rocker to struct ofdpa 2016-03-12 20:11:13 -05:00
rocker_ofdpa.c switchdev: pass pointer to fib_info instead of copy 2016-05-17 13:58:49 -04:00
rocker_tlv.c rocker: push tlv processing into separate files 2016-02-17 23:08:34 -05:00
rocker_tlv.h rocker: push tlv processing into separate files 2016-02-17 23:08:34 -05:00