linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 for-next 0/7] Add support for multicast loopback prevention to mlx4
@ 2015-08-20 14:34 Eran Ben Elisha
       [not found] ` <1440081275-15864-1-git-send-email-eranbe-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: Eran Ben Elisha @ 2015-08-20 14:34 UTC (permalink / raw)
  To: Doug Ledford
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, Or Gerlitz, Eran Ben Elisha,
	Christoph Lameter

Hi Doug,

This patch-set adds a new  implementation for multicast loopback prevention for
mlx4 driver.  The current implementation is very limited, especially if link
layer is Ethernet. The new implementation is based on HW feature of dropping
incoming multicast packets if the sender QP counter index is equal to the
receiver counter index.

Patch 0001 extends ib_uverbs_create_qp in order to allow receiving the
multicast loopback flag at create flags.
Patch 0002 adds an infrastructure for the counters' loopback prevention in the
mlx4_core.
Patch 0003 modifies mlx4_en QPs to use the new loopback prevention mode.
Patches 0004-0006 implements this feature for mlx4_ib driver.
Patch 0007 allows setting IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK in create_flag
field both from uverbs and ib_create_qp.

Changes from v0:
  Move loopback assignment outside the for loop according to Yuval's comment
  rebase over to-be-rebased/for-4.3 


Thanks,
Eran.

Eran Ben Elisha (5):
  IB/core: Extend ib_uverbs_create_qp
  IB/core: Allow setting create flags in QP init attribute
  IB/mlx4: Add IB counters table
  IB/mlx4: Add counter based implementation for QP multicast loopback
    block
  IB/mlx4: Add support for blocking multicast loopback QP creation user
    flag

Maor Gottlieb (2):
  net/mlx4_core: Add support for filtering multicast loopback
  net/mlx4_en: Implement mcast loopback prevention for ETH qps

 drivers/infiniband/core/uverbs.h                   |   1 +
 drivers/infiniband/core/uverbs_cmd.c               | 259 +++++++++++++++------
 drivers/infiniband/core/uverbs_main.c              |   1 +
 drivers/infiniband/hw/mlx4/mad.c                   |  25 +-
 drivers/infiniband/hw/mlx4/main.c                  |  66 ++++--
 drivers/infiniband/hw/mlx4/mlx4_ib.h               |  10 +-
 drivers/infiniband/hw/mlx4/qp.c                    |  88 ++++++-
 drivers/net/ethernet/mellanox/mlx4/en_main.c       |  22 ++
 drivers/net/ethernet/mellanox/mlx4/en_resources.c  |  25 ++
 drivers/net/ethernet/mellanox/mlx4/fw.c            |   6 +
 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h       |   3 +-
 drivers/net/ethernet/mellanox/mlx4/qp.c            |  19 +-
 .../net/ethernet/mellanox/mlx4/resource_tracker.c  |  30 ++-
 include/linux/mlx4/device.h                        |   2 +
 include/linux/mlx4/qp.h                            |  24 +-
 include/uapi/rdma/ib_user_verbs.h                  |  26 +++
 16 files changed, 498 insertions(+), 109 deletions(-)

-- 
1.8.3.1

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2015-10-14 15:34 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-20 14:34 [PATCH v1 for-next 0/7] Add support for multicast loopback prevention to mlx4 Eran Ben Elisha
     [not found] ` <1440081275-15864-1-git-send-email-eranbe-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-08-20 14:34   ` [PATCH v1 for-next 1/7] IB/core: Extend ib_uverbs_create_qp Eran Ben Elisha
2015-08-20 14:34   ` [PATCH v1 for-next 2/7] IB/core: Allow setting create flags in QP init attribute Eran Ben Elisha
2015-08-20 14:34   ` [PATCH v1 for-next 3/7] net/mlx4_core: Add support for filtering multicast loopback Eran Ben Elisha
2015-08-20 14:34   ` [PATCH v1 for-next 4/7] net/mlx4_en: Implement mcast loopback prevention for ETH qps Eran Ben Elisha
2015-08-20 14:34   ` [PATCH v1 for-next 5/7] IB/mlx4: Add IB counters table Eran Ben Elisha
2015-08-20 14:34   ` [PATCH v1 for-next 6/7] IB/mlx4: Add counter based implementation for QP multicast loopback block Eran Ben Elisha
2015-08-20 14:34   ` [PATCH v1 for-next 7/7] IB/mlx4: Add support for blocking multicast loopback QP creation user flag Eran Ben Elisha
2015-08-25 16:44   ` [PATCH v1 for-next 0/7] Add support for multicast loopback prevention to mlx4 Christoph Lameter
     [not found]     ` <alpine.DEB.2.11.1508251143430.16801-wcBtFHqTun5QOdAKl3ChDw@public.gmane.org>
2015-08-26  9:12       ` eran ben elisha
     [not found]         ` <CAKHjkjnk9sFfr3KhNGBD_LzXUbDdb7_=vF2A3Z5+ousFShfxJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-14 15:34           ` Christoph Lameter
2015-09-21 14:24   ` eran ben elisha
     [not found]     ` <CAKHjkjnQNqeLu+irEg97a1hcKp_ziXsDOFaTRwcaPpZAX_fMng-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-29 18:24       ` Doug Ledford
     [not found]         ` <560AD75A.7080700-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-10-05 21:59           ` Or Gerlitz
     [not found]             ` <CAJ3xEMiuPEJZ5EQueC=8wQyok2QbEaywQ3gRYVpqOwSaFQcj0A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-06 16:05               ` Doug Ledford
     [not found]                 ` <5613F145.3040204-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-10-06 16:54                   ` Sagi Grimberg
     [not found]                     ` <5613FCB1.4050605-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2015-10-06 17:41                       ` Doug Ledford
2015-10-06 20:54                   ` Or Gerlitz
     [not found]                     ` <CAJ3xEMhsr5uRLZ=Ur56TOpZy5XT3UbK=M1kcgjt=zx_x3HNcSQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-06 21:26                       ` Doug Ledford
     [not found]                         ` <56143C8E.9090407-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-10-06 21:49                           ` Or Gerlitz
     [not found]                             ` <CAJ3xEMiNk2ZXgg_Ji5dg+ahL_D5_RAvEzEEhMsPDjC-PJYDu7Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-07 15:28                               ` Doug Ledford
     [not found]                                 ` <56153A0C.4040006-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-10-07 15:36                                   ` Or Gerlitz

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).