[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230804123116.2495908-6-shaozhengchao@huawei.com>
Date: Fri, 4 Aug 2023 20:31:15 +0800
From: Zhengchao Shao <shaozhengchao@...wei.com>
To: <netdev@...r.kernel.org>, <bpf@...r.kernel.org>, <davem@...emloft.net>,
<edumazet@...gle.com>, <kuba@...nel.org>, <pabeni@...hat.com>
CC: <jiri@...nulli.us>, <weiyongjun1@...wei.com>, <yuehaibing@...wei.com>,
<shaozhengchao@...wei.com>
Subject: [PATCH net-next 5/6] team: get lb_priv from team directly in lb_htpm_select_tx_port
In order to delete unnecessary input parameter lb_priv, get "lb_priv" from
"team" directly in lb_htpm_select_tx_port.
Signed-off-by: Zhengchao Shao <shaozhengchao@...wei.com>
---
drivers/net/team/team_mode_loadbalance.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/team/team_mode_loadbalance.c b/drivers/net/team/team_mode_loadbalance.c
index 2f1573f253ec..a6021ae51d0d 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));
--
2.34.1
Powered by blists - more mailing lists