mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
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: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cc54dc2804
commit
634c6b7a85
@ -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 {
|
|||||||
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;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user