]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd748ca2e5e66595da0a4d8aef44bf3242360c927
treee709baf6220e2c11a41860663decb5dfba5bef6b
parenta6235165d85257c70d4c9df3e10c81529d841560
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