From: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH rdma-next 0/7] Mellanox ConnectX-4/Connect-IB sniffer support
Date: Sun, 28 Aug 2016 14:16:27 +0300 [thread overview]
Message-ID: <1472382994-32091-1-git-send-email-leon@kernel.org> (raw)
This patch set adds sniffer support to mlx5 flow steering.
A sniffer rule could be created via ib_create_flow verb with
IB_FLOW_ATTR_SNIFFER type. When the user adds a sniffer rule,
its destination QP expects to receive all incoming and
outgoing packets from the port. Only raw packet QPs are
supported as destinations.
In ConnectX-4 based adapters, each incoming packet is duplicated and
sent to the sniffer RX flow table in addition to the NIC RX root flow
table. Each out going packet is duplicated and sent to the sniffer TX
flow table in addition to the wire.
In order to sniff all the traffic, we add a single "*" rule both
to the RX and TX sniffer flow tables. "*" rule is used to receive
all the traffic, this rule don't contain any criteria.
Available in the "topic/sniffer-verb" topic branch of this git repo:
git://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git
Or for browsing:
https://git.kernel.org/cgit/linux/kernel/git/leon/linux-rdma.git/log/?h=topic/sniffer-verb
Thanks,
Maor & Leon
Maor Gottlieb (7):
net/mlx5: Introduce sniffer steering hardware capabilities
net/mlx5: Add sniffer namespaces
IB/mlx5: Fix steering resource leak
IB/mlx5: Save flow table priority handler instead of index
IB/mlx5: Fix coverity warning
IB/mlx5: Increase flow table reference count in create rule
IB/mlx5: Add sniffer support to steering
drivers/infiniband/hw/mlx5/main.c | 91 ++++++++++++++++++++---
drivers/infiniband/hw/mlx5/mlx5_ib.h | 4 +-
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 58 +++++++++++++++
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h | 4 +
include/linux/mlx5/device.h | 12 +++
include/linux/mlx5/fs.h | 2 +
include/linux/mlx5/mlx5_ifc.h | 4 +-
7 files changed, 164 insertions(+), 11 deletions(-)
--
2.7.4
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2016-08-28 11:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-28 11:16 Leon Romanovsky [this message]
[not found] ` <1472382994-32091-1-git-send-email-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2016-08-28 11:16 ` [PATCH rdma-next 1/7] net/mlx5: Introduce sniffer steering hardware capabilities Leon Romanovsky
2016-08-28 11:16 ` [PATCH rdma-next 2/7] net/mlx5: Add sniffer namespaces Leon Romanovsky
2016-08-28 11:16 ` [PATCH rdma-next 3/7] IB/mlx5: Fix steering resource leak Leon Romanovsky
2016-08-28 11:16 ` [PATCH rdma-next 4/7] IB/mlx5: Save flow table priority handler instead of index Leon Romanovsky
2016-08-28 11:16 ` [PATCH rdma-next 5/7] IB/mlx5: Fix coverity warning Leon Romanovsky
2016-08-28 11:16 ` [PATCH rdma-next 6/7] IB/mlx5: Increase flow table reference count in create rule Leon Romanovsky
2016-08-28 11:16 ` [PATCH rdma-next 7/7] IB/mlx5: Add sniffer support to steering Leon Romanovsky
2016-10-01 23:36 ` [PATCH rdma-next 0/7] Mellanox ConnectX-4/Connect-IB sniffer support Doug Ledford
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=1472382994-32091-1-git-send-email-leon@kernel.org \
--to=leon-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox