From: kuznet@ms2.inr.ac.ru
To: cfriesen@nortelnetworks.com (Chris Friesen)
Cc: davem@redhat.com (David S. Miller),
jmorris@redhat.com, hadi@znyx.com, netdev@oss.sgi.com
Subject: Re: Fw: issues with SO_PRIORITY and IP_TOS
Date: Thu, 6 Nov 2003 12:31:28 +0300 (MSK) [thread overview]
Message-ID: <200311060931.MAA14771@yakov.inr.ac.ru> (raw)
In-Reply-To: <3FA7DBB5.1090500@nortelnetworks.com> from "Chris Friesen" at Nov 04, 2003 12:02:45 PM
Hello!
> If that were the case, I'd be happy. However, when you set the TOS bits
> (which really sets the whole 8-bit field, rather than just the 4 TOS
> bits),
It was not our choice. :-)
> the kernel also sets the socket priority but only uses the TOS
> bits to do so.
Look at straces of your telnet, ftp and ssh. You will understand why
it is made and why it would be better not to change this. It affects
local queuing in right way in default situation.
> If we're going to set the whole 8-bit field, wouldn't it
> make sense to use the priority bits to set the priority?
There are no "priority" bits in this field. Priority is defined
by outgoing device.
> If root wants to send out a packet with particular DSCP settings,
> doesn't it make sense to make that option available? It's a field in
> the IP packet header, we should be able to set it with an IP option.
IP_TOS. :-)
I feel there is some misunderstanding about sk->priority thing.
It is the lowest significance hint about priority, when no other
classification is supplied. Read: when the node is dumb and is not aware
about any such things.
I would agree with you if this field had opposite priority:
i.e. overrided all the system-wide settings. It does not.
What's about VLAN thing, this approach enforces you to use
DSCP directly and never use skb->priority (well, to be more exact,
to use it when you have no another hints available: in this case
our skb->priority is _right_ hint)
Alexey
next prev parent reply other threads:[~2003-11-06 9:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20031030120140.678b721b.davem@redhat.com>
2003-11-04 12:33 ` Fw: issues with SO_PRIORITY and IP_TOS kuznet
2003-11-04 16:04 ` Jamal Hadi Salim
2003-11-04 17:02 ` Chris Friesen
2003-11-05 14:54 ` Jamal Hadi Salim
2003-11-06 9:31 ` kuznet [this message]
2003-11-06 14:51 ` Chris Friesen
2003-11-13 11:08 ` kuznet
2003-11-13 17:48 ` Chris Friesen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200311060931.MAA14771@yakov.inr.ac.ru \
--to=kuznet@ms2.inr.ac.ru \
--cc=cfriesen@nortelnetworks.com \
--cc=davem@redhat.com \
--cc=hadi@znyx.com \
--cc=jmorris@redhat.com \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).