mlx4: Set user-space raw Ethernet QPs to properly handle VXLAN traffic
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 27 Aug 2014 13:47:49 +0000 (16:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Aug 2014 03:13:00 +0000 (20:13 -0700)
commitd2fce8a9060db3af7e1b25e259b251da17f6a0d6
tree7b13e6461cae283319d915ddc01706694faaa6dc
parentb95089d00c04712a9d4655d5c638930ac24b7bd3
mlx4: Set user-space raw Ethernet QPs to properly handle VXLAN traffic

Raw Ethernet QPs opened from user-space lack the proper setup to
recieve/handle VXLAN traffic when VXLAN offloads are enabled.

Fix that by adding a tunnel steering rule on top of the normal unicast
steering rule and set the tunnel_type field in the QP context.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx4/qp.c