summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStephen Hemminger2009-10-05 08:01:03 +0200
committerDavid S. Miller2009-10-07 10:10:47 +0200
commit32953543221cfe2bf0a24205fab225e5b8ed81a0 (patch)
tree48343bcd03f897a97fde1dd597205e8323d1323a /include
parentnet: mark net_proto_ops as const (diff)
downloadkernel-qcow2-linux-32953543221cfe2bf0a24205fab225e5b8ed81a0.tar.gz
kernel-qcow2-linux-32953543221cfe2bf0a24205fab225e5b8ed81a0.tar.xz
kernel-qcow2-linux-32953543221cfe2bf0a24205fab225e5b8ed81a0.zip
dcb: data center bridging ops should be r/o
The data center bridging ops structure can be const Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netdevice.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 94958c109761..b332eefebb1b 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -909,7 +909,7 @@ struct net_device
#ifdef CONFIG_DCB
/* Data Center Bridging netlink ops */
- struct dcbnl_rtnl_ops *dcbnl_ops;
+ const struct dcbnl_rtnl_ops *dcbnl_ops;
#endif
#if defined(CONFIG_FCOE) || defined(CONFIG_FCOE_MODULE)