Skip to content

Commit

Permalink
fix RXDCTL.ENABLE bit position
Browse files Browse the repository at this point in the history
  • Loading branch information
hb9cwp committed Dec 25, 2015
1 parent 93a5779 commit 4c8bf1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apps/intel/intel1g.lua
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function intel1g:new (conf)
poke32(r.RDLEN, ndesc * ffi.sizeof(rxdesc_t))

local rctl= {}
rctl.en= 1 -- enable receiver
rctl.RXEN= 1 -- enable receiver
rctl.sbp= 2 -- store bad packet
rctl.RCTL_UPE= 3 -- unicast promiscuous enable
rctl.RCTL_MPE= 4 -- multicast promiscuous enable
Expand All @@ -309,7 +309,7 @@ function intel1g:new (conf)
--rctl.RCTL_RDMTS_HALF= -- rx desc min threshold size
rctl.secrc= 26 -- i350 has a bug where it always strips the CRC, so strip CRC and cope in rxeof

set32(r.RXDCTL, {rxdctl_queue_enable= 24}) -- enable the RX queue
set32(r.RXDCTL, {ENABLE= 25}) -- enable the RX queue

poke32(r.RCTL, rctl) -- enable receiver

Expand Down

0 comments on commit 4c8bf1e

Please sign in to comment.