From: Yihao Han <hidden> Date: 2021-11-03 06:21:35
swap() was used instead of the tmp variable to swap values
Signed-off-by: Yihao Han <redacted>
---
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
From: Roi Dayan <hidden> Date: 2021-11-03 06:57:30
On 2021-11-03 8:21 AM, Yihao Han wrote:
quoted hunk
swap() was used instead of the tmp variable to swap values
Signed-off-by: Yihao Han <redacted>
---
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
@@ -907,12 +907,9 @@ mlx5_tc_ct_shared_counter_get(struct mlx5_tc_ct_priv *ct_priv,structmlx5_ct_tuplerev_tuple=entry->tuple;structmlx5_ct_counter*shared_counter;structmlx5_ct_entry*rev_entry;-__be16tmp_port;/* get the reversed tuple */-tmp_port=rev_tuple.port.src;-rev_tuple.port.src=rev_tuple.port.dst;-rev_tuple.port.dst=tmp_port;+swap(rev_tuple.port.src,rev_tuple.port.dst);if(rev_tuple.addr_type==FLOW_DISSECTOR_KEY_IPV4_ADDRS){__be32tmp_addr=rev_tuple.ip.src_v4;
just small comment on the title.
missing a space in the commit title after the colon.
I also think the prefix should be "net/mlx5e: CT, ..."
Reviewed-by: Roi Dayan <redacted>
On Wed, 2021-11-03 at 08:57 +0200, Roi Dayan wrote:
On 2021-11-03 8:21 AM, Yihao Han wrote:
quoted
swap() was used instead of the tmp variable to swap values
Signed-off-by: Yihao Han <redacted>
---
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
just small comment on the title.
missing a space in the commit title after the colon.
I also think the prefix should be "net/mlx5e: CT, ..."
Reviewed-by: Roi Dayan <redacted>
Fixed-up the commit message and applied to net-next-mlx5
On Wed, 2021-11-03 at 08:57 +0200, Roi Dayan wrote:
On 2021-11-03 8:21 AM, Yihao Han wrote:
quoted
swap() was used instead of the tmp variable to swap values
Signed-off-by: Yihao Han <redacted>
---
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
just small comment on the title.
missing a space in the commit title after the colon.
I also think the prefix should be "net/mlx5e: CT, ..."
Reviewed-by: Roi Dayan <redacted>