diff options
| author | Alexander Shishkin <[email protected]> | 2016-02-15 19:11:58 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-02-20 14:09:14 -0800 |
| commit | 97007500ec3f9b08913ebec986068b9d250a6eed (patch) | |
| tree | 798be73b21b415367120196171e936b2bca1ff06 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 2bed074aade2caa9c350121837c55189a8fd197e (diff) | |
intel_th: sth: Sanitize packet callback's return values
According to the stm class interface, the packet callback should return
an error if it is asked to generate packets that it doesn't support.
When it succeeds, it should return number of bytes consumed from its
payload. Currently, for FLAG packet it mistakenly returns 1.
This patch addresses these issues.
Signed-off-by: Alexander Shishkin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions