linux-stable/drivers/net/ethernet/netronome
Jakub Kicinski 326ce60301 nfp: make sure representors are destroyed before their lower netdev
App start/stop callbacks can perform application initialization.
Unfortunately, flower app started using them for creating and
destroying representors.  This can lead to a situation where
lower vNIC netdev is destroyed while representors still try
to pass traffic.  This will most likely lead to a NULL-dereference
on the lower netdev TX path.

Move the start/stop callbacks, so that representors are created/
destroyed when vNICs are fully initialized.

Fixes: 5de73ee467 ("nfp: general representor implementation")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-08-23 20:39:44 -07:00
..
nfp nfp: make sure representors are destroyed before their lower netdev 2017-08-23 20:39:44 -07:00
Kconfig nfp: flower: add Kconfig for flower app 2017-06-27 15:48:50 -04:00
Makefile nfp: rename the driver and add new main file 2017-02-10 15:52:24 -05:00