Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1600224 > unrolled thread
| Started by | David Laight <David.Laight@ACULAB.COM> |
|---|---|
| First post | 2017-03-14 12:10 +0100 |
| Last post | 2017-03-14 18:40 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
RE: [PATCH net-next 09/12] net: bcmgenet: return EOPNOTSUPP for unknown ioctl commands David Laight <David.Laight@ACULAB.COM> - 2017-03-14 12:10 +0100
Re: [PATCH net-next 09/12] net: bcmgenet: return EOPNOTSUPP for unknown ioctl commands Doug Berger <opendmb@gmail.com> - 2017-03-14 18:40 +0100
| From | David Laight <David.Laight@ACULAB.COM> |
|---|---|
| Date | 2017-03-14 12:10 +0100 |
| Subject | RE: [PATCH net-next 09/12] net: bcmgenet: return EOPNOTSUPP for unknown ioctl commands |
| Message-ID | <tkSv0-7ED-21@gated-at.bofh.it> |
From: Doug Berger > Sent: 14 March 2017 00:42 > This commit changes the ioctl handling behavior to return the > EOPNOTSUPP error code instead of the EINVAL error code when an > unknown ioctl command value is detected. > > It also removes some redundant parsing of the ioctl command value > and allows the SIOCSHWTSTAMP value to be handled. A better description would seem to be: Remove checks on ioctl command and just forward all ioctl requests to phy_mii_ioctl(). I also thought the 'generic' response to an unknown ioctl command was ENOTTY. David
[toc] | [next] | [standalone]
| From | Doug Berger <opendmb@gmail.com> |
|---|---|
| Date | 2017-03-14 18:40 +0100 |
| Message-ID | <tkYAq-3tR-27@gated-at.bofh.it> |
| In reply to | #1600224 |
On 03/14/2017 04:04 AM, David Laight wrote:
> From: Doug Berger
>> Sent: 14 March 2017 00:42
>> This commit changes the ioctl handling behavior to return the
>> EOPNOTSUPP error code instead of the EINVAL error code when an
>> unknown ioctl command value is detected.
>>
>> It also removes some redundant parsing of the ioctl command value
>> and allows the SIOCSHWTSTAMP value to be handled.
>
> A better description would seem to be:
> Remove checks on ioctl command and just forward all ioctl requests
> to phy_mii_ioctl().
That is a good description of the code change, but I felt that was
clearly conveyed by the patch content. I thought it would be a better
use of the comment to describe the more subtle functional change that
might be less clear.
>
> I also thought the 'generic' response to an unknown ioctl command
> was ENOTTY.
and I think it probably helped solicit this feedback :). I would have
thought that error makes more sense if there is no ioctl handler, but I
will definitely look into it.
Thanks for the feedback,
Doug
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web