Commit 0430a260 authored by Weilin Chang's avatar Weilin Chang Committed by David S. Miller

liquidio: fix VF driver off-by-one bug when setting ethtool -C ethX rx-frames

Signed-off-by: default avatarWeilin Chang <weilin.chang@cavium.com>
Signed-off-by: default avatarDerek Chickles <derek.chickles@cavium.com>
Signed-off-by: default avatarFelix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f5165a54
...@@ -1808,7 +1808,7 @@ oct_cfg_rx_intrcnt(struct lio *lio, ...@@ -1808,7 +1808,7 @@ oct_cfg_rx_intrcnt(struct lio *lio,
(octeon_read_csr64( (octeon_read_csr64(
oct, CN23XX_VF_SLI_OQ_PKT_INT_LEVELS(q_no)) & oct, CN23XX_VF_SLI_OQ_PKT_INT_LEVELS(q_no)) &
(0x3fffff00000000UL)) | (0x3fffff00000000UL)) |
rx_max_coalesced_frames); (rx_max_coalesced_frames - 1));
/*consider writing to resend bit here*/ /*consider writing to resend bit here*/
} }
intrmod->rx_frames = rx_max_coalesced_frames; intrmod->rx_frames = rx_max_coalesced_frames;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment