Skip to content

Commit

Permalink
Intel VF interfaces default to statistics counter 0.
Browse files Browse the repository at this point in the history
Fixes #924.
  • Loading branch information
wingo committed May 19, 2016
1 parent 4c9a552 commit 2b8b453
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/apps/intel/intel10g.lua
Original file line number Diff line number Diff line change
Expand Up @@ -869,8 +869,8 @@ function M_vf:reconfig(opts)
:set_MAC(opts.macaddr)
:set_mirror(opts.mirror)
:set_VLAN(opts.vlan)
:set_rx_stats(opts.rxcounter)
:set_tx_stats(opts.txcounter)
:set_rx_stats(opts.rxcounter or 0)
:set_tx_stats(opts.txcounter or 0)
:set_tx_rate(opts.rate_limit, opts.priority)
:enable_receive()
:enable_transmit()
Expand All @@ -884,8 +884,8 @@ function M_vf:init (opts)
:set_MAC(opts.macaddr)
:set_mirror(opts.mirror)
:set_VLAN(opts.vlan)
:set_rx_stats(opts.rxcounter)
:set_tx_stats(opts.txcounter)
:set_rx_stats(opts.rxcounter or 0)
:set_tx_stats(opts.txcounter or 0)
:set_tx_rate(opts.rate_limit, opts.priority)
:enable_receive()
:enable_transmit()
Expand Down

0 comments on commit 2b8b453

Please sign in to comment.