diff options
| author | Sven Eckelmann <sven@narfation.org> | 2026-07-30 10:57:53 +0200 |
|---|---|---|
| committer | Sven Eckelmann <sven@narfation.org> | 2026-08-04 17:33:04 +0200 |
| commit | e558ee008810ca24bc85747779673f5aa82ffddb (patch) | |
| tree | d45860ccdca45ebf8458851da800c2b3d0a77361 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 0de27651929b3a3b4f97d982445e30e4f46c1959 (diff) | |
batman-adv: tvlv: handle negative tvlv processing return codes
batadv_tvlv_containers_process() was implemented with only two return codes
from the handlers in mind:
* NET_RX_SUCCESS (0)
* NET_RX_DROP (1)
The multicast handlers broke this convention and are also returning
negative return codes. But the processing code was never updated to
correctly aggregate them.
To handle negative return codes for non-OGM(2) handlers, they are now
aggregated to:
* NET_RX_SUCCESS when no handlers returned a different return code
* the last negative return code when at least one handler returned a
negative return code
* NET_RX_DROP otherwise
With the current callers, the old implementation is not triggering any
unexpected behavior. The behavior is only adjusted for new code which might
need more reliable return values.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
