Home
last modified time | relevance | path

Searched refs:cls_flower (Results 1 – 11 of 11) sorted by relevance

/Linux-v4.19/net/sched/
Dcls_flower.c285 struct tc_cls_flower_offload cls_flower = {}; in fl_hw_destroy_filter() local
288 tc_cls_common_offload_init(&cls_flower.common, tp, f->flags, extack); in fl_hw_destroy_filter()
289 cls_flower.command = TC_CLSFLOWER_DESTROY; in fl_hw_destroy_filter()
290 cls_flower.cookie = (unsigned long) f; in fl_hw_destroy_filter()
293 &cls_flower, false); in fl_hw_destroy_filter()
301 struct tc_cls_flower_offload cls_flower = {}; in fl_hw_replace_filter() local
306 tc_cls_common_offload_init(&cls_flower.common, tp, f->flags, extack); in fl_hw_replace_filter()
307 cls_flower.command = TC_CLSFLOWER_REPLACE; in fl_hw_replace_filter()
308 cls_flower.cookie = (unsigned long) f; in fl_hw_replace_filter()
309 cls_flower.dissector = &f->mask->dissector; in fl_hw_replace_filter()
[all …]
DMakefile71 obj-$(CONFIG_NET_CLS_FLOWER) += cls_flower.o
DKconfig586 be called cls_flower.
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.h194 struct tc_cls_flower_offload *cls_flower);
207 struct tc_cls_flower_offload *cls_flower) in bnxt_tc_setup_flower() argument
Dbnxt_tc.c1575 struct tc_cls_flower_offload *cls_flower) in bnxt_tc_setup_flower() argument
1577 switch (cls_flower->command) { in bnxt_tc_setup_flower()
1579 return bnxt_tc_add_flow(bp, src_fid, cls_flower); in bnxt_tc_setup_flower()
1581 return bnxt_tc_del_flow(bp, cls_flower); in bnxt_tc_setup_flower()
1583 return bnxt_tc_get_flow_stats(bp, cls_flower); in bnxt_tc_setup_flower()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.c743 struct tc_cls_flower_offload *cls_flower, int flags) in mlx5e_rep_setup_tc_cls_flower() argument
745 switch (cls_flower->command) { in mlx5e_rep_setup_tc_cls_flower()
747 return mlx5e_configure_flower(priv, cls_flower, flags); in mlx5e_rep_setup_tc_cls_flower()
749 return mlx5e_delete_flower(priv, cls_flower, flags); in mlx5e_rep_setup_tc_cls_flower()
751 return mlx5e_stats_flower(priv, cls_flower, flags); in mlx5e_rep_setup_tc_cls_flower()
Den_main.c3364 struct tc_cls_flower_offload *cls_flower, in mlx5e_setup_tc_cls_flower() argument
3367 switch (cls_flower->command) { in mlx5e_setup_tc_cls_flower()
3369 return mlx5e_configure_flower(priv, cls_flower, flags); in mlx5e_setup_tc_cls_flower()
3371 return mlx5e_delete_flower(priv, cls_flower, flags); in mlx5e_setup_tc_cls_flower()
3373 return mlx5e_stats_flower(priv, cls_flower, flags); in mlx5e_setup_tc_cls_flower()
/Linux-v4.19/drivers/net/ethernet/intel/i40evf/
Di40evf_main.c2748 struct tc_cls_flower_offload *cls_flower) in i40evf_configure_clsflower() argument
2750 int tc = tc_classid_to_hwtc(adapter->netdev, cls_flower->classid); in i40evf_configure_clsflower()
2770 filter->cookie = cls_flower->cookie; in i40evf_configure_clsflower()
2776 err = i40evf_parse_cls_flower(adapter, cls_flower, filter); in i40evf_configure_clsflower()
2827 struct tc_cls_flower_offload *cls_flower) in i40evf_delete_clsflower() argument
2833 filter = i40evf_find_cf(adapter, &cls_flower->cookie); in i40evf_delete_clsflower()
2851 struct tc_cls_flower_offload *cls_flower) in i40evf_setup_tc_cls_flower() argument
2853 if (cls_flower->common.chain_index) in i40evf_setup_tc_cls_flower()
2856 switch (cls_flower->command) { in i40evf_setup_tc_cls_flower()
2858 return i40evf_configure_clsflower(adapter, cls_flower); in i40evf_setup_tc_cls_flower()
[all …]
/Linux-v4.19/drivers/net/ethernet/intel/igb/
Digb_main.c2678 struct tc_cls_flower_offload *cls_flower) in igb_configure_clsflower() argument
2680 struct netlink_ext_ack *extack = cls_flower->common.extack; in igb_configure_clsflower()
2684 tc = tc_classid_to_hwtc(adapter->netdev, cls_flower->classid); in igb_configure_clsflower()
2694 err = igb_parse_cls_flower(adapter, cls_flower, tc, filter); in igb_configure_clsflower()
2740 struct tc_cls_flower_offload *cls_flower) in igb_delete_clsflower() argument
2748 if (filter->cookie == cls_flower->cookie) in igb_delete_clsflower()
2770 struct tc_cls_flower_offload *cls_flower) in igb_setup_tc_cls_flower() argument
2772 switch (cls_flower->command) { in igb_setup_tc_cls_flower()
2774 return igb_configure_clsflower(adapter, cls_flower); in igb_setup_tc_cls_flower()
2776 return igb_delete_clsflower(adapter, cls_flower); in igb_setup_tc_cls_flower()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c2954 struct tc_cls_flower_offload *cls_flower) in cxgb_setup_tc_flower() argument
2956 switch (cls_flower->command) { in cxgb_setup_tc_flower()
2958 return cxgb4_tc_flower_replace(dev, cls_flower); in cxgb_setup_tc_flower()
2960 return cxgb4_tc_flower_destroy(dev, cls_flower); in cxgb_setup_tc_flower()
2962 return cxgb4_tc_flower_stats(dev, cls_flower); in cxgb_setup_tc_flower()
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_main.c7378 struct tc_cls_flower_offload *cls_flower) in i40e_configure_clsflower() argument
7380 int tc = tc_classid_to_hwtc(vsi->netdev, cls_flower->classid); in i40e_configure_clsflower()
7412 filter->cookie = cls_flower->cookie; in i40e_configure_clsflower()
7414 err = i40e_parse_cls_flower(vsi, cls_flower, filter); in i40e_configure_clsflower()
7474 struct tc_cls_flower_offload *cls_flower) in i40e_delete_clsflower() argument
7480 filter = i40e_find_cloud_filter(vsi, &cls_flower->cookie); in i40e_delete_clsflower()
7517 struct tc_cls_flower_offload *cls_flower) in i40e_setup_tc_cls_flower() argument
7521 switch (cls_flower->command) { in i40e_setup_tc_cls_flower()
7523 return i40e_configure_clsflower(vsi, cls_flower); in i40e_setup_tc_cls_flower()
7525 return i40e_delete_clsflower(vsi, cls_flower); in i40e_setup_tc_cls_flower()