enic: Add Accelerated RFS support
[cascardo/linux.git] / drivers / net / ethernet / cisco / enic / enic_clsf.h
1 #ifndef _ENIC_CLSF_H_
2 #define _ENIC_CLSF_H_
3
4 #include "vnic_dev.h"
5 #include "enic.h"
6
7 #define ENIC_CLSF_EXPIRE_COUNT 128
8
9 int enic_addfltr_5t(struct enic *enic, struct flow_keys *keys, u16 rq);
10 int enic_delfltr(struct enic *enic, u16 filter_id);
11
12 #ifdef CONFIG_RFS_ACCEL
13 void enic_rfs_flw_tbl_init(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,
16                        u16 rxq_index, u32 flow_id);
17 #endif /* CONFIG_RFS_ACCEL */
18
19 #endif /* _ENIC_CLSF_H_ */