Commit 48b3cd6
net: stmmac: skip VLAN restore when VLAN hash ops are missing
stmmac_vlan_restore() unconditionally calls stmmac_vlan_update() when
NETIF_F_VLAN_FEATURES is set. On platforms where priv->hw->vlan (or
->update_vlan_hash) is not provided, stmmac_update_vlan_hash() returns
-EINVAL via stmmac_do_void_callback(), resulting in a spurious
"Failed to restore VLANs" error even when no VLAN filtering is in use.
Remove not needed comment.
Remove not used return value from stmmac_vlan_restore().
Tested on Orange Pi Zero 3.
Fixes: bd7ad51 ("net: stmmac: Fix VLAN HW state restore")
Signed-off-by: Michal Piekos <michal.piekos@mmpsystems.pl>
Link: https://patch.msgid.link/20260328-vlan-restore-error-v4-1-f88624c530dc@mmpsystems.pl
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent c0fd0fe commit 48b3cd6
1 file changed
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
6859 | 6859 | | |
6860 | 6860 | | |
6861 | 6861 | | |
6862 | | - | |
| 6862 | + | |
6863 | 6863 | | |
6864 | | - | |
6865 | | - | |
6866 | 6864 | | |
6867 | | - | |
| 6865 | + | |
6868 | 6866 | | |
6869 | 6867 | | |
6870 | 6868 | | |
6871 | 6869 | | |
6872 | | - | |
6873 | | - | |
6874 | | - | |
6875 | | - | |
6876 | | - | |
| 6870 | + | |
6877 | 6871 | | |
6878 | 6872 | | |
6879 | 6873 | | |
| |||
0 commit comments