net: dsa: qca8k: fix warning in LAG feature
Subsystems (3)
PATCH 1/1 net: dsa: qca8k: fix warning in LAG feature
Fix warning reported by bot.
Make sure hash is init to 0 and fix wrong logic for hash_type in qca8k_lag_can_offload.
Reported-by kernel test robot <[email protected]>
Signed-off-by Ansuel Smith <[email protected]>
--- drivers/net/dsa/qca8k.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/dsa/qca8k.c +2 -2
@@ -2228,7 +2228,7 @@ qca8k_lag_can_offload(struct dsa_switch *ds,if (info->tx_type !=NETDEV_LAG_TX_TYPE_HASH )return false; -if (info->hash_type !=NETDEV_LAG_HASH_L2 || +if (info->hash_type !=NETDEV_LAG_HASH_L2 && info->hash_type !=NETDEV_LAG_HASH_L23 )return false;
@@ -2242,8 +2242,8 @@ qca8k_lag_setup_hash(struct dsa_switch *ds, {struct qca8k_priv *priv = ds->priv;bool unique_lag = true; +u32 hash =0 ;int i, id; -u32 hash; id =dsa_lag_id (ds->dst, lag);
Signature · 1 line
2.32.0
Quoted 6 lines · Ansuel Smith
Fix warning reported by bot.
Make sure hash is init to 0 and fix wrong logic forhash_typeinqca8k_lag_can_offload.Reported-by kernel test robot <[email protected]>Signed-off-by Ansuel Smith <[email protected]>
Reviewed-by Florian Fainelli <[email protected]>
Fixes def975307c01 ("net: dsa: qca8k: add LAG support")
Signature · 1 line
Florian
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Tue, 23 Nov 2021 16:44:46 +0100 you wrote:
Fix warning reported by bot.
Make sure hash is init to 0 and fix wrong logic forhash_typeinqca8k_lag_can_offload.Reported-by kernel test robot <[email protected]>Signed-off-by Ansuel Smith <[email protected]>[...]
Here is the summary with links:
- [net-next] net: dsa: qca8k: fix warning in LAG feature
https://git.kernel.org/netdev/net-next/c/0898ca67b86e
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html