summaryrefslogtreecommitdiffstats
path: root/drivers/tc
diff options
context:
space:
mode:
authorGuangbin Huang <huangguangbin2@huawei.com>2019-11-14 03:32:39 +0100
committerDavid S. Miller <davem@davemloft.net>2019-11-15 03:06:34 +0100
commit71c5e83bcf1e795e28a9dae6b1e74095452bf26e (patch)
tree414382ce5489f6f44e0352ddd86a5a557084b86b /drivers/tc
parentravb: implement MTU change while device is up (diff)
downloadlinux-71c5e83bcf1e795e28a9dae6b1e74095452bf26e.tar.xz
linux-71c5e83bcf1e795e28a9dae6b1e74095452bf26e.zip
net: hns3: add compatible handling for MAC VLAN switch parameter configuration
Previously, hns3 driver just directly send specific setting bit and mask bits of MAC VLAN switch parameter to the firmware, it can not be compatible with the old firmware, because the old one ignores mask bits and covers all bits with new setting bits. So when running with old firmware, the communication between PF and VF will fail after resetting or configuring spoof check, since they will do the MAC VLAN switch parameter configuration. This patch fixes this problem by reading switch parameter firstly, then just modifies the corresponding bit and sends it to firmware. Fixes: dd2956eab104 ("net: hns3: not allow SSU loopback while execute ethtool -t dev") Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/tc')
0 files changed, 0 insertions, 0 deletions