Commit d3b038d1 authored by YueHaibing's avatar YueHaibing Committed by Kleber Sacilotto de Souza

ehea: Fix a copy-paste err in ehea_init_port_res

BugLink: https://bugs.launchpad.net/bugs/1864773

[ Upstream commit c8f19128 ]

pr->tx_bytes should be assigned to tx_bytes other than
rx_bytes.
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Fixes: ce45b873 ("ehea: Fixing statistics")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarMukesh Ojha <mojha@codeaurora.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 4d37e17c
......@@ -1477,7 +1477,7 @@ static int ehea_init_port_res(struct ehea_port *port, struct ehea_port_res *pr,
memset(pr, 0, sizeof(struct ehea_port_res));
pr->tx_bytes = rx_bytes;
pr->tx_bytes = tx_bytes;
pr->tx_packets = tx_packets;
pr->rx_bytes = rx_bytes;
pr->rx_packets = rx_packets;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment