All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH next 0/2]  add 'private' and 'vepa' attributes to ipvlan modes
@ 2017-10-26 22:09 Mahesh Bandewar
  2017-10-29  9:40 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Mahesh Bandewar @ 2017-10-26 22:09 UTC (permalink / raw)
  To: Netdev
  Cc: Eric Dumazet, David Miller, Changgong Li, Mahesh Bandewar,
	Mahesh Bandewar

From: Mahesh Bandewar <maheshb@google.com>

IPvlan has always been operating in bridge-mode for its supported modes i.e.
if the packets are destined to the adjacent neighbor dev, then IPvlan driver
will switch the packet internally without needing the packets to hit the
wire or get routed. However, there are situations where this bridge-mode is
not needed. e.g. two private processes running inside two namespaces which
are having one IPvlan slave each for its namespace but sharing the master. These
processes should reach the outside world through the master device but at
the same time the bridge function should not work. Currently that's not
possible hence the private attribute for the selected mode comes in play.

VEPA or 802.1Qbg on the other hand has limited appeal with IPvlan since IPvlan
uses the mac-address of the lower device. So packets that are destined to 
the adjacent neighbor slave-dev will have same src and dest mac. When these
packets reach the external switch/router, they will send you the redirect
message which the host will have to deal with. Having said that this attribute 
will have appeal in debugging as IPvlan will not switch / short-circuit 
packets internally. e.g. using VEPA mode with lower-device in loopback mode
will avoid some complicated set-ups that use non-local-bind with some route
jugglery.

This patch-set implements these attributes for the existing modes that
IPvlan has. Please see individual patches for their detailed implementation.
A subsequent ip-utils patch is needed and will be sent soon.

Mahesh Bandewar (2):
  ipvlan: introduce 'private' attribute for all existing modes.
  ipvlan: implement VEPA mode

 Documentation/networking/ipvlan.txt | 42 +++++++++++++++++++++++++++++----
 drivers/net/ipvlan/ipvlan.h         | 31 ++++++++++++++++++++++++
 drivers/net/ipvlan/ipvlan_core.c    | 24 ++++++++++++++-----
 drivers/net/ipvlan/ipvlan_main.c    | 47 +++++++++++++++++++++++++++++++++++--
 include/uapi/linux/if_link.h        |  4 ++++
 5 files changed, 136 insertions(+), 12 deletions(-)

-- 
2.15.0.rc2.357.g7e34df9404-goog

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH next 0/2] add 'private' and 'vepa' attributes to ipvlan modes
  2017-10-26 22:09 [PATCH next 0/2] add 'private' and 'vepa' attributes to ipvlan modes Mahesh Bandewar
@ 2017-10-29  9:40 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-10-29  9:40 UTC (permalink / raw)
  To: mahesh; +Cc: netdev, edumazet, chonggangli, maheshb

From: Mahesh Bandewar <mahesh@bandewar.net>
Date: Thu, 26 Oct 2017 15:09:06 -0700

> From: Mahesh Bandewar <maheshb@google.com>
> 
> IPvlan has always been operating in bridge-mode for its supported modes i.e.
> if the packets are destined to the adjacent neighbor dev, then IPvlan driver
> will switch the packet internally without needing the packets to hit the
> wire or get routed. However, there are situations where this bridge-mode is
> not needed. e.g. two private processes running inside two namespaces which
> are having one IPvlan slave each for its namespace but sharing the master. These
> processes should reach the outside world through the master device but at
> the same time the bridge function should not work. Currently that's not
> possible hence the private attribute for the selected mode comes in play.
> 
> VEPA or 802.1Qbg on the other hand has limited appeal with IPvlan since IPvlan
> uses the mac-address of the lower device. So packets that are destined to 
> the adjacent neighbor slave-dev will have same src and dest mac. When these
> packets reach the external switch/router, they will send you the redirect
> message which the host will have to deal with. Having said that this attribute 
> will have appeal in debugging as IPvlan will not switch / short-circuit 
> packets internally. e.g. using VEPA mode with lower-device in loopback mode
> will avoid some complicated set-ups that use non-local-bind with some route
> jugglery.
> 
> This patch-set implements these attributes for the existing modes that
> IPvlan has. Please see individual patches for their detailed implementation.
> A subsequent ip-utils patch is needed and will be sent soon.

Series applied, thank you.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-29  9:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-26 22:09 [PATCH next 0/2] add 'private' and 'vepa' attributes to ipvlan modes Mahesh Bandewar
2017-10-29  9:40 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.