diff options
author | Andrii Nakryiko <[email protected]> | 2020-08-19 22:28:41 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-08-20 14:27:12 -0700 |
commit | c8a36f1945b2b1b3f9823b66fc2181dc069cf803 (patch) | |
tree | d58459c8ddf651a7125a9e809ca4036aa841814f /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 5597432dde62befd3ab92e6ef9e073564e277ea8 (diff) |
bpf: xdp: Fix XDP mode when no mode flags specified
7f0a838254bd ("bpf, xdp: Maintain info on attached XDP BPF programs in net_device")
inadvertently changed which XDP mode is assumed when no mode flags are
specified explicitly. Previously, driver mode was preferred, if driver
supported it. If not, generic SKB mode was chosen. That commit changed default
to SKB mode always. This patch fixes the issue and restores the original
logic.
Fixes: 7f0a838254bd ("bpf, xdp: Maintain info on attached XDP BPF programs in net_device")
Reported-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Tested-by: Lorenzo Bianconi <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions