Message ID | 20230804113942.1699902-2-shaozhengchao@huawei.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | team: remove unused input parameters in lb_htpm_select_tx_port and lb_hash_select_tx_port | expand |
diff --git a/drivers/net/team/team_mode_loadbalance.c b/drivers/net/team/team_mode_loadbalance.c index 18d99fda997c..c06269c43d8a 100644 --- a/drivers/net/team/team_mode_loadbalance.c +++ b/drivers/net/team/team_mode_loadbalance.c @@ -129,10 +129,11 @@ static struct team_port *lb_hash_select_tx_port(struct team *team, /* Hash to port mapping select tx port */ static struct team_port *lb_htpm_select_tx_port(struct team *team, - struct lb_priv *lb_priv, + struct lb_priv *lb__priv, struct sk_buff *skb, unsigned char hash) { + struct lb_priv *lb_priv = get_lb_priv(team); struct team_port *port; port = rcu_dereference_bh(LB_HTPM_PORT_BY_HASH(lb_priv, hash));
In order ro delete unnecessary input parameter lb_priv, get "lb_priv" from "team" directly in lb_htpm_select_tx_port. Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> --- drivers/net/team/team_mode_loadbalance.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)