All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vlad Yasevich <vladislav.yasevich@hp.com>
To: linux-sctp@vger.kernel.org
Subject: Re: where is (if at all) ioctl support for sctp...?
Date: Mon, 21 Jul 2008 13:19:38 +0000	[thread overview]
Message-ID: <48848CEA.2000704@hp.com> (raw)
In-Reply-To: <26d2cb010807201802h2a638962j3323627a54a7d646@mail.gmail.com>

leon zadorin wrote:
> Hi all,
> my system is
> 2.6.23.1-42.fc8 #1 SMP x86_64 x86_64 x86_64 GNU/Linux
> as I understand it - it comes with the kernel that is already
> sctp-enabled... (in fact I am able to create sctp sockets and
> communicate data between them).
> 
> I have a question wrt ability of finding the amount of 'free space' in
> the SND buffer associated with a givent sctp socket's fd (the actual
> buffering strategy [single buffer per association or not] is not
> important to me - only the fact that eventually any message written
> via an SCTP socket will have to go to some kernel-level buffer - and I
> want to know the amount of free space left in such a buffer before
> actually writing the message).
> 
> Essentially I don't want to wait for 'would block' type of a response
> from a written socket as in my deployment scenario it would,
> essentially, be too late- I want to begin throttling the data rate
> being directed to the outgoing sctp socket based on the amount of free
> space available in socket's buffer (the exact reasons are not that
> important and will not benefit this discussion).
> 
> This is present in TCP protocols with ioctls like SIOCOUTQ.
> 
> This is also available in SCTP's implelmentation by OpenSS7 (sctp-0.2.26)...
> 
> So just to clear a few things:
> 1) is linux's default SCTP implementation in 2.6 different from
> OpenSS7 implementation?

Yes, very different.

> 2) if so - are there any plans to support the aforementioned ioctl?

There are no plans that I know off.  This is the first such question/request,
so feel free to implement it and contribute the code.

-vlad
> 
> kind regards
> Leon.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


  parent reply	other threads:[~2008-07-21 13:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-21  1:02 where is (if at all) ioctl support for sctp...? leon zadorin
2008-07-21  1:10 ` leon zadorin
2008-07-21 13:19 ` Vlad Yasevich [this message]
2008-07-21 14:51 ` leon zadorin

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=48848CEA.2000704@hp.com \
    --to=vladislav.yasevich@hp.com \
    --cc=linux-sctp@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.