aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorNikolay Aleksandrov <[email protected]>2022-01-26 15:10:25 +0200
committerDavid S. Miller <[email protected]>2022-01-27 13:48:17 +0000
commitdcb2c5c6ca9b9177f04abaf76e5a983d177c9414 (patch)
treedbfe0b9499abc8c0f658ee1c92dbf4d9dd89de6f /tools/perf/util/scripting-engines/trace-event-python.c
parentaa44323e1c4d2e896f5f271c202a13f4c45e5b40 (diff)
net: bridge: vlan: fix single net device option dumping
When dumping vlan options for a single net device we send the same entries infinitely because user-space expects a 0 return at the end but we keep returning skb->len and restarting the dump on retry. Fix it by returning the value from br_vlan_dump_dev() if it completed or there was an error. The only case that must return skb->len is when the dump was incomplete and needs to continue (-EMSGSIZE). Reported-by: Benjamin Poirier <[email protected]> Fixes: 8dcea187088b ("net: bridge: vlan: add rtm definitions and dump support") Signed-off-by: Nikolay Aleksandrov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions