From: Jakub Kicinski
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.
>
>
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