net/mlx5: E-Switch, Add API to create vport rx rules
authorOr Gerlitz <ogerlitz@mellanox.com>
Fri, 1 Jul 2016 11:51:00 +0000 (14:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Jul 2016 18:40:40 +0000 (14:40 -0400)
commitfed9ce22bf8ae8f417b8f047d2d630542d152ccf
tree9313ec7f20648ff6c789e4d3aca03d1f57e25116
parentc116c6eec6f72aac82ff4228ab1d277f3f9a2460
net/mlx5: E-Switch, Add API to create vport rx rules

Add the API to create vport rx rules of the form

packet meta-data :: vport == $VPORT --> $TIR

where the TIR is opened by this VF representor.

This logic will by used for packets that didn't match any rule in the
e-switch datapath and should be received into the host OS through the
netdevice that represents the VF they were sent from.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c