Skip to content

Commit

Permalink
net: hns3: Remove io_stop_wc() calls after __iowrite64_copy()
Browse files Browse the repository at this point in the history
BugLink: https://bugs.launchpad.net/bugs/2071655

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/[email protected]
Reviewed-by: Jijie Shao<[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
(cherry picked from commit 2b7a5e1)
Signed-off-by: Jamie Nguyen <[email protected]>
Acked-by: Brad Figg <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off-by: Brad Figg <[email protected]>
  • Loading branch information
jgunthorpe authored and jacobmartin0 committed Jul 15, 2024
1 parent 2991185 commit 8409e65
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
Expand Down

0 comments on commit 8409e65

Please sign in to comment.