diff options
| author | Eric Dumazet <[email protected]> | 2015-11-18 06:30:50 -0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-11-18 16:17:37 -0500 |
| commit | 52bd2d62ce6758d811edcbd2256eb9ea7f6a56cb (patch) | |
| tree | a05cc3913f4389700efef15cccf882befbcd6d32 /tools/perf/scripts/python/netdev-times.py | |
| parent | d37b4c0a3647db23f41c5ee85701eec3544446d1 (diff) | |
net: better skb->sender_cpu and skb->napi_id cohabitation
skb->sender_cpu and skb->napi_id share a common storage,
and we had various bugs about this.
We had to call skb_sender_cpu_clear() in some places to
not leave a prior skb->napi_id and fool netdev_pick_tx()
As suggested by Alexei, we could split the space so that
these errors can not happen.
0 value being reserved as the common (not initialized) value,
let's reserve [1 .. NR_CPUS] range for valid sender_cpu,
and [NR_CPUS+1 .. ~0U] for valid napi_id.
This will allow proper busy polling support over tunnels.
Signed-off-by: Eric Dumazet <[email protected]>
Suggested-by: Alexei Starovoitov <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions