From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH net-next v4 6/9] vrf: mark skb for multicast or link-local as enslaved to VRF Date: Tue, 6 Nov 2018 11:13:38 -0700 Message-ID: References: <20181102191020.14170-1-mmanning@vyatta.att-mail.com> <20181102191020.14170-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-pf1-f194.google.com ([209.85.210.194]:40900 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729642AbeKGDkI (ORCPT ); Tue, 6 Nov 2018 22:40:08 -0500 Received: by mail-pf1-f194.google.com with SMTP id x2-v6so2389629pfm.7 for ; Tue, 06 Nov 2018 10:13:41 -0800 (PST) In-Reply-To: <20181102191020.14170-7-mmanning@vyatta.att-mail.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 11/2/18 1:10 PM, 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