Repository navigation
Commit 545cd5e
net: Busy polling should ignore sender CPUs
This patch is a cleanup/fix for NAPI IDs following the changes that made it
so that sender_cpu and napi_id were doing a better job of sharing the same
location in the sk_buff.
One issue I found is that we weren't validating the napi_id as being valid
before we started trying to setup the busy polling. This change corrects
that by using the MIN_NAPI_ID value that is now used in both allocating the
NAPI IDs, as well as validating them.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent dcb421f commit 545cd5e
2 files changed
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
| |||
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
61 | | - | |
| 67 | + | |
62 | 68 | | |
63 | 69 | | |
64 | | - | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5066 | 5066 | | |
5067 | 5067 | | |
5068 | 5068 | | |
| 5069 | + | |
5069 | 5070 | | |
5070 | 5071 | | |
5071 | 5072 | | |
| 5073 | + | |
| 5074 | + | |
| 5075 | + | |
| 5076 | + | |
5072 | 5077 | | |
5073 | 5078 | | |
5074 | 5079 | | |
5075 | 5080 | | |
5076 | 5081 | | |
5077 | | - | |
| 5082 | + | |
5078 | 5083 | | |
5079 | 5084 | | |
5080 | 5085 | | |
| |||
5143 | 5148 | | |
5144 | 5149 | | |
5145 | 5150 | | |
5146 | | - | |
| 5151 | + | |
5147 | 5152 | | |
5148 | | - | |
5149 | | - | |
| 5153 | + | |
| 5154 | + | |
5150 | 5155 | | |
5151 | 5156 | | |
5152 | 5157 | | |
| |||
0 commit comments