File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -65,15 +65,16 @@ argument - drivers can process completions for any number of Tx
65
65
packets but should only process up to ``budget `` number of
66
66
Rx packets. Rx processing is usually much more expensive.
67
67
68
- In other words, it is recommended to ignore the budget argument when
69
- performing TX buffer reclamation to ensure that the reclamation is not
70
- arbitrarily bounded; however, it is required to honor the budget argument
71
- for RX processing.
68
+ In other words for Rx processing the ``budget `` argument limits how many
69
+ packets driver can process in a single poll. Rx specific APIs like page
70
+ pool or XDP cannot be used at all when ``budget `` is 0.
71
+ skb Tx processing should happen regardless of the ``budget ``, but if
72
+ the argument is 0 driver cannot call any XDP (or page pool) APIs.
72
73
73
74
.. warning ::
74
75
75
- The ``budget `` argument may be 0 if core tries to only process Tx completions
76
- and no Rx packets.
76
+ The ``budget `` argument may be 0 if core tries to only process
77
+ skb Tx completions and no Rx or XDP packets.
77
78
78
79
The poll method returns the amount of work done. If the driver still
79
80
has outstanding work to do (e.g. ``budget `` was exhausted)
You can’t perform that action at this time.
0 commit comments