Skip to content

Commit

Permalink
Fetch VF ingress packet drops from correct queue
Browse files Browse the repository at this point in the history
  • Loading branch information
wingo committed May 19, 2016
1 parent 2b8b453 commit 2550c50
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/apps/intel/intel10g.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,6 @@ function M_vf:set_tx_stats (counter)
end

function M_vf:get_rxstats ()
if not self.rxstats then return nil end
return {
counter_id = self.rxstats,
packets = tonumber(self.pf.qs.QPRC[self.rxstats]()),
Expand All @@ -1150,7 +1149,6 @@ function M_vf:get_rxstats ()
end

function M_vf:get_txstats ()
if not self.txstats then return nil end
return {
counter_id = self.txstats,
packets = tonumber(self.pf.qs.QPTC[self.txstats]()),
Expand All @@ -1176,7 +1174,7 @@ function M_vf:set_tx_rate (limit, priority)
end

function M_vf:ingress_packet_drops ()
return self.pf:ingress_packet_drops()
return self.pf.qs.QPRDC[self.rxstats]()
end

rxdesc_t = ffi.typeof [[
Expand Down

0 comments on commit 2550c50

Please sign in to comment.