Re: [PATCH net-next v3 1/2] net: l3mdev: Add hook in ip and ipv6

2016-05-09 Thread David Miller
From: David Ahern Date: Sat, 7 May 2016 21:16:44 -0700 > +static inline > +struct sk_buff *l3mdev_l3_rcv(struct sk_buff *skb, u16 proto) > +{ > + struct net_device *master = NULL; > + > + if (netif_is_l3_slave(skb->dev)) > + master = netdev_master_upper_dev_get_rcu(skb->dev);

[PATCH net-next v3 1/2] net: l3mdev: Add hook in ip and ipv6

2016-05-07 Thread David Ahern
Currently the VRF driver uses the rx_handler to switch the skb device to the VRF device. Switching the dev prior to the ip / ipv6 layer means the VRF driver has to duplicate IP/IPv6 processing which adds overhead and makes features such as retaining the ingress device index more complicated than ne