netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Why /sys/class/net/*/features is read-only?
@ 2005-05-23  7:46 Catalin(ux aka Dino) BOIE
  2005-05-23 16:28 ` Stephen Hemminger
  0 siblings, 1 reply; 8+ messages in thread
From: Catalin(ux aka Dino) BOIE @ 2005-05-23  7:46 UTC (permalink / raw)
  To: netdev

Hello!

Why features file is read-only. If an admin want to force some attributes, 
we can let them, right?

This way, an admin can force SG and HW_CSUM on a bridge, for example. ;)

I can make a patch, if you want.

Thank you!
---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/

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

* Re: Why /sys/class/net/*/features is read-only?
  2005-05-23  7:46 Why /sys/class/net/*/features is read-only? Catalin(ux aka Dino) BOIE
@ 2005-05-23 16:28 ` Stephen Hemminger
  2005-05-23 20:49   ` Catalin(ux aka Dino) BOIE
  0 siblings, 1 reply; 8+ messages in thread
From: Stephen Hemminger @ 2005-05-23 16:28 UTC (permalink / raw)
  To: Catalin(ux aka Dino) BOIE; +Cc: netdev

On Mon, 23 May 2005 10:46:50 +0300 (EEST)
"Catalin(ux aka Dino) BOIE" <util@deuroconsult.ro> wrote:

> Hello!
> 
> Why features file is read-only. If an admin want to force some attributes, 
> we can let them, right?
>

Leave it read-only because the hardware may not want to allow them on that flavor and so it would
have to be device specific.

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

* Re: Why /sys/class/net/*/features is read-only?
  2005-05-23 16:28 ` Stephen Hemminger
@ 2005-05-23 20:49   ` Catalin(ux aka Dino) BOIE
  2005-05-23 20:53     ` David S. Miller
  2005-05-23 20:55     ` Stephen Hemminger
  0 siblings, 2 replies; 8+ messages in thread
From: Catalin(ux aka Dino) BOIE @ 2005-05-23 20:49 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

On Mon, 23 May 2005, Stephen Hemminger wrote:

> On Mon, 23 May 2005 10:46:50 +0300 (EEST)
> "Catalin(ux aka Dino) BOIE" <util@deuroconsult.ro> wrote:
>
>> Hello!
>>
>> Why features file is read-only. If an admin want to force some attributes,
>> we can let them, right?
>>
>
> Leave it read-only because the hardware may not want to allow them on that flavor and so it would
> have to be device specific.

You are clear right for hardware devices, but for software ones (bridge 
for example) it makes sense. Anyway, only admin can change them.

If you have a bridge with 5 net cards and 4 supports SG, some people 
may want to force SG on the bridge.

---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/

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

* Re: Why /sys/class/net/*/features is read-only?
  2005-05-23 20:49   ` Catalin(ux aka Dino) BOIE
@ 2005-05-23 20:53     ` David S. Miller
  2005-05-23 21:33       ` Catalin(ux aka Dino) BOIE
  2005-05-23 20:55     ` Stephen Hemminger
  1 sibling, 1 reply; 8+ messages in thread
From: David S. Miller @ 2005-05-23 20:53 UTC (permalink / raw)
  To: util; +Cc: shemminger, netdev

From: "Catalin(ux aka Dino) BOIE" <util@deuroconsult.ro>
Date: Mon, 23 May 2005 23:49:57 +0300 (EEST)

> If you have a bridge with 5 net cards and 4 supports SG, some people 
> may want to force SG on the bridge.

Let them use ethtool :-)

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

* Re: Why /sys/class/net/*/features is read-only?
  2005-05-23 20:49   ` Catalin(ux aka Dino) BOIE
  2005-05-23 20:53     ` David S. Miller
