Searched refs:cmp_arg (Results 1 – 2 of 2) sorted by relevance
451 const struct nfp_fl_flow_table_cmp_arg *cmp_arg = arg->key; in nfp_fl_obj_cmpfn() local454 if (flow_entry->ingress_dev == cmp_arg->netdev) in nfp_fl_obj_cmpfn()455 return flow_entry->tc_flower_cookie != cmp_arg->cookie; in nfp_fl_obj_cmpfn()471 const struct nfp_fl_flow_table_cmp_arg *cmp_arg = data; in nfp_fl_key_hashfn() local473 return jhash2((u32 *)&cmp_arg->cookie, in nfp_fl_key_hashfn()474 sizeof(cmp_arg->cookie) / sizeof(u32), seed); in nfp_fl_key_hashfn()
3521 const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = arg->key; in mlxsw_sp_nexthop_group_cmp() local3524 if (nh_grp->type != cmp_arg->type) in mlxsw_sp_nexthop_group_cmp()3527 switch (cmp_arg->type) { in mlxsw_sp_nexthop_group_cmp()3529 return cmp_arg->fi != nh_grp->ipv4.fi; in mlxsw_sp_nexthop_group_cmp()3532 cmp_arg->fib6_entry); in mlxsw_sp_nexthop_group_cmp()3534 return cmp_arg->id != nh_grp->obj.id; in mlxsw_sp_nexthop_group_cmp()3590 const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = data; in mlxsw_sp_nexthop_group_hash() local3592 switch (cmp_arg->type) { in mlxsw_sp_nexthop_group_hash()3594 return jhash(&cmp_arg->fi, sizeof(cmp_arg->fi), seed); in mlxsw_sp_nexthop_group_hash()3596 return mlxsw_sp_nexthop6_group_hash(cmp_arg->fib6_entry, seed); in mlxsw_sp_nexthop_group_hash()[all …]