Skip to content

Commit ff03e63

Browse files
paravmellanoxdavem330
authored andcommitted
devlink: Move structure comments outside of structure
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>
1 parent 2efbe6a commit ff03e63

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

‎include/net/devlink.h‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,22 @@ struct devlink_port_phys_attrs {
5757
u32 split_subport_number; /* If the port is split, this is the number of subport. */
5858
};
5959

60+
/**
61+
* struct devlink_port_pci_pf_attrs - devlink port's PCI PF attributes
62+
* @pf: Associated PCI PF number for this port.
63+
*/
6064
struct devlink_port_pci_pf_attrs {
61-
u16 pf; /* Associated PCI PF for this port. */
65+
u16 pf;
6266
};
6367

68+
/**
69+
* struct devlink_port_pci_vf_attrs - devlink port's PCI VF attributes
70+
* @pf: Associated PCI PF number for this port.
71+
* @vf: Associated PCI VF for of the PCI PF for this port.
72+
*/
6473
struct devlink_port_pci_vf_attrs {
65-
u16 pf; /* Associated PCI PF for this port. */
66-
u16 vf; /* Associated PCI VF for of the PCI PF for this port. */
74+
u16 pf;
75+
u16 vf;
6776
};
6877

6978
/**

0 commit comments

Comments
 (0)