Thread (13 messages) 13 messages, 5 authors, 2016-09-09

Re: [PATCH net-next V6 4/4] net/sched: Introduce act_tunnel_key

flat view

From: Eric Dumazet <hidden>
Date: 2016-09-07 14:14:25

On Wed, 2016-09-07 at 11:08 +0300, Hadar Hen Zion wrote:
From: Amir Vadai <redacted>
quoted hunk ↗ jump to hunk
+static int tunnel_key_init(struct net *net, struct nlattr *nla,
+			   struct nlattr *est, struct tc_action **a,
+			   int ovr, int bind)
+{
+	struct tc_action_net *tn = net_generic(net, tunnel_key_net_id);
+	struct nlattr *tb[TCA_TUNNEL_KEY_MAX + 1];
+	struct metadata_dst *metadata = NULL;
+	struct tc_tunnel_key *parm;
+	struct tcf_tunnel_key *t;
+	struct tcf_tunnel_key_params *params_old;
+	struct tcf_tunnel_key_params *params_new;
+	__be64 key_id;
+	bool exists = false;
+	int ret = 0;
+	int err;
We try for new code to avoid reverse Christmas tree ;)

->

+       struct tc_action_net *tn = net_generic(net, tunnel_key_net_id);
+       struct nlattr *tb[TCA_TUNNEL_KEY_MAX + 1];
+       struct tcf_tunnel_key_params *params_old;
+       struct tcf_tunnel_key_params *params_new;
+       struct metadata_dst *metadata = NULL;
+       struct tc_tunnel_key *parm;
+       struct tcf_tunnel_key *t;
+       bool exists = false;
+       __be64 key_id;
+       int ret = 0;
+       int err;


Other than this, code looks fine to me, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help