|
@@ -545,6 +545,7 @@ struct nfp_net_dp {
|
|
|
/**
|
|
|
* struct nfp_net - NFP network device structure
|
|
|
* @dp: Datapath structure
|
|
|
+ * @id: vNIC id within the PF (0 for VFs)
|
|
|
* @fw_ver: Firmware version
|
|
|
* @cap: Capabilities advertised by the Firmware
|
|
|
* @max_mtu: Maximum support MTU advertised by the Firmware
|
|
@@ -597,6 +598,8 @@ struct nfp_net {
|
|
|
|
|
|
struct nfp_net_fw_version fw_ver;
|
|
|
|
|
|
+ u32 id;
|
|
|
+
|
|
|
u32 cap;
|
|
|
u32 max_mtu;
|
|
|
|
|
@@ -909,7 +912,7 @@ int nfp_net_ring_reconfig(struct nfp_net *nn, struct nfp_net_dp *new,
|
|
|
void nfp_net_debugfs_create(void);
|
|
|
void nfp_net_debugfs_destroy(void);
|
|
|
struct dentry *nfp_net_debugfs_device_add(struct pci_dev *pdev);
|
|
|
-void nfp_net_debugfs_vnic_add(struct nfp_net *nn, struct dentry *ddir, int id);
|
|
|
+void nfp_net_debugfs_vnic_add(struct nfp_net *nn, struct dentry *ddir);
|
|
|
void nfp_net_debugfs_dir_clean(struct dentry **dir);
|
|
|
#else
|
|
|
static inline void nfp_net_debugfs_create(void)
|
|
@@ -926,7 +929,7 @@ static inline struct dentry *nfp_net_debugfs_device_add(struct pci_dev *pdev)
|
|
|
}
|
|
|
|
|
|
static inline void
|
|
|
-nfp_net_debugfs_vnic_add(struct nfp_net *nn, struct dentry *ddir, int id)
|
|
|
+nfp_net_debugfs_vnic_add(struct nfp_net *nn, struct dentry *ddir)
|
|
|
{
|
|
|
}
|
|
|
|