Home
last modified time | relevance | path

Searched refs:cmp_arg (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/
Dmetadata.c459 const struct nfp_fl_flow_table_cmp_arg *cmp_arg = arg->key; in nfp_fl_obj_cmpfn() local
462 if (flow_entry->ingress_dev == cmp_arg->netdev) in nfp_fl_obj_cmpfn()
463 return flow_entry->tc_flower_cookie != cmp_arg->cookie; in nfp_fl_obj_cmpfn()
479 const struct nfp_fl_flow_table_cmp_arg *cmp_arg = data; in nfp_fl_key_hashfn() local
481 return jhash2((u32 *)&cmp_arg->cookie, in nfp_fl_key_hashfn()
482 sizeof(cmp_arg->cookie) / sizeof(u32), seed); in nfp_fl_key_hashfn()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c2967 const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = arg->key; in mlxsw_sp_nexthop_group_cmp() local
2970 switch (cmp_arg->proto) { in mlxsw_sp_nexthop_group_cmp()
2972 return cmp_arg->fi != mlxsw_sp_nexthop4_group_fi(nh_grp); in mlxsw_sp_nexthop_group_cmp()
2975 cmp_arg->fib6_entry); in mlxsw_sp_nexthop_group_cmp()
3035 const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = data; in mlxsw_sp_nexthop_group_hash() local
3037 switch (cmp_arg->proto) { in mlxsw_sp_nexthop_group_hash()
3039 return jhash(&cmp_arg->fi, sizeof(cmp_arg->fi), seed); in mlxsw_sp_nexthop_group_hash()
3041 return mlxsw_sp_nexthop6_group_hash(cmp_arg->fib6_entry, seed); in mlxsw_sp_nexthop_group_hash()
3083 struct mlxsw_sp_nexthop_group_cmp_arg cmp_arg; in mlxsw_sp_nexthop4_group_lookup() local
3085 cmp_arg.proto = MLXSW_SP_L3_PROTO_IPV4; in mlxsw_sp_nexthop4_group_lookup()
[all …]