summaryrefslogtreecommitdiff
path: root/datapath/vport-patch.c
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2010-11-23 22:08:27 -0800
committerJesse Gross <jesse@nicira.com>2010-12-02 17:10:16 -0800
commitb279fccf5bd8c5addfb8e73b04103405b6a8237e (patch)
tree66c716276007e4a8a456c46f5a0784f74da4118e /datapath/vport-patch.c
parentf981c8b0da9c8efec309064367e36338518eba15 (diff)
downloadopenvswitch-b279fccf5bd8c5addfb8e73b04103405b6a8237e.tar.gz
datapath: Constify ops structures.
vport_ops, tunnel_ops, and ethtool_ops should not change at runtime. Therefore, mark them as const to keep them out of the hotpath and to prevent them from getting trampled. Signed-off-by: Jesse Gross <jesse@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath/vport-patch.c')
-rw-r--r--datapath/vport-patch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath/vport-patch.c b/datapath/vport-patch.c
index 62fd71f79..81fa61b11 100644
--- a/datapath/vport-patch.c
+++ b/datapath/vport-patch.c
@@ -265,7 +265,7 @@ static int patch_send(struct vport *vport, struct sk_buff *skb)
return skb_len;
}
-struct vport_ops patch_vport_ops = {
+const struct vport_ops patch_vport_ops = {
.type = "patch",
.flags = VPORT_F_GEN_STATS,
.init = patch_init,