All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 1/3] ipvlan: forbid vlan devices on top of ipvlan
@ 2018-03-02 10:55 Paolo Abeni
  2018-03-02 10:59 ` Paolo Abeni
  0 siblings, 1 reply; 2+ messages in thread
From: Paolo Abeni @ 2018-03-02 10:55 UTC (permalink / raw)
  To: netdev; +Cc: David S. Miller, Mahesh Bandewar

Currently we allow the creation of 8021q devices on top of
ipvlan, but such devices are nonfunctional, as the underlying
ipvlan rx_hanlder hook can't match the relevant traffic.

Be explicit and forbid the creation of such nonfunctional devices.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
---
 drivers/net/ipvlan/ipvlan_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ipvlan/ipvlan_main.c b/drivers/net/ipvlan/ipvlan_main.c
index 3efc1c92c6a7..4cbe9e27287d 100644
--- a/drivers/net/ipvlan/ipvlan_main.c
+++ b/drivers/net/ipvlan/ipvlan_main.c
@@ -178,7 +178,7 @@ static int ipvlan_init(struct net_device *dev)
 	dev->state = (dev->state & ~IPVLAN_STATE_MASK) |
 		     (phy_dev->state & IPVLAN_STATE_MASK);
 	dev->features = phy_dev->features & IPVLAN_FEATURES;
-	dev->features |= NETIF_F_LLTX;
+	dev->features |= NETIF_F_LLTX | NETIF_F_VLAN_CHALLENGED;
 	dev->gso_max_size = phy_dev->gso_max_size;
 	dev->gso_max_segs = phy_dev->gso_max_segs;
 	dev->hard_header_len = phy_dev->hard_header_len;
-- 
2.14.3

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

* Re: [PATCH net-next 1/3] ipvlan: forbid vlan devices on top of ipvlan
  2018-03-02 10:55 [PATCH net-next 1/3] ipvlan: forbid vlan devices on top of ipvlan Paolo Abeni
@ 2018-03-02 10:59 ` Paolo Abeni
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Abeni @ 2018-03-02 10:59 UTC (permalink / raw)
  To: netdev; +Cc: David S. Miller, Mahesh Bandewar

On Fri, 2018-03-02 at 11:55 +0100, Paolo Abeni wrote:
> Currently we allow the creation of 8021q devices on top of
> ipvlan, but such devices are nonfunctional, as the underlying
> ipvlan rx_hanlder hook can't match the relevant traffic.
> 
> Be explicit and forbid the creation of such nonfunctional devices.
> 
> Signed-off-by: Paolo Abeni <pabeni@redhat.com>

Oops.. this is not part of any series. I apologize for the noise, I
will resend with a proper subj.

Cheers,

Paolo

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

end of thread, other threads:[~2018-03-02 10:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-02 10:55 [PATCH net-next 1/3] ipvlan: forbid vlan devices on top of ipvlan Paolo Abeni
2018-03-02 10:59 ` Paolo Abeni

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.