diff options
-rw-r--r-- | drivers/net/ethernet/cisco/enic/enic_clsf.c | 10 | ||||
-rw-r--r-- | drivers/net/ethernet/cisco/enic/enic_clsf.h | 3 |
2 files changed, 3 insertions, 10 deletions
diff --git a/drivers/net/ethernet/cisco/enic/enic_clsf.c b/drivers/net/ethernet/cisco/enic/enic_clsf.c index c2322adfccdc..bc451baac4cd 100644 --- a/drivers/net/ethernet/cisco/enic/enic_clsf.c +++ b/drivers/net/ethernet/cisco/enic/enic_clsf.c | |||
@@ -266,14 +266,4 @@ ret_unlock: | |||
266 | return res; | 266 | return res; |
267 | } | 267 | } |
268 | 268 | ||
269 | #else | ||
270 | |||
271 | void enic_rfs_flw_tbl_init(struct enic *enic) | ||
272 | { | ||
273 | } | ||
274 | |||
275 | void enic_rfs_flw_tbl_free(struct enic *enic) | ||
276 | { | ||
277 | } | ||
278 | |||
279 | #endif /* CONFIG_RFS_ACCEL */ | 269 | #endif /* CONFIG_RFS_ACCEL */ |
diff --git a/drivers/net/ethernet/cisco/enic/enic_clsf.h b/drivers/net/ethernet/cisco/enic/enic_clsf.h index 76a85bb0bb73..d572704cd117 100644 --- a/drivers/net/ethernet/cisco/enic/enic_clsf.h +++ b/drivers/net/ethernet/cisco/enic/enic_clsf.h | |||
@@ -14,6 +14,9 @@ void enic_rfs_flw_tbl_init(struct enic *enic); | |||
14 | void enic_rfs_flw_tbl_free(struct enic *enic); | 14 | void enic_rfs_flw_tbl_free(struct enic *enic); |
15 | int enic_rx_flow_steer(struct net_device *dev, const struct sk_buff *skb, | 15 | int enic_rx_flow_steer(struct net_device *dev, const struct sk_buff *skb, |
16 | u16 rxq_index, u32 flow_id); | 16 | u16 rxq_index, u32 flow_id); |
17 | #else | ||
18 | static inline void enic_rfs_flw_tbl_init(struct enic *enic) {} | ||
19 | static inline void enic_rfs_flw_tbl_free(struct enic *enic) {} | ||
17 | #endif /* CONFIG_RFS_ACCEL */ | 20 | #endif /* CONFIG_RFS_ACCEL */ |
18 | 21 | ||
19 | #endif /* _ENIC_CLSF_H_ */ | 22 | #endif /* _ENIC_CLSF_H_ */ |