ehea: Fix a copy-paste err in ehea_init_port_res
authorYueHaibing <[email protected]>
Wed, 3 Apr 2019 07:47:59 +0000 (15:47 +0800)
committerDavid S. Miller <[email protected]>
Fri, 5 Apr 2019 00:36:23 +0000 (17:36 -0700)
pr->tx_bytes should be assigned to tx_bytes other than
rx_bytes.

Reported-by: Hulk Robot <[email protected]>
Fixes: ce45b873028f ("ehea: Fixing statistics")
Signed-off-by: YueHaibing <[email protected]>
Reviewed-by: Mukesh Ojha <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/ibm/ehea/ehea_main.c

index 90b62c1412c8f4715eaf1ab3ca14a9128f1f9046..707c8ba120c25d033af9768fbb76da12954abdbd 100644 (file)
@@ -1463,7 +1463,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;