All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-next 0/5] Add scatter FCS support
@ 2016-04-17 14:19 Matan Barak
       [not found] ` <1460902778-5977-1-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 15+ messages in thread
From: Matan Barak @ 2016-04-17 14:19 UTC (permalink / raw)
  To: Doug Ledford; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, Majd Dibbiny, Matan Barak

Hi Doug,

Frame Check Sequence (FCS) is an error detecting code that terminates
an Ethernet frame. When using Raw Ethernet, users sometimes want
to validate the FCS themselves, and therefore it should be scattered
to the receive buffers.

This series adds the above support.

The user can control scattering the FCS using Queue-Pair(QP) creation
flag called IB_QP_CREATE_SCATTER_FCS.

Also, to report this new device capability, we had to add a new
device capability flags in the uverbs response called
device_cap_flags_ex, since all the current device_cap_flags are
occupied.

device_cap_flags_ex 0-31 bits are identical to the legacy
device_cap_flags, and the upper 32 bits (32-63 bits) report new
extended device capabilities.

Devices that support scattering the FCS should report it in
device_cap_flags_ex using IB_DEVICE_RAW_SCATTER_FCS.

This patch depends on the mlx5 core shared code that was sent to both
IB and net trees and was already accepted by Dave Miller:
net/mlx5: Update mlx5_ifc hardware features
net/mlx5: Fix mlx5 ifc cmd_hca_cap bad offsets

Moreover, this patch conflicts with the LSO series (that will be
sent soon). The resolution of this conflict is available in
Mellanox's tree.

Thanks,
Majd and Matan

Majd Dibbiny (5):
  IB/core: Add extended device capability flags
  IB/core: Add Raw Scatter FCS device capability
  IB/core: Add Scatter FCS create flag
  IB/mlx5: Add Scatter FCS support for Raw Packet QP
  IB/mlx5: Report Scatter FCS device capability when supported

 drivers/infiniband/core/uverbs_cmd.c |  8 +++++++-
 drivers/infiniband/hw/mlx5/main.c    |  4 ++++
 drivers/infiniband/hw/mlx5/mlx5_ib.h |  1 +
 drivers/infiniband/hw/mlx5/qp.c      | 20 +++++++++++++++++++-
 include/rdma/ib_verbs.h              |  2 ++
 include/uapi/rdma/ib_user_verbs.h    |  1 +
 6 files changed, 34 insertions(+), 2 deletions(-)

-- 
2.5.0

--
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] 15+ messages in thread

end of thread, other threads:[~2016-05-13 23:18 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-17 14:19 [PATCH for-next 0/5] Add scatter FCS support Matan Barak
     [not found] ` <1460902778-5977-1-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-04-17 14:19   ` [PATCH for-next 1/5] IB/core: Add extended device capability flags Matan Barak
2016-04-17 14:19   ` [PATCH for-next 2/5] IB/core: Add Raw Scatter FCS device capability Matan Barak
2016-04-17 14:19   ` [PATCH for-next 3/5] IB/core: Add Scatter FCS create flag Matan Barak
2016-04-17 14:19   ` [PATCH for-next 4/5] IB/mlx5: Add Scatter FCS support for Raw Packet QP Matan Barak
     [not found]     ` <1460902778-5977-5-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-04-17 15:10       ` kbuild test robot
2016-04-17 15:32       ` kbuild test robot
2016-04-17 15:44       ` kbuild test robot
2016-04-17 14:19   ` [PATCH for-next 5/5] IB/mlx5: Report Scatter FCS device capability when supported Matan Barak
     [not found]     ` <1460902778-5977-6-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-04-17 15:15       ` kbuild test robot
2016-04-17 15:44       ` kbuild test robot
     [not found]         ` <201604172352.60qppaot%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2016-04-21  1:24           ` ira.weiny
     [not found]             ` <20160421012442.GA30527-W4f6Xiosr+yv7QzWx2u06xL4W9x8LtSr@public.gmane.org>
2016-04-21  7:07               ` Leon Romanovsky
2016-05-13 20:39   ` [PATCH for-next 0/5] Add scatter FCS support Doug Ledford
     [not found]     ` <92e9a494-c363-db42-894c-17d67fe96ecc-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-05-13 23:18       ` Jason Gunthorpe

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.