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>
This commit is contained in:
parent
ec1b4cf74c
commit
3295354322
@ -397,7 +397,7 @@ enum ixgbe_boards {
|
|||||||
extern struct ixgbe_info ixgbe_82598_info;
|
extern struct ixgbe_info ixgbe_82598_info;
|
||||||
extern struct ixgbe_info ixgbe_82599_info;
|
extern struct ixgbe_info ixgbe_82599_info;
|
||||||
#ifdef CONFIG_IXGBE_DCB
|
#ifdef CONFIG_IXGBE_DCB
|
||||||
extern struct dcbnl_rtnl_ops dcbnl_ops;
|
extern const struct dcbnl_rtnl_ops dcbnl_ops;
|
||||||
extern int ixgbe_copy_dcb_cfg(struct ixgbe_dcb_config *src_dcb_cfg,
|
extern int ixgbe_copy_dcb_cfg(struct ixgbe_dcb_config *src_dcb_cfg,
|
||||||
struct ixgbe_dcb_config *dst_dcb_cfg,
|
struct ixgbe_dcb_config *dst_dcb_cfg,
|
||||||
int tc_max);
|
int tc_max);
|
||||||
|
@ -563,7 +563,7 @@ static u8 ixgbe_dcbnl_setapp(struct net_device *netdev,
|
|||||||
return rval;
|
return rval;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct dcbnl_rtnl_ops dcbnl_ops = {
|
const struct dcbnl_rtnl_ops dcbnl_ops = {
|
||||||
.getstate = ixgbe_dcbnl_get_state,
|
.getstate = ixgbe_dcbnl_get_state,
|
||||||
.setstate = ixgbe_dcbnl_set_state,
|
.setstate = ixgbe_dcbnl_set_state,
|
||||||
.getpermhwaddr = ixgbe_dcbnl_get_perm_hw_addr,
|
.getpermhwaddr = ixgbe_dcbnl_get_perm_hw_addr,
|
||||||
|
@ -909,7 +909,7 @@ struct net_device
|
|||||||
|
|
||||||
#ifdef CONFIG_DCB
|
#ifdef CONFIG_DCB
|
||||||
/* Data Center Bridging netlink ops */
|
/* Data Center Bridging netlink ops */
|
||||||
struct dcbnl_rtnl_ops *dcbnl_ops;
|
const struct dcbnl_rtnl_ops *dcbnl_ops;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_FCOE) || defined(CONFIG_FCOE_MODULE)
|
#if defined(CONFIG_FCOE) || defined(CONFIG_FCOE_MODULE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user