linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Michal Sojka <sojkam1@fel.cvut.cz>, linux-can@vger.kernel.org
Cc: Marc Kleine-Budde <mkl@pengutronix.de>, lisovy@gmail.com
Subject: Re: [PATCH] can: Propagate SO_PRIORITY of raw sockets to skbs
Date: Fri, 24 Jan 2014 21:12:21 +0100	[thread overview]
Message-ID: <52E2C925.7050708@hartkopp.net> (raw)
In-Reply-To: <1390565857-10417-1-git-send-email-sojkam1@fel.cvut.cz>



On 24.01.2014 13:17, Michal Sojka wrote:
> From: Rostislav Lisovy <lisovy@gmail.com>
> 
> This allows controlling certain queueing disciplines by setting the
> socket's SO_PRIORITY option.
> 
> For example, with the default pfifo_fast queueing discipline, which
> provides three priorities, socket priority TC_PRIO_CONTROL means
> higher than default and TC_PRIO_BULK means lower than default.
> 
> Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
> Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>

Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>

Tnx Rostislav

> ---
>  net/can/raw.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/net/can/raw.c b/net/can/raw.c
> index 641e1c8..01c5fbf 100644
> --- a/net/can/raw.c
> +++ b/net/can/raw.c
> @@ -716,6 +716,7 @@ static int raw_sendmsg(struct kiocb *iocb, struct socket *sock,
>  
>  	skb->dev = dev;
>  	skb->sk  = sk;
> +	skb->priority = sk->sk_priority;
>  
>  	err = can_send(skb, ro->loopback);
>  
> 

  reply	other threads:[~2014-01-24 20:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-24 12:17 [PATCH] can: Propagate SO_PRIORITY of raw sockets to skbs Michal Sojka
2014-01-24 20:12 ` Oliver Hartkopp [this message]
2014-01-27  9:21 ` Marc Kleine-Budde

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=52E2C925.7050708@hartkopp.net \
    --to=socketcan@hartkopp.net \
    --cc=linux-can@vger.kernel.org \
    --cc=lisovy@gmail.com \
    --cc=mkl@pengutronix.de \
    --cc=sojkam1@fel.cvut.cz \
    /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).