mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
ramips: don't read RAMIPS_RX_CALC_IDX0 register in the loop
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30733 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d2cd4c0438
commit
990c8a3efa
@ -717,13 +717,15 @@ ramips_eth_rx_hw(unsigned long ptr)
|
||||
int rx;
|
||||
int max_rx = 16;
|
||||
|
||||
rx = ramips_fe_rr(RAMIPS_RX_CALC_IDX0);
|
||||
|
||||
while (max_rx) {
|
||||
struct raeth_rx_info *rxi;
|
||||
struct ramips_rx_dma *rxd;
|
||||
struct sk_buff *rx_skb, *new_skb;
|
||||
int pktlen;
|
||||
|
||||
rx = (ramips_fe_rr(RAMIPS_RX_CALC_IDX0) + 1) % NUM_RX_DESC;
|
||||
rx = (rx + 1) % NUM_RX_DESC;
|
||||
|
||||
rxi = &re->rx_info[rx];
|
||||
rxd = rxi->rx_desc;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user