From: Maciej Fijalkowski <maciej.fijalkowski@intel.com> To: bpf@vger.kernel.org, netdev@vger.kernel.org, ast@fb.com, daniel@iogearbox.net Cc: magnus.karlsson@intel.com, bjorn.topel@intel.com, Maciej Fijalkowski <maciej.fijalkowski@intel.com> Subject: [PATCH bpf-next 0/2] xsk: XSKMAP lookup improvements Date: Thu, 24 Oct 2019 09:19:29 +0200 [thread overview] Message-ID: <20191024071931.3628-1-maciej.fijalkowski@intel.com> (raw) Hi, This small set consists of two patches from Bjorn and myself which are optimizing the XSKMAP lookups. In first patch, Bjorn converts the array of pointers to struct xdp_sock to the flexible array member of XSKMAP itself. Second patch, based on Bjorn's work, implements the map_gen_lookup() for XSKMAP. Based on the XDP program from tools/lib/bpf/xsk.c where bpf_map_lookup_elem() is explicitly called, this work yields the 5% improvement for xdpsock's rxdrop scenario. Thanks! Björn Töpel (1): xsk: store struct xdp_sock as a flexible array member of the XSKMAP Maciej Fijalkowski (1): xsk: implement map_gen_lookup() callback for XSKMAP kernel/bpf/xskmap.c | 74 +++++++++++++++++++++++++-------------------- 1 file changed, 42 insertions(+), 32 deletions(-) -- 2.20.1
next reply other threads:[~2019-10-24 14:25 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-10-24 7:19 Maciej Fijalkowski [this message] 2019-10-24 7:19 ` [PATCH bpf-next 1/2] xsk: store struct xdp_sock as a flexible array member of the XSKMAP Maciej Fijalkowski 2019-10-24 20:12 ` Jakub Kicinski 2019-10-24 7:19 ` [PATCH bpf-next 2/2] xsk: implement map_gen_lookup() callback for XSKMAP Maciej Fijalkowski
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20191024071931.3628-1-maciej.fijalkowski@intel.com \ --to=maciej.fijalkowski@intel.com \ --cc=ast@fb.com \ --cc=bjorn.topel@intel.com \ --cc=bpf@vger.kernel.org \ --cc=daniel@iogearbox.net \ --cc=magnus.karlsson@intel.com \ --cc=netdev@vger.kernel.org \ --subject='Re: [PATCH bpf-next 0/2] xsk: XSKMAP lookup improvements' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).