android_kernel_motorola_sm6375/tools/lib
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Luigi Rizzo d5225f3247 net-af_xdp: Use correct number of channels from ethtool
[ Upstream commit 3de88c9113f88c04abda339f1aa629397bf89e02 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-31 16:45:40 +01:00
..
api
bpf net-af_xdp: Use correct number of channels from ethtool 2019-12-31 16:45:40 +01:00
lockdep
subcmd libsubcmd: Use -O0 with DEBUG=1 2019-12-31 16:44:56 +01:00
symbol
traceevent libtraceevent: Man pages for tep plugins APIs 2019-09-25 09:51:43 -03:00
argv_split.c
bitmap.c
ctype.c
find_bit.c
hweight.c
rbtree.c rbtree: avoid generating code twice for the cached versions (tools copy) 2019-09-25 17:51:39 -07:00
str_error_r.c
string.c
vsprintf.c
zalloc.c