[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130323.195301.955074293040961923.davem@davemloft.net>
Date: Sat, 23 Mar 2013 19:53:01 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: richardcochran@...il.com
Cc: jbenc@...hat.com, netdev@...r.kernel.org
Subject: Re: [PATCH net-next] ptp: increase the maximum number of clocks
From: Richard Cochran <richardcochran@...il.com>
Date: Sat, 23 Mar 2013 18:59:15 +0100
> On Thu, Mar 21, 2013 at 05:20:17PM -0400, David Miller wrote:
>>
>> This really needs to be dynamic, and it shows what a bad idea it was
>> to use character drivers for this which introduces arbitrary device
>> arity limitations.
>
> If a clock is not a character device, what then should it be? Network
> interface? Block device? sysfs apparition?
>
> IIRC, the RTCs appear as char devices. In any case, we are better off
> with char devices than with an enumeration of SYSV clock IDs.
It should be an abstract device created/deleted/changed by netlink
operations.
Then there are no limitations. PTP devices are then referened by
string names, rather than some bogus set of character device minor
numbers which have no meaning and have arbitrary limitations
wrt. arity.
If, in theory, we can have as many PTP devices as network devices,
we damn well better be able to create as many PTP devices as
network devices.
That means they must have the same capabilities as far as how many
of them you can create.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists