linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI: Add a comment for the is_physfn field
@ 2019-04-10  7:44 Oliver O'Halloran
  2019-05-07 19:40 ` Bjorn Helgaas
  0 siblings, 1 reply; 3+ messages in thread
From: Oliver O'Halloran @ 2019-04-10  7:44 UTC (permalink / raw)
  To: linux-pci; +Cc: Oliver O'Halloran

The meaning of is_physfn and how it's different to is_virtfn really
isn't clear unless you do a bit of digging. Add a comment to help out
the unaware.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
---
 include/linux/pci.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/linux/pci.h b/include/linux/pci.h
index 77448215ef5b..88bf71bfa757 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -393,6 +393,10 @@ struct pci_dev {
 	unsigned int	is_managed:1;
 	unsigned int	needs_freset:1;		/* Requires fundamental reset */
 	unsigned int	state_saved:1;
+	/*
+	 * is_physfn indicates that the function can be used to host VFs.
+	 * It is only set when both the kernel and the device support IOV.
+	 */
 	unsigned int	is_physfn:1;
 	unsigned int	is_virtfn:1;
 	unsigned int	reset_fn:1;
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-08  8:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-10  7:44 [PATCH] PCI: Add a comment for the is_physfn field Oliver O'Halloran
2019-05-07 19:40 ` Bjorn Helgaas
2019-05-08  8:31   ` Oliver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).