diff options
| author | Jesse Gross <jesse@nicira.com> | 2010-11-23 22:08:27 -0800 |
|---|---|---|
| committer | Jesse Gross <jesse@nicira.com> | 2010-12-02 17:10:16 -0800 |
| commit | b279fccf5bd8c5addfb8e73b04103405b6a8237e (patch) | |
| tree | 66c716276007e4a8a456c46f5a0784f74da4118e /datapath/vport-patch.c | |
| parent | f981c8b0da9c8efec309064367e36338518eba15 (diff) | |
| download | openvswitch-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.c | 2 |
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, |
