All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tushar Dave <tushar.n.dave@oracle.com>
To: netdev <netdev@vger.kernel.org>
Subject: Query: eBPF socket filter
Date: Fri, 20 Apr 2018 23:18:01 -0700	[thread overview]
Message-ID: <1bc2c8ee-e7ac-cf1b-6cd2-a0c1a7ab0afa@oracle.com> (raw)

Hi,

I am dealing with Reliable Datagram Socket (RDS) protocol and exploring
ways to filter RDS traffic using eBPF.

FYI, RDS sits on top of transport layer and works with
transport such as TCP and IB/RDMA. So RDS messages arrive in form of skb
(over TCP)and scatterlist (over IB/RDMA).

For RDS traffic over TCP, I am using ebpf program of type
BPF_PROG_TYPE_SOCKET_FILTER and with that my filter program receives
__sk_buff as bpf context. This works.
However, I cannot use BPF_PROG_TYPE_SOCKET_FILTER with struct
scatterlist. I am not sure if it would be appropriate to extend BPF
socket filter so that it also work with struct scatterlist?

Ideas/suggestions or any other alternatives please?

Thanks in advance,
-Tushar

                 reply	other threads:[~2018-04-20 23:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1bc2c8ee-e7ac-cf1b-6cd2-a0c1a7ab0afa@oracle.com \
    --to=tushar.n.dave@oracle.com \
    --cc=netdev@vger.kernel.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.