summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/mlx4/main.c
diff options
context:
space:
mode:
authorMaor Gottlieb <maorg@mellanox.com>2015-10-15 11:44:39 (GMT)
committerDoug Ledford <dledford@redhat.com>2015-10-22 03:16:47 (GMT)
commit74194fb9c80cedb3130d26802c52deec3caebc75 (patch)
treee29c44c7b9904914bcde2a773e046d68e50a598a /drivers/infiniband/hw/mlx4/main.c
parent9a8928359736ab170303ee8a2cc15db54e3a4a8f (diff)
downloadlinux-74194fb9c80cedb3130d26802c52deec3caebc75.tar.xz
net/mlx4_en: Implement mcast loopback prevention for ETH qps
Set the mcast loopback prevention bit in the QPC for ETH MLX QPs (not RSS QPs), when the firmware supports this feature. In addition, all rx ring QPs need to be updated in order not to enforce loopback checks. This prevents getting packets we sent both from the network stack and the HCA. Loopback prevention is done by comparing the counter indices of the sent and receiving QPs. If they're equal, packets aren't loopback-ed. Signed-off-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/main.c')
0 files changed, 0 insertions, 0 deletions