[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1420440610-20621-6-git-send-email-simon.horman@netronome.com>
Date: Mon, 5 Jan 2015 15:50:09 +0900
From: Simon Horman <simon.horman@...ronome.com>
To: John Fastabend <john.fastabend@...il.com>
Cc: netdev@...r.kernel.org, Simon Horman <simon.horman@...ronome.com>
Subject: [PATCH/RFC rocker-net-next 5/6] net: flow: Return more fine-grained error when handing flows commands
net_flow_table_cmd_flows() sets err to various error values
before returning err. It seems as well to return the value.
Signed-off-by: Simon Horman <simon.horman@...ronome.com>
---
net/core/flow_table.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/core/flow_table.c b/net/core/flow_table.c
index 1a32a72..bfc984f 100644
--- a/net/core/flow_table.c
+++ b/net/core/flow_table.c
@@ -1285,7 +1285,7 @@ out:
if (skb)
nlmsg_free(skb);
dev_put(dev);
- return -EINVAL;
+ return err;
}
static const struct nla_policy net_flow_cmd_policy[NET_FLOW_MAX + 1] = {
--
2.1.3
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists