Release 4.18 drivers/net/ethernet/cisco/enic/enic_clsf.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ENIC_CLSF_H_
#define _ENIC_CLSF_H_
#include "vnic_dev.h"
#include "enic.h"
#define ENIC_CLSF_EXPIRE_COUNT 128
int enic_addfltr_5t(struct enic *enic, struct flow_keys *keys, u16 rq);
int enic_delfltr(struct enic *enic, u16 filter_id);
void enic_rfs_flw_tbl_init(struct enic *enic);
void enic_rfs_flw_tbl_free(struct enic *enic);
struct enic_rfs_fltr_node *htbl_fltr_search(struct enic *enic, u16 fltr_id);
#ifdef CONFIG_RFS_ACCEL
int enic_rx_flow_steer(struct net_device *dev, const struct sk_buff *skb,
u16 rxq_index, u32 flow_id);
void enic_flow_may_expire(struct timer_list *t);
static inline void enic_rfs_timer_start(struct enic *enic)
{
timer_setup(&enic->rfs_h.rfs_may_expire, enic_flow_may_expire, 0);
mod_timer(&enic->rfs_h.rfs_may_expire, jiffies + HZ/4);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Govindarajulu Varadarajan | 37 | 88.10% | 1 | 33.33% |
Allen | 3 | 7.14% | 1 | 33.33% |
Kees Cook | 2 | 4.76% | 1 | 33.33% |
Total | 42 | 100.00% | 3 | 100.00% |
static inline void enic_rfs_timer_stop(struct enic *enic)
{
del_timer_sync(&enic->rfs_h.rfs_may_expire);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Govindarajulu Varadarajan | 22 | 100.00% | 1 | 100.00% |
Total | 22 | 100.00% | 1 | 100.00% |
#else
static inline void enic_rfs_timer_start(struct enic *enic) {}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Geert Uytterhoeven | 10 | 90.91% | 1 | 50.00% |
Govindarajulu Varadarajan | 1 | 9.09% | 1 | 50.00% |
Total | 11 | 100.00% | 2 | 100.00% |
static inline void enic_rfs_timer_stop(struct enic *enic) {}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Geert Uytterhoeven | 10 | 90.91% | 1 | 50.00% |
Govindarajulu Varadarajan | 1 | 9.09% | 1 | 50.00% |
Total | 11 | 100.00% | 2 | 100.00% |
#endif /* CONFIG_RFS_ACCEL */
#endif /* _ENIC_CLSF_H_ */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Govindarajulu Varadarajan | 173 | 84.39% | 4 | 50.00% |
Geert Uytterhoeven | 22 | 10.73% | 1 | 12.50% |
Kees Cook | 6 | 2.93% | 1 | 12.50% |
Allen | 3 | 1.46% | 1 | 12.50% |
Greg Kroah-Hartman | 1 | 0.49% | 1 | 12.50% |
Total | 205 | 100.00% | 8 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.