From: Stephen Hemminger <stephen@networkplumber.org>
To: "Ananyev, Konstantin" <konstantin.ananyev@intel.com>
Cc: Ray Kinsella <mdr@ashroe.eu>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] RFC - adding filter to packet capture API
Date: Mon, 9 Dec 2019 08:49:18 -0800 [thread overview]
Message-ID: <20191209084918.2bb2e3ec@hermes.lan> (raw)
In-Reply-To: <BN7PR11MB25474284881E2709966BCF8E9A580@BN7PR11MB2547.namprd11.prod.outlook.com>
On Mon, 9 Dec 2019 13:41:30 +0000
"Ananyev, Konstantin" <konstantin.ananyev@intel.com> wrote:
> >
> > 4. Keep existing function signature, but be type unsafe.
> > This keeps API, but still is ABI breakage for programs that passed
> > garbage. Plus C is unsafe enough already.
> >
>
> My preference is probably #4, with some extra changes:
> make actual type for 'filter' be determined by flags,
> something like:
>
> enum {
> RTE_PDUMP_FLAG_RX = 1, /* receive direction */
> RTE_PDUMP_FLAG_TX = 2, /* transmit direction */
> + RTE_PDUMP_FLAG_CBPF = 4, /* filter points to struct bpf_program */
> /* both receive and transmit directions */
> RTE_PDUMP_FLAG_RXTX = (RTE_PDUMP_FLAG_RX|RTE_PDUMP_FLAG_TX)
> };
Interesting but that is more awkward usage.
next prev parent reply other threads:[~2019-12-09 16:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-06 22:11 [dpdk-dev] RFC - adding filter to packet capture API Stephen Hemminger
2019-12-09 10:24 ` Ray Kinsella
2019-12-09 13:41 ` Ananyev, Konstantin
2019-12-09 16:49 ` Stephen Hemminger [this message]
2019-12-11 20:13 ` Morten Brørup
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=20191209084918.2bb2e3ec@hermes.lan \
--to=stephen@networkplumber.org \
--cc=dev@dpdk.org \
--cc=konstantin.ananyev@intel.com \
--cc=mdr@ashroe.eu \
/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.