aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch/vport.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2013-12-17 14:22:48 -0500
committerJesse Gross <jesse@nicira.com>2014-01-06 18:54:39 -0500
commit443cd88c8a31379e95326428bbbd40af25c1d440 (patch)
treea70bdb18d4518d40896f2ae0ecda9bbcf0626b57 /net/openvswitch/vport.c
parent09c5e6054e206ecf13945f50711856a5cb2d5de1 (diff)
ovs: make functions local
Several functions and datastructures could be local Found with 'make namespacecheck' Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'net/openvswitch/vport.c')
-rw-r--r--net/openvswitch/vport.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/openvswitch/vport.c b/net/openvswitch/vport.c
index d830a95f03a4..f28ff7e44144 100644
--- a/net/openvswitch/vport.c
+++ b/net/openvswitch/vport.c
@@ -33,6 +33,9 @@
33#include "vport.h" 33#include "vport.h"
34#include "vport-internal_dev.h" 34#include "vport-internal_dev.h"
35 35
36static void ovs_vport_record_error(struct vport *,
37 enum vport_err_type err_type);
38
36/* List of statically compiled vport implementations. Don't forget to also 39/* List of statically compiled vport implementations. Don't forget to also
37 * add yours to the list at the bottom of vport.h. */ 40 * add yours to the list at the bottom of vport.h. */
38static const struct vport_ops *vport_ops_list[] = { 41static const struct vport_ops *vport_ops_list[] = {
@@ -396,7 +399,8 @@ int ovs_vport_send(struct vport *vport, struct sk_buff *skb)
396 * If using the vport generic stats layer indicate that an error of the given 399 * If using the vport generic stats layer indicate that an error of the given
397 * type has occurred. 400 * type has occurred.
398 */ 401 */
399void ovs_vport_record_error(struct vport *vport, enum vport_err_type err_type) 402static void ovs_vport_record_error(struct vport *vport,
403 enum vport_err_type err_type)
400{ 404{
401 spin_lock(&vport->stats_lock); 405 spin_lock(&vport->stats_lock);
402 406