From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH net-next v5 6/9] vrf: mark skb for multicast or link-local as enslaved to VRF Date: Wed, 7 Nov 2018 12:07:28 -0700 Message-ID: References: <20181107153610.7526-1-mmanning@vyatta.att-mail.com> <20181107153610.7526-7-mmanning@vyatta.att-mail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: Mike Manning , netdev@vger.kernel.org Return-path: Received: from mail-pl1-f193.google.com ([209.85.214.193]:38552 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbeKHEjM (ORCPT ); Wed, 7 Nov 2018 23:39:12 -0500 Received: by mail-pl1-f193.google.com with SMTP id p4-v6so5893104plo.5 for ; Wed, 07 Nov 2018 11:07:31 -0800 (PST) In-Reply-To: <20181107153610.7526-7-mmanning@vyatta.att-mail.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 11/7/18 8:36 AM, Mike Manning wrote: > The skb for packets that are multicast or to a link-local address are > not marked as being enslaved to a VRF, if they are received on a socket > bound to the VRF. This is needed for ND and it is preferable for the > kernel not to have to deal with the additional use-cases if ll or mcast > packets are handled as enslaved. However, this does not allow service > instances listening on unbound and bound to VRF sockets to distinguish > the VRF used, if packets are sent as multicast or to a link-local > address. The fix is for the VRF driver to also mark these skb as being > enslaved to the VRF. > > Signed-off-by: Mike Manning > --- > drivers/net/vrf.c | 19 +++++++++---------- > 1 file changed, 9 insertions(+), 10 deletions(-) > Reviewed-by: David Ahern Tested-by: David Ahern