@ 2005-05-23 20:55     ` Stephen Hemminger
  1 sibling, 0 replies; 8+ messages in thread
From: Stephen Hemminger @ 2005-05-23 20:55 UTC (permalink / raw)
  To: Catalin(ux aka Dino) BOIE; +Cc: netdev

On Mon, 23 May 2005 23:49:57 +0300 (EEST)
"Catalin(ux aka Dino) BOIE" <util@deuroconsult.ro> wrote:

> On Mon, 23 May 2005, Stephen Hemminger wrote:
> 
> > On Mon, 23 May 2005 10:46:50 +0300 (EEST)
> > "Catalin(ux aka Dino) BOIE" <util@deuroconsult.ro> wrote:
> >
> >> Hello!
> >>
> >> Why features file is read-only. If an admin want to force some attributes,
> >> we can let them, right?
> >>
> >
> > Leave it read-only because the hardware may not want to allow them on that flavor and so it would
> > have to be device specific.
> 
> You are clear right for hardware devices, but for software ones (bridge 
> for example) it makes sense. Anyway, only admin can change them.
> 
> If you have a bridge with 5 net cards and 4 supports SG, some people 
> may want to force SG on the bridge.

Then implement ethtool on the bridge device, it wouldn't be hard to do that.

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

* Re: Why /sys/class/net/*/features is read-only?
  2005-05-23 20:53     ` David S. Miller
@ 2005-05-23 21:33       ` Catalin(ux aka Dino) BOIE
  2005-05-23 21:51         ` David S. Miller
  0 siblings, 1 reply; 8+ messages in thread
From: Catalin(ux aka Dino) BOIE @ 2005-05-23 21:33 UTC (permalink / raw)
  To: David S. Miller; +Cc: shemminger, netdev

On Mon, 23 May 2005, David S. Miller wrote:

> From: "Catalin(ux aka Dino) BOIE" <util@deuroconsult.ro>
> Date: Mon, 23 May 2005 23:49:57 +0300 (EEST)
>
>> If you have a bridge with 5 net cards and 4 supports SG, some people
>> may want to force SG on the bridge.
>
> Let them use ethtool :-)

They can't on a bridge device, right?

---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/

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

* Re: Why /sys/class/net/*/features is read-only?
  2005-05-23 21:33       ` Catalin(ux aka Dino) BOIE
@ 2005-05-23 21:51         ` David S. Miller
  2005-05-23 21:53           ` Catalin(ux aka Dino) BOIE
  0 siblings, 1 reply; 8+ messages in thread
From: David S. Miller @ 2005-05-23 21:51 UTC (permalink / raw)
  To: util; +Cc: shemminger, netdev

From: "Catalin(ux aka Dino) BOIE" <util@deuroconsult.ro>
Date: Tue, 24 May 2005 00:33:14 +0300 (EEST)

> On Mon, 23 May 2005, David S. Miller wrote:
> 
> > Let them use ethtool :-)
> 
> They can't on a bridge device, right?

Currently no.  But there is no reason the bridge device
should not have ethtool support added to it, and that's
where this functionality belongs.

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

* Re: Why /sys/class/net/*/features is read-only?
  2005-05-23 21:51         ` David S. Miller
@ 2005-05-23 21:53           ` Catalin(ux aka Dino) BOIE
  0 siblings, 0 replies; 8+ messages in thread
From: Catalin(ux aka Dino) BOIE @ 2005-05-23 21:53 UTC (permalink / raw)
  To: David S. Miller; +Cc: shemminger, netdev

On Mon, 23 May 2005, David S. Miller wrote:

> From: "Catalin(ux aka Dino) BOIE" <util@deuroconsult.ro>
> Date: Tue, 24 May 2005 00:33:14 +0300 (EEST)
>
>> On Mon, 23 May 2005, David S. Miller wrote:
>>
>>> Let them use ethtool :-)
>>
>> They can't on a bridge device, right?
>
> Currently no.  But there is no reason the bridge device
> should not have ethtool support added to it, and that's
> where this functionality belongs.

OK. I made this patch only to test how well slave notification worked.
Next days I will implement ethtool for bridge.

Thank you!
---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/

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

end of thread, other threads:[~2005-05-23 21:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-23  7:46 Why /sys/class/net/*/features is read-only? Catalin(ux aka Dino) BOIE
2005-05-23 16:28 ` Stephen Hemminger
2005-05-23 20:49   ` Catalin(ux aka Dino) BOIE
2005-05-23 20:53     ` David S. Miller
2005-05-23 21:33       ` Catalin(ux aka Dino) BOIE
2005-05-23 21:51         ` David S. Miller
2005-05-23 21:53           ` Catalin(ux aka Dino) BOIE
2005-05-23 20:55     ` Stephen Hemminger

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).