Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752367AbdGFKk3 (ORCPT ); Thu, 6 Jul 2017 06:40:29 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:57740 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751850AbdGFKk1 (ORCPT ); Thu, 6 Jul 2017 06:40:27 -0400 Date: Thu, 06 Jul 2017 11:40:20 +0100 (WEST) Message-Id: <20170706.114020.1164331043260731183.davem@davemloft.net> To: lizheng043@gmail.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, vyasevich@gmail.com, nhorman@tuxdriver.com, linux-sctp@vger.kernel.org, jmorris@namei.org, james.z.li@ericsson.com, allen.y.zhao@ericsson.com, feng.qiu@ericsson.com Subject: Re: [PATCH] sctp: set the value of flowi6_oif to sk_bound_dev_if to make sctp_v6_get_dst to find the correct route entry. From: David Miller In-Reply-To: <1499324409-12489-1-git-send-email-lizheng043@gmail.com> References: <1499324409-12489-1-git-send-email-lizheng043@gmail.com> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 06 Jul 2017 03:40:26 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 577 Lines: 15 From: Zheng Li Date: Thu, 6 Jul 2017 15:00:09 +0800 > From: Zheng Li > > if there are several same route entries with different outgoing net device, > application's socket specifies the oif through setsockopt with > SO_BINDTODEVICE, sctpv6 should choose the route entry whose outgoing net > device is the oif which was specified by socket, set the value of > flowi6_oif to sk->sk_bound_dev_if to make sctp_v6_get_dst to find the > correct route entry. > > Signed-off-by: Zheng Li Applied, thanks.