diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2014-09-20 05:02:54 -0700 |
---|---|---|
committer | Pravin B Shelar <pshelar@nicira.com> | 2014-09-20 19:36:33 -0700 |
commit | c981665a3d6cd0a2e60cf08f6a34691ba9e8f314 (patch) | |
tree | 8af06c3a55c7590ff812e4815807bf1807af46b1 /datapath/datapath.c | |
parent | ac8c20812b88c4aae7a002420f54d1333e27f784 (diff) | |
download | openvswitch-c981665a3d6cd0a2e60cf08f6a34691ba9e8f314.tar.gz |
datapath: Remove support to set vport stats.
This was required for old compatibility code which update stats
on fake bond interface. Now vswitchd has dropped it. This
support was always deprecated, so finally removing it.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
Diffstat (limited to 'datapath/datapath.c')
-rw-r--r-- | datapath/datapath.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/datapath/datapath.c b/datapath/datapath.c index ed9d7bd3c..3e5ff72c7 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -1831,10 +1831,6 @@ static int ovs_vport_cmd_new(struct sk_buff *skb, struct genl_info *info) if (IS_ERR(vport)) goto exit_unlock_free; - err = 0; - if (a[OVS_VPORT_ATTR_STATS]) - ovs_vport_set_stats(vport, nla_data(a[OVS_VPORT_ATTR_STATS])); - err = ovs_vport_cmd_fill_info(vport, reply, info->snd_portid, info->snd_seq, 0, OVS_VPORT_CMD_NEW); BUG_ON(err < 0); @@ -1878,10 +1874,6 @@ static int ovs_vport_cmd_set(struct sk_buff *skb, struct genl_info *info) goto exit_unlock_free; } - if (a[OVS_VPORT_ATTR_STATS]) - ovs_vport_set_stats(vport, nla_data(a[OVS_VPORT_ATTR_STATS])); - - if (a[OVS_VPORT_ATTR_UPCALL_PID]) { err = ovs_vport_set_upcall_portids(vport, a[OVS_VPORT_ATTR_UPCALL_PID]); |