Re: TX_QUEUE and RX_QUEUE in /proc/net/sctp/assoc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 27, 2017 at 3:56 PM, Sun Paul <paulrbk@xxxxxxxxx> wrote:
> Hi All
>
>
> what is the max value of TX_QUEUE and RX_QUEUE in /proc/net/sctp/assoc?
TX_QUEUE is assoc->sndbuf_used
RX_QUEUE is assoc->rmem_alloc

when sendmsg and ep->sndbuf_policy is set, it does the check:
 (asoc->sndbuf_used < sk->sk_sndbuf)

when recvmsg and ep->rcvbuf_policy is set, it does the check:
 (asoc->rmem_alloc < sk->sk_rcvbuf)

so what you're asking is how to know the value of sk->sk_sndbuf/sk_rcvbuf.

by  /proc/net/sctp/assoc, it's the last two column: sndbuf rcvbuf
by "sctp_diag interface", it's mem[SK_MEMINFO_SNDBUF/SK_MEMINFO_RCVBUF]
by getsockopt, it's SO_SNDBUF/SO_RCVBUF


>
> How we can determine the value?
>
> - RBK
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Networking Development]     [Linux OMAP]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux