nfp: add repr_preclean callback
authorDirk van der Merwe <dirk.vandermerwe@netronome.com>
Wed, 3 Jan 2018 03:19:00 +0000 (19:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jan 2018 17:17:38 +0000 (12:17 -0500)
commit0f08479143854257a8e7b38f296b1fd17bc91091
tree882a9754afbd31567e72c8cf2edbcfa7c8bc490a
parentc6d20ab4d7c8d423a314944f74a5ba8698a82f86
nfp: add repr_preclean callback

Just before a repr is cleaned up, we give the app a chance to perform
some preclean configuration while the reprs pointer is still configured
for the app.

Signed-off-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_app.h
drivers/net/ethernet/netronome/nfp/nfp_net_repr.c