diff options
author | Jakub Kicinski | 2017-05-22 19:59:26 +0200 |
---|---|---|
committer | David S. Miller | 2017-05-22 20:59:04 +0200 |
commit | 7ac9ebd567252d1799002b9282c658f7229ba21c (patch) | |
tree | f4b023bd27780eb90eb21b85582e67aa0a254764 /drivers/net/ethernet/netronome/nfp/nfp_main.h | |
parent | nfp: add nfp_net_pf_free_vnic() function (diff) | |
download | kernel-qcow2-linux-7ac9ebd567252d1799002b9282c658f7229ba21c.tar.gz kernel-qcow2-linux-7ac9ebd567252d1799002b9282c658f7229ba21c.tar.xz kernel-qcow2-linux-7ac9ebd567252d1799002b9282c658f7229ba21c.zip |
nfp: introduce very minimal nfp_app
Introduce a concept of an application. For now it's just grouping
pointers and serving as a layer of indirection. It will help us
weaken the dependency on nfp_net in ethtool code. Later series
will flesh out support for different apps in the driver.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/nfp_main.h')
-rw-r--r-- | drivers/net/ethernet/netronome/nfp/nfp_main.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/nfp_main.h b/drivers/net/ethernet/netronome/nfp/nfp_main.h index 1ca1c61450c1..3716ef6b8599 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_main.h +++ b/drivers/net/ethernet/netronome/nfp/nfp_main.h @@ -57,6 +57,7 @@ struct nfp_eth_table; * struct nfp_pf - NFP PF-specific device structure * @pdev: Backpointer to PCI device * @cpp: Pointer to the CPP handle + * @app: Pointer to the APP handle * @data_vnic_bar: Pointer to the CPP area for the data vNICs' BARs * @tx_area: Pointer to the CPP area for the TX queues * @rx_area: Pointer to the CPP area for the FL/RX queues @@ -77,6 +78,8 @@ struct nfp_pf { struct nfp_cpp *cpp; + struct nfp_app *app; + struct nfp_cpp_area *data_vnic_bar; struct nfp_cpp_area *tx_area; struct nfp_cpp_area *rx_area; |