From: Jakub Kicinski <[email protected]>
Date: Tue, 4 Apr 2017 15:56:55 -0700
> We should unregister the net_device first, before we give back
> our reference on xdp_prog. Otherwise xdp_prog may be freed
> before .ndo_stop() disabled the datapath. Found by code inspection.
>
> Fixes: ecd63a0217d5 ("nfp: add XDP support in the driver")
> Signed-off-by: Jakub Kicinski <[email protected]>
> Reviewed-by: Simon Horman <[email protected]>
Applied, thanks.
> ---
> Just a heads up - this will cause a merge conflict since nn->netdev
> member got moved to nn->dp.netdev in net-next.
Ok, thanks for the heads up.