Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 967b2e2a authored by Lin Yun Sheng's avatar Lin Yun Sheng Committed by David S. Miller
Browse files

net: hns: Fix for __udivdi3 compiler error



This patch fixes the __udivdi3 undefined error reported by
test robot.

Fixes: b8c17f70 ("net: hns: Add self-adaptive interrupt coalesce support in hns driver")
Signed-off-by: default avatarYunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5987feb3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -847,7 +847,8 @@ static void hns_update_rx_rate(struct hnae_ring *ring)

	total_bytes = ring->stats.rx_bytes - ring->coal_last_rx_bytes;
	time_passed_ms = jiffies_to_msecs(jiffies - ring->coal_last_jiffies);
	ring->coal_rx_rate = (total_bytes / time_passed_ms) >> 10;
	do_div(total_bytes, time_passed_ms);
	ring->coal_rx_rate = total_bytes >> 10;

	ring->coal_last_rx_bytes = ring->stats.rx_bytes;
	ring->coal_last_jiffies = jiffies;