OpenCloudOS-Kernel/drivers/infiniband/hw
Marina Varshaver 0e451e883b IB/mlx4: Add support for the don't trap rule
Add support for receiving multicast/unicast traffic with
the don't trap rule.

Sniffing these packets requires a flow steering rule of type NORMAL
at priority 0 with flag IB_FLOW_ATTR_FLAGS_DONT_TRAP set.
Choosing between multicast or unicast is done via ethernet L2 dest_mac
mask and value:
- If mask is all zeros - unicast and multicast are set.
- If mask non zero - only mask with multicast bit 1 and rest 0 is
                     supported, the mac value will choose if it is
                     multicast or unicast rule.

If the mask multicast bit is on and some other bits are on too, it means
a request for specific multicast or unicast, this is not supported,
either receive all multicast or all unicast.

Only when limitations are met registered QP will receive requested type
but other QPs can receive same traffic if registered for it.
Otherwise, if limitations are not met, an error will be returned.

Limitations:
- Rule must be with priority 0.
- A0 mode is not supported.
- Sniffer QP cannot appear in any other flow steering rule.

Signed-off-by: Marina Varshaver <marinav@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-02-29 17:11:40 -05:00
..
cxgb3 iw_cxgb3: Fix incorrectly returning error on success 2015-12-24 00:17:30 -05:00
cxgb4 Initial roundup of 4.5 merge window patches 2016-01-23 18:45:06 -08:00
mlx4 IB/mlx4: Add support for the don't trap rule 2016-02-29 17:11:40 -05:00
mlx5 IB/mlx5: Fix RC transport send queue overhead computation 2016-02-12 14:56:08 -05:00
mthca IB: remove in-kernel support for memory windows 2015-12-23 14:29:04 -05:00
nes infiniband: Replace memset with eth_zero_addr 2016-01-19 15:24:54 -05:00
ocrdma RDMA/ocrdma: Fix arm logic to align with new cq API 2016-02-17 10:07:20 -05:00
qib Initial roundup of 4.5 merge window patches 2016-01-23 18:45:06 -08:00
usnic IB/usnic: delete unneeded IS_ERR test 2015-12-23 10:50:58 -05:00
Makefile IB/ehca: Deprecate driver, move to staging, schedule deletion 2015-09-11 18:13:35 -04:00