Searched refs:cmp_arg (Results 1 – 2 of 2) sorted by relevance
459 const struct nfp_fl_flow_table_cmp_arg *cmp_arg = arg->key; in nfp_fl_obj_cmpfn() local462 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() local481 return jhash2((u32 *)&cmp_arg->cookie, in nfp_fl_key_hashfn()482 sizeof(cmp_arg->cookie) / sizeof(u32), seed); in nfp_fl_key_hashfn()
2967 const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = arg->key; in mlxsw_sp_nexthop_group_cmp() local2970 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() local3037 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() local3085 cmp_arg.proto = MLXSW_SP_L3_PROTO_IPV4; in mlxsw_sp_nexthop4_group_lookup()[all …]