Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/ethernet/netronome/nfp/flower/
Dmetadata.c449 const struct nfp_fl_flow_table_cmp_arg *cmp_arg = arg->key; in nfp_fl_obj_cmpfn() local
452 if (flow_entry->ingress_dev == cmp_arg->netdev) in nfp_fl_obj_cmpfn()
453 return flow_entry->tc_flower_cookie != cmp_arg->cookie; in nfp_fl_obj_cmpfn()
469 const struct nfp_fl_flow_table_cmp_arg *cmp_arg = data; in nfp_fl_key_hashfn() local
471 return jhash2((u32 *)&cmp_arg->cookie, in nfp_fl_key_hashfn()
472 sizeof(cmp_arg->cookie) / sizeof(u32), seed); in nfp_fl_key_hashfn()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c2964 const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = arg->key; in mlxsw_sp_nexthop_group_cmp() local
2967 switch (cmp_arg->proto) { in mlxsw_sp_nexthop_group_cmp()
2969 return cmp_arg->fi != mlxsw_sp_nexthop4_group_fi(nh_grp); in mlxsw_sp_nexthop_group_cmp()
2972 cmp_arg->fib6_entry); in mlxsw_sp_nexthop_group_cmp()
3032 const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = data; in mlxsw_sp_nexthop_group_hash() local
3034 switch (cmp_arg->proto) { in mlxsw_sp_nexthop_group_hash()
3036 return jhash(&cmp_arg->fi, sizeof(cmp_arg->fi), seed); in mlxsw_sp_nexthop_group_hash()
3038 return mlxsw_sp_nexthop6_group_hash(cmp_arg->fib6_entry, seed); in mlxsw_sp_nexthop_group_hash()
3080 struct mlxsw_sp_nexthop_group_cmp_arg cmp_arg; in mlxsw_sp_nexthop4_group_lookup() local
3082 cmp_arg.proto = MLXSW_SP_L3_PROTO_IPV4; in mlxsw_sp_nexthop4_group_lookup()
[all …]