mbox series

[net-next,0/2] Support MPLS features in bonding and vlan net devices

Message ID 1559601394-5363-1-git-send-email-lariel@mellanox.com
Headers show
Series Support MPLS features in bonding and vlan net devices | expand

Message

Ariel Levkovich June 3, 2019, 10:36 p.m. UTC
Netdevice HW MPLS features are not passed from device driver's netdevice to
upper netdevice, specifically VLAN and bonding netdevice which are created
by the kernel when needed.

This prevents enablement and usage of HW offloads, such as TSO and checksumming
for MPLS tagged traffic when running via VLAN or bonding interface.

The patches introduce changes to the initialization steps of the VLAN and bonding
netdevices to inherit the MPLS features from lower netdevices to allow the HW
offloads.

Ariel Levkovich (2):
  net: bonding: Inherit MPLS features from slave devices
  net: vlan: Inherit MPLS features from parent device

 drivers/net/bonding/bond_main.c | 11 +++++++++++
 net/8021q/vlan_dev.c            |  1 +
 2 files changed, 12 insertions(+)

Comments

David Miller June 4, 2019, 9:49 p.m. UTC | #1
From: Ariel Levkovich <lariel@mellanox.com>
Date: Mon, 3 Jun 2019 22:36:45 +0000

> Netdevice HW MPLS features are not passed from device driver's netdevice to
> upper netdevice, specifically VLAN and bonding netdevice which are created
> by the kernel when needed.
> 
> This prevents enablement and usage of HW offloads, such as TSO and checksumming
> for MPLS tagged traffic when running via VLAN or bonding interface.
> 
> The patches introduce changes to the initialization steps of the VLAN and bonding
> netdevices to inherit the MPLS features from lower netdevices to allow the HW
> offloads.

Series applied, thanks.