net/mlx5: Move helper to eswitch layer
authorParav Pandit <parav@mellanox.com>
Fri, 19 Jun 2020 03:32:52 +0000 (03:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jun 2020 22:29:19 +0000 (15:29 -0700)
commit443bf36eb543238cbd6399d658839e2e17c8dab2
tree0ec1be9c9f783539e790a301b1d1ed1715592cb8
parentbd93975353d534175c03a6bc8928a2443a7d8d34
net/mlx5: Move helper to eswitch layer

To use port number to port index conversion at eswitch level, move it to
eswitch header.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h