Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/netronome/nfp/flower/
Dmetadata.c451 const struct nfp_fl_flow_table_cmp_arg *cmp_arg = arg->key; in nfp_fl_obj_cmpfn() local
454 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() local
473 return jhash2((u32 *)&cmp_arg->cookie, in nfp_fl_key_hashfn()
474 sizeof(cmp_arg->cookie) / sizeof(u32), seed); in nfp_fl_key_hashfn()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c3238 const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = arg->key; in mlxsw_sp_nexthop_group_cmp() local
3241 if (nh_grp->type != cmp_arg->type) in mlxsw_sp_nexthop_group_cmp()
3244 switch (cmp_arg->type) { in mlxsw_sp_nexthop_group_cmp()
3246 return cmp_arg->fi != nh_grp->ipv4.fi; in mlxsw_sp_nexthop_group_cmp()
3249 cmp_arg->fib6_entry); in mlxsw_sp_nexthop_group_cmp()
3251 return cmp_arg->id != nh_grp->obj.id; in mlxsw_sp_nexthop_group_cmp()
3307 const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = data; in mlxsw_sp_nexthop_group_hash() local
3309 switch (cmp_arg->type) { in mlxsw_sp_nexthop_group_hash()
3311 return jhash(&cmp_arg->fi, sizeof(cmp_arg->fi), seed); in mlxsw_sp_nexthop_group_hash()
3313 return mlxsw_sp_nexthop6_group_hash(cmp_arg->fib6_entry, seed); in mlxsw_sp_nexthop_group_hash()
[all …]