aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorMagnus Karlsson <magnus.karlsson@intel.com>2019-12-19 13:39:24 +0100
committerAlexei Starovoitov <ast@kernel.org>2019-12-20 16:00:09 -0800
commit4b638f13bab4dbfe8569c84e374e8201a427115c (patch)
tree49b18b735e3810ca3dcd0f6375eb9f7dc4740982 /mm
parentxsk: Standardize naming of producer ring access functions (diff)
downloadlinux-dev-4b638f13bab4dbfe8569c84e374e8201a427115c.tar.xz
linux-dev-4b638f13bab4dbfe8569c84e374e8201a427115c.zip
xsk: Eliminate the RX batch size
In the xsk consumer ring code there is a variable called RX_BATCH_SIZE that dictates the minimum number of entries that we try to grab from the fill and Tx rings. In fact, the code always try to grab the maximum amount of entries from these rings. The only thing this variable does is to throw an error if there is less than 16 (as it is defined) entries on the ring. There is no reason to do this and it will just lead to weird behavior from user space's point of view. So eliminate this variable. With this change, we will be able to simplify the xskq_nb_free and xskq_nb_avail code in the next commit. Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/1576759171-28550-6-git-send-email-magnus.karlsson@intel.com
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions