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)
commita86e86db5e6d72c82724a63ca1c5293409a21518
tree79d5ee128ba78a7473328afbd65c2b68fe8b1903
parent7dc839fe47611e6995f370cae37b9797cf7d2672
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: beead698b173 ("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