]> git.baikalelectronics.ru Git - kernel.git/commit
net: ionic: fix error check for vlan flags in ionic_set_nic_features()
authorJian Shen <shenjian15@huawei.com>
Fri, 29 Jul 2022 10:17:55 +0000 (18:17 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 1 Aug 2022 19:09:34 +0000 (12:09 -0700)
commitb2cec8c20aafcce22e2f831921f1d8a4bfbc3d35
tree79d5ee128ba78a7473328afbd65c2b68fe8b1903
parent8c70a61889226e85f6c92a2eb6453f257d01e3a1
net: ionic: fix error check for vlan flags in ionic_set_nic_features()

The prototype of input features of ionic_set_nic_features() is
netdev_features_t, but the vlan_flags is using the private
definition of ionic drivers. It should use the variable
ctx.cmd.lif_setattr.features, rather than features to check
the vlan flags. So fixes it.

Fixes: dfd305ad34f4 ("ionic: Add the basic NDO callbacks for netdev support")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Acked-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_lif.c