]> 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)
commit279d81b48bc4f2c1ef79b9321390df803937cb7e
tree79d5ee128ba78a7473328afbd65c2b68fe8b1903
parente3823bddabfc236ffea9087b6d9e272c6f882eb4
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: 1c7e71712563 ("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