projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3a433d
)
net/mlx5e: Avoid redundant zeroing of offloaded TC flow attributes
author
Or Gerlitz
<
[email protected]
>
Thu, 5 Apr 2018 11:46:02 +0000
(14:46 +0300)
committer
Saeed Mahameed
<
[email protected]
>
Mon, 14 May 2018 22:10:21 +0000
(15:10 -0700)
This is not needed as the attributes are zeroed out on allocation.
Signed-off-by: Or Gerlitz <
[email protected]
>
Reviewed-by: Jianbo Liu <
[email protected]
>
Signed-off-by: Saeed Mahameed <
[email protected]
>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
index 85ad0948951c7e042e874fb4489a76b1478eb273..7d88e813bad174079a80d3b7463360848fb8e3bf 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
@@
-1923,7
+1923,6
@@
static int parse_tc_nic_actions(struct mlx5e_priv *priv, struct tcf_exts *exts,
return -EINVAL;
attr->flow_tag = MLX5_FS_DEFAULT_FLOW_TAG;
- attr->action = 0;
tcf_exts_to_list(exts, &actions);
list_for_each_entry(a, &actions, list) {
@@
-2464,7
+2463,6
@@
static int parse_tc_fdb_actions(struct mlx5e_priv *priv, struct tcf_exts *exts,
if (!tcf_exts_has_actions(exts))
return -EINVAL;
- memset(attr, 0, sizeof(*attr));
attr->in_rep = rpriv->rep;
tcf_exts_to_list(exts, &actions);