提交 634c6b7a 编写于 作者: J Jakub Kicinski 提交者: David S. Miller

nfp: add app pointer to port representors

nfp_apps can currently associate their structures with vNICs but
not representors.  Add app priv pointer to representors as well.
Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: NDirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 cc54dc28
...@@ -76,6 +76,7 @@ struct nfp_repr_pcpu_stats { ...@@ -76,6 +76,7 @@ struct nfp_repr_pcpu_stats {
* @port: Port of representor * @port: Port of representor
* @app: APP handle * @app: APP handle
* @stats: Statistic of packets hitting CPU * @stats: Statistic of packets hitting CPU
* @app_priv: Pointer for APP data
*/ */
struct nfp_repr { struct nfp_repr {
struct net_device *netdev; struct net_device *netdev;
...@@ -83,6 +84,7 @@ struct nfp_repr { ...@@ -83,6 +84,7 @@ struct nfp_repr {
struct nfp_port *port; struct nfp_port *port;
struct nfp_app *app; struct nfp_app *app;
struct nfp_repr_pcpu_stats __percpu *stats; struct nfp_repr_pcpu_stats __percpu *stats;
void *app_priv;
}; };
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册