OSDN Git Service

net/mlx5: Properly handle a vport destination when setting FTE
authorShahar Klein <shahark@mellanox.com>
Thu, 22 Mar 2018 09:56:51 +0000 (11:56 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 17 May 2018 21:17:34 +0000 (14:17 -0700)
commit65360e5451121e493944776a7e33d1345c8483e6
treee709baf6220e2c11a41860663decb5dfba5bef6b
parenta6d04569120d53ebac1f0e6ffd5497b22c75f037
net/mlx5: Properly handle a vport destination when setting FTE

When creating FTE, properly distinguish between destination being vport
or tir. The previous code just worked accidentally b/c of both dest being
in the same offset within a union.

Signed-off-by: Shahar Klein <shahark@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c