diff options
| author | Or Gerlitz <ogerlitz@mellanox.com> | 2014-08-27 09:47:48 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-08-29 23:13:00 -0400 |
| commit | b95089d00c04712a9d4655d5c638930ac24b7bd3 (patch) | |
| tree | cf2141fd45eca887708cef2908268fb1928e791f /include/linux/mlx4 | |
| parent | 362b37be01edc7429e3ebaa89613517d57863f5c (diff) | |
net/mlx4: Move the tunnel steering helper function to mlx4_core
Move the function which we use to set VXLAN DMFS (flow-steering) rules
from mlx4_en to mlx4_core. This refactoring will allow the mlx4_ib driver
to call the helper for the use case of user-space RAW Ethernet QPs, such
that they can serve VXLAN traffic too.
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4')
| -rw-r--r-- | include/linux/mlx4/device.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 071f6b234604..511c6e0d21a9 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
| @@ -1196,6 +1196,9 @@ int mlx4_map_sw_to_hw_steering_id(struct mlx4_dev *dev, | |||
| 1196 | enum mlx4_net_trans_rule_id id); | 1196 | enum mlx4_net_trans_rule_id id); |
| 1197 | int mlx4_hw_rule_sz(struct mlx4_dev *dev, enum mlx4_net_trans_rule_id id); | 1197 | int mlx4_hw_rule_sz(struct mlx4_dev *dev, enum mlx4_net_trans_rule_id id); |
| 1198 | 1198 | ||
| 1199 | int mlx4_tunnel_steer_add(struct mlx4_dev *dev, unsigned char *addr, | ||
| 1200 | int port, int qpn, u16 prio, u64 *reg_id); | ||
| 1201 | |||
| 1199 | void mlx4_sync_pkey_table(struct mlx4_dev *dev, int slave, int port, | 1202 | void mlx4_sync_pkey_table(struct mlx4_dev *dev, int slave, int port, |
| 1200 | int i, int val); | 1203 | int i, int val); |
| 1201 | 1204 | ||
