aboutsummaryrefslogtreecommitdiffstats
path: root/net/xdp/Kconfig
diff options
context:
space:
mode:
authorMagnus Karlsson <magnus.karlsson@intel.com>2019-12-19 13:39:21 +0100
committerAlexei Starovoitov <ast@kernel.org>2019-12-20 16:00:08 -0800
commit11cc2d21499cabe7e7964389634ed1de3ee91d33 (patch)
tree3d23f71142bcafac720d438eb99feef14ed219f5 /net/xdp/Kconfig
parentxsk: Eliminate the lazy update threshold (diff)
downloadlinux-dev-11cc2d21499cabe7e7964389634ed1de3ee91d33.tar.xz
linux-dev-11cc2d21499cabe7e7964389634ed1de3ee91d33.zip
xsk: Simplify detection of empty and full rings
In order to set the correct return flags for poll, the xsk code has to check if the Rx queue is empty and if the Tx queue is full. This code was unnecessarily large and complex as it used the functions that are used to update the local state from the global state (xskq_nb_free and xskq_nb_avail). Since we are not doing this nor updating any data dependent on this state, we can simplify the functions. Another benefit from this is that we can also simplify the xskq_nb_free and xskq_nb_avail functions in a later 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-3-git-send-email-magnus.karlsson@intel.com
Diffstat (limited to 'net/xdp/Kconfig')
0 files changed, 0 insertions, 0 deletions