]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: ena: Change the name of bad_csum variable
authorArthur Kiyanovski <akiyano@amazon.com>
Fri, 7 Jan 2022 20:23:45 +0000 (20:23 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 8 Jan 2022 03:25:51 +0000 (19:25 -0800)
Changed bad_csum to csum_bad to align with csum_unchecked & csum_good

Signed-off-by: Nati Koler <nkoler@amazon.com>
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/amazon/ena/ena_ethtool.c
drivers/net/ethernet/amazon/ena/ena_netdev.c
drivers/net/ethernet/amazon/ena/ena_netdev.h

index c09e1b37048eeb6194ad8e8f275617d69700752c..39242c5a1729086349cd34f9df4b7972aba1b1fe 100644 (file)
@@ -82,7 +82,7 @@ static const struct ena_stats ena_stats_rx_strings[] = {
        ENA_STAT_RX_ENTRY(rx_copybreak_pkt),
        ENA_STAT_RX_ENTRY(csum_good),
        ENA_STAT_RX_ENTRY(refil_partial),
-       ENA_STAT_RX_ENTRY(bad_csum),
+       ENA_STAT_RX_ENTRY(csum_bad),
        ENA_STAT_RX_ENTRY(page_alloc_fail),
        ENA_STAT_RX_ENTRY(skb_alloc_fail),
        ENA_STAT_RX_ENTRY(dma_mapping_err),
index 33e414dbf7a13c928a228d6acbf478d24b13a3ce..0cc72303a2daedb5f1d810d72a6fcc1860cfb8d6 100644 (file)
@@ -1558,7 +1558,7 @@ static void ena_rx_checksum(struct ena_ring *rx_ring,
                     (ena_rx_ctx->l3_csum_err))) {
                /* ipv4 checksum error */
                skb->ip_summed = CHECKSUM_NONE;
-               ena_increase_stat(&rx_ring->rx_stats.bad_csum, 1,
+               ena_increase_stat(&rx_ring->rx_stats.csum_bad, 1,
                                  &rx_ring->syncp);
                netif_dbg(rx_ring->adapter, rx_err, rx_ring->netdev,
                          "RX IPv4 header checksum error\n");
@@ -1570,7 +1570,7 @@ static void ena_rx_checksum(struct ena_ring *rx_ring,
                   (ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_UDP))) {
                if (unlikely(ena_rx_ctx->l4_csum_err)) {
                        /* TCP/UDP checksum error */
-                       ena_increase_stat(&rx_ring->rx_stats.bad_csum, 1,
+                       ena_increase_stat(&rx_ring->rx_stats.csum_bad, 1,
                                          &rx_ring->syncp);
                        netif_dbg(rx_ring->adapter, rx_err, rx_ring->netdev,
                                  "RX L4 checksum error\n");
index 25b9d4dd05355ffd5f2e9cca49812962dd63bfb9..1659f0b6b82493093310ac2e0adb122635d276bd 100644 (file)
@@ -204,7 +204,7 @@ struct ena_stats_rx {
        u64 rx_copybreak_pkt;
        u64 csum_good;
        u64 refil_partial;
-       u64 bad_csum;
+       u64 csum_bad;
        u64 page_alloc_fail;
        u64 skb_alloc_fail;
        u64 dma_mapping_err;