net: hns3: Remove io_stop_wc() calls after __iowrite64_copy()
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 11 Apr 2024 16:46:18 +0000 (13:46 -0300)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 22 Apr 2024 20:11:20 +0000 (17:11 -0300)
Now that the ARM64 arch implementation does the DGH as part of
__iowrite64_copy() there is no reason to open code this in drivers.

Link: https://lore.kernel.org/r/5-v3-1893cd8b9369+1925-mlx5_arm_wc_jgg@nvidia.com
Reviewed-by: Jijie Shao<shaojijie@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c

index 19668a8d22f76ac06259b18c27177bc2f1c7405e..04b9e86363f8fce3d1c33bee7c6f6ea980a7f2bb 100644 (file)
@@ -2068,8 +2068,6 @@ static void hns3_tx_push_bd(struct hns3_enet_ring *ring, int num)
        __iowrite64_copy(ring->tqp->mem_base, desc,
                         (sizeof(struct hns3_desc) * HNS3_MAX_PUSH_BD_NUM) /
                         HNS3_BYTES_PER_64BIT);
-
-       io_stop_wc();
 }
 
 static void hns3_tx_mem_doorbell(struct hns3_enet_ring *ring)
@@ -2088,8 +2086,6 @@ static void hns3_tx_mem_doorbell(struct hns3_enet_ring *ring)
        u64_stats_update_begin(&ring->syncp);
        ring->stats.tx_mem_doorbell += ring->pending_buf;
        u64_stats_update_end(&ring->syncp);
-
-       io_stop_wc();
 }
 
 static void hns3_tx_doorbell(struct hns3_enet_ring *ring, int num,