diff options
author | Luigi Rizzo <lrizzo@google.com> | 2019-11-18 16:19:51 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-11-19 14:06:35 -0800 |
commit | 3de88c9113f88c04abda339f1aa629397bf89e02 (patch) | |
tree | a5ca98f429517394b3799c63a7be0674365df9d1 /include/rdma | |
parent | 0424c5a4dda5608a2910474e3e8f0fd8e7126f42 (diff) |
net-af_xdp: Use correct number of channels from ethtool
Drivers use different fields to report the number of channels, so take
the maximum of all data channels (rx, tx, combined) when determining the
size of the xsk map. The current code used only 'combined' which was set
to 0 in some drivers e.g. mlx4.
Tested: compiled and run xdpsock -q 3 -r -S on mlx4
Signed-off-by: Luigi Rizzo <lrizzo@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20191119001951.92930-1-lrizzo@google.com
Diffstat (limited to 'include/rdma')
0 files changed, 0 insertions, 0 deletions