Skip to content

Commit

Permalink
devlink: Move structure comments outside of structure
Browse files Browse the repository at this point in the history
To add more fields to the PCI PF and VF port attributes, follow standard
structure comment format.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Parav Pandit authored and David S. Miller committed Sep 9, 2020
1 parent 2efbe6a commit ff03e63
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions include/net/devlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,22 @@ struct devlink_port_phys_attrs {
u32 split_subport_number; /* If the port is split, this is the number of subport. */
};

/**
* struct devlink_port_pci_pf_attrs - devlink port's PCI PF attributes
* @pf: Associated PCI PF number for this port.
*/
struct devlink_port_pci_pf_attrs {
u16 pf; /* Associated PCI PF for this port. */
u16 pf;
};

/**
* struct devlink_port_pci_vf_attrs - devlink port's PCI VF attributes
* @pf: Associated PCI PF number for this port.
* @vf: Associated PCI VF for of the PCI PF for this port.
*/
struct devlink_port_pci_vf_attrs {
u16 pf; /* Associated PCI PF for this port. */
u16 vf; /* Associated PCI VF for of the PCI PF for this port. */
u16 pf;
u16 vf;
};

/**
Expand Down

0 comments on commit ff03e63

Please sign in to comment.