From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sowmini Varadhan Subject: Re: [RFC net-next 3/6] net: Introduce VRF device driver - v2 Date: Thu, 9 Jul 2015 19:28:58 +0200 Message-ID: References: <1436195001-4818-1-git-send-email-dsa@cumulusnetworks.com> <1436195001-4818-4-git-send-email-dsa@cumulusnetworks.com> <559EAD2A.2090002@cumulusnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: netdev , Shrijeet Mukherjee , Roopa Prabhu , Andy Gospodarek , jtoppins@cumulusnetworks.com, nikolay@cumulusnetworks.com, ddutt@cumulusnetworks.com, Hannes Frederic Sowa , Nicolas Dichtel , Stephen Hemminger , hadi@mojatatu.com, "Eric W. Biederman" , David Miller To: David Ahern Return-path: Received: from mail-wi0-f173.google.com ([209.85.212.173]:35755 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751619AbbGIR27 (ORCPT ); Thu, 9 Jul 2015 13:28:59 -0400 Received: by wiga1 with SMTP id a1so319066060wig.0 for ; Thu, 09 Jul 2015 10:28:58 -0700 (PDT) In-Reply-To: <559EAD2A.2090002@cumulusnetworks.com> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, Jul 9, 2015 at 7:19 PM, David Ahern wrote: > On the to-do list to use cmsg to specify a VRF for outbound packets using > non-connected sockets. I do not believe it is going to work, but need to > look into it. > >> What about setting ipsec policy for interfaces in the vrf? >>From a purely parochial standpoint, how would rds sockets work in this model? Would the tcp encaps happen before or after the the vrf "driver" output? Same problem for NFS. >>From a non-parochial standpoint. There are a *lot* of routing apps that actually need more visibility into many details about the "slave" interface: e.g., OSPF, ARP snoop, IPSLA.. the list is pretty long. I think it's a bad idea to use a "driver" to represent a table lookup. Too many hacks will become necessary. --Sowmini