You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
net: ionic: fix error check for vlan flags in ionic_set_nic_features()
[ Upstream commita86e86db5e] 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:beead698b1("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9a070a4417
commit
5b69f34dac
@@ -1286,7 +1286,7 @@ static int ionic_set_nic_features(struct ionic_lif *lif,
|
||||
if ((old_hw_features ^ lif->hw_features) & IONIC_ETH_HW_RX_HASH)
|
||||
ionic_lif_rss_config(lif, lif->rss_types, NULL, NULL);
|
||||
|
||||
if ((vlan_flags & features) &&
|
||||
if ((vlan_flags & le64_to_cpu(ctx.cmd.lif_setattr.features)) &&
|
||||
!(vlan_flags & le64_to_cpu(ctx.comp.lif_setattr.features)))
|
||||
dev_info_once(lif->ionic->dev, "NIC is not supporting vlan offload, likely in SmartNIC mode\n");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user