aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorKrzysztof Kazimierczak <[email protected]>2019-01-10 20:29:02 +0100
committerDaniel Borkmann <[email protected]>2019-01-15 20:51:57 +0100
commitcc5b5d3565048ae57d14e5674a5fb085b2ab0193 (patch)
tree802382d715a03e5f6e1f20558a700df5800533a3 /tools/perf/scripts/python/export-to-sqlite.py
parent7939f8beecf1cfb10d255be65bfbd3793fae82a1 (diff)
xsk: Check if a queue exists during umem setup
In the xdp_umem_assign_dev() path, the xsk code does not check if a queue for which umem is to be created exists. It leads to a situation where umem is not assigned to any Tx/Rx queue of a netdevice, without notifying the stack about an error. This affects both XDP_SKB and XDP_DRV modes - in case of XDP_DRV_ZC, queue index is checked by the driver. This patch fixes xsk code, so that in both XDP_SKB and XDP_DRV mode of AF_XDP, an error is returned when requested queue index exceedes an existing maximum. Fixes: c9b47cc1fabca ("xsk: fix bug when trying to use both copy and zero-copy on one queue id") Reported-by: Jakub Spizewski <[email protected]> Signed-off-by: Krzysztof Kazimierczak <[email protected]> Acked-by: Björn Töpel <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions