RE: [net-next 13/13] igb: Store the MAC address in the name in the PTP struct.
From: "Keller, Jacob E" <jacob.e.keller@intel.com>
Date: 2012-09-06 23:04:07
-----Original Message----- From: netdev-owner@vger.kernel.org [mailto:netdev-owner@vger.kernel.org] On Behalf Of Richard Cochran Sent: Thursday, August 23, 2012 11:20 PM To: Ben Hutchings Cc: Kirsher, Jeffrey T; davem@davemloft.net; Vick, Matthew; netdev@vger.kernel.org; gospo@redhat.com; sassmann@redhat.com; Stuart Hodgson Subject: Re: [net-next 13/13] igb: Store the MAC address in the name in the PTP struct. In an ideal world, there is only one clock device per system, so the original concept was to use the driver name. The hardware designers have ignored or not understood the "one clock per system" model, and so, unfortunately, we have to deal with it. A clock device can and should be connected to more than one network device (see gianfar, dp83640), and to give it a MAC address is misleading. The ethtool solution works perfectly to go from interface->clock, which is all the information that a user space PTP stack needs. I think for sysfs and the ioctl it is nicer to have the driver name, since it is associated with the clock and its capabilities.
Correct. MAC address is misleading. However driver name for our parts is misleading because each driver creates one clock per port. In either case, one driver handling multiple cards would also have to create multiple ptp devices and that is just as misleading. The ethtool method is definitely preferred, and is the correct way to identify the clock device correlation. - Jake
Thanks, Richard -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html