]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2022 13:15:51 +0000 (15:15 +0200)
commit5b69f34daccc416779bbbca3f87f6b24ebf0275a
tree43cfbd96c74b926b1fac9d52c77e85a50e7b5456
parent9a070a4417660f0a2d01ee85a9914b342b0a7af8
net: ionic: fix error check for vlan flags in ionic_set_nic_features()

[ Upstream commit a86e86db5e6d72c82724a63ca1c5293409a21518 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_lif.c