From: David Miller <davem@davemloft.net>
To: david.barmann@stackpath.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH v3 net-next] sock: Reset dst when changing sk_mark via setsockopt
Date: Thu, 08 Nov 2018 19:36:26 -0800 (PST) [thread overview]
Message-ID: <20181108.193626.719722996347133067.davem@davemloft.net> (raw)
In-Reply-To: <20181108141335.GA29455@konacove.com>
From: David Barmann <david.barmann@stackpath.com>
Date: Thu, 8 Nov 2018 08:13:35 -0600
> When setting the SO_MARK socket option, if the mark changes, the dst
> needs to be reset so that a new route lookup is performed.
>
> This fixes the case where an application wants to change routing by
> setting a new sk_mark. If this is done after some packets have already
> been sent, the dst is cached and has no effect.
>
> Signed-off-by: David Barmann <david.barmann@stackpath.com>
Applied.
prev parent reply other threads:[~2018-11-09 13:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-08 14:13 [PATCH v3 net-next] sock: Reset dst when changing sk_mark via setsockopt David Barmann
2018-11-08 15:16 ` Eric Dumazet
2018-11-09 3:36 ` David Miller [this message]
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=20181108.193626.719722996347133067.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=david.barmann@stackpath.com \
--cc=netdev@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 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).