Commit cd004f5d authored by Ariel Levkovich's avatar Ariel Levkovich Committed by Xibo.Wang
Browse files

net: bonding: Inherit MPLS features from slave devices

mainline inclusion
from mianline-v5.3-rc1
commit 		2e770b50
category: task
bugzilla: https://gitee.com/openeuler/kernel/issues/I5Z32F


CVE: NA

--------------------------------

When setting the bonding interface net device features,
the kernel code doesn't address the slaves' MPLS features
and doesn't inherit them.

Therefore, HW offloads that enhance performance such as
checksumming and TSO are disabled for MPLS tagged traffic
flowing via the bonding interface.

The patch add the inheritance of the MPLS features from the
slave devices with a similar logic to setting the bonding device's
VLAN and encapsulation features.

CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Veaceslav Falico <vfalico@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: default avatarAriel Levkovich <lariel@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSun Shouxin <sunshouxin@chinatelecom.cn>
Signed-off-by: default avatarXibo.Wang <wangxb12@chinatelecom.cn>
parent 98b3569a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment