Skip to content

Commit

Permalink
apps.xdp: fixup comment about engine breath stimulation
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Nov 18, 2019
1 parent 4e31856 commit e53f314
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/apps/xdp/xdp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -540,9 +540,10 @@ function XDP:push ()
local p = link.receive(input)
transmit(tx, p)
-- Stimulate breathing: after the kernel is done with the packet buffer
-- it will either fed back from the completion ring onto the free ring,
-- or put back onto the freelist via packet.free_internal; hence, account
-- statistics for freed packet here.
-- it will either be fed back from the completion ring onto the free
-- ring, or put back onto the freelist via packet.free_internal; hence,
-- account statistics for freed packet here in order to signal to the
-- engine that throughput is happening.
packet.account_free(p)
end
push(tx)
Expand Down

0 comments on commit e53f314

Please sign in to comment.