diff options
author | Arun Sharma <arun.sharma@calsoftinc.com> | 2012-07-08 04:38:36 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-07-09 13:15:36 -0700 |
commit | e1fef0f921cbee185ce728f43f6b6ddbc4942e24 (patch) | |
tree | 39e9e4cc5f77e472d28d41ff1337254f8974213d /lib/dpif-netdev.c | |
parent | ba3bbb4ca7d55495f5491ed2d3deec8bdd4babae (diff) |
Rename static functions to increase uniqueness.
Rename do_* in ovs-dpctl and ovs-ofctl command with "dpctl_" or "ofctl_"
prefix.
Rename add_flow with dp_netdev_flow_add in lib/dpif-netdev.c.
Signed-off-by: Arun Sharma <arun.sharma@calsoftinc.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/dpif-netdev.c')
-rw-r--r-- | lib/dpif-netdev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index cade79ef..5f7ce8ff 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -713,10 +713,9 @@ set_flow_actions(struct dp_netdev_flow *flow, } static int -add_flow(struct dpif *dpif, const struct flow *key, - const struct nlattr *actions, size_t actions_len) +dp_netdev_flow_add(struct dp_netdev *dp, const struct flow *key, + const struct nlattr *actions, size_t actions_len) { - struct dp_netdev *dp = get_dp_netdev(dpif); struct dp_netdev_flow *flow; int error; @@ -762,7 +761,8 @@ dpif_netdev_flow_put(struct dpif *dpif, const struct dpif_flow_put *put) if (put->stats) { memset(put->stats, 0, sizeof *put->stats); } - return add_flow(dpif, &key, put->actions, put->actions_len); + return dp_netdev_flow_add(dp, &key, put->actions, + put->actions_len); } else { return EFBIG; } |