nfp_apps can currently associate their structures with vNICs but
not representors.  Add app priv pointer to representors as well.

Signed-off-by: Jakub Kicinski <jakub.kicin...@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vanderme...@netronome.com>
---
 drivers/net/ethernet/netronome/nfp/nfp_net_repr.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_repr.h 
b/drivers/net/ethernet/netronome/nfp/nfp_net_repr.h
index cd756a15445f..8dca283c05c3 100644
--- a/drivers/net/ethernet/netronome/nfp/nfp_net_repr.h
+++ b/drivers/net/ethernet/netronome/nfp/nfp_net_repr.h
@@ -76,6 +76,7 @@ struct nfp_repr_pcpu_stats {
  * @port:      Port of representor
  * @app:       APP handle
  * @stats:     Statistic of packets hitting CPU
+ * @app_priv:  Pointer for APP data
  */
 struct nfp_repr {
        struct net_device *netdev;
@@ -83,6 +84,7 @@ struct nfp_repr {
        struct nfp_port *port;
        struct nfp_app *app;
        struct nfp_repr_pcpu_stats __percpu *stats;
+       void *app_priv;
 };
 
 /**
-- 
2.17.0

Reply via email to