1mlx5dv_create_msltxe5edrvi_ncgr_eaantceh_osrte/ermilnxg5_davn_cdheosrtr/oym_lsxt5edevr_idnegs_tarnocyh_osrt(e3e)ring_anchor(3)
2
3
4
6 mlx5dv_create_steering_anchor - Creates a steering anchor
7
8 mlx5dv_destroy_steering_anchor - Destroys a steering anchor
9
11 #include <infiniband/mlx5dv.h>
12
13 struct mlx5dv_steering_anchor *
14 mlx5dv_create_steering_anchor(struct ibv_context *context,
15 struct mlx5dv_steering_anchor_attr *attr);
16
17 int mlx5dv_destroy_steering_anchor(struct mlx5dv_steering_anchor *sa);
18
20 A user can take packets into a user-configured sandbox and do packet
21 processing at the end of which a steering pipeline decision is made on
22 what to do with the packet.
23
24 A steering anchor allows the user to reinject the packet back into the
25 kernel for additional processing.
26
27 mlx5dv_create_steering_anchor() Creates an anchor which will allow in‐
28 jecting the packet back into the kernel steering pipeline.
29
30 mlx5dv_destroy_steering_anchor() Destroys a steering anchor.
31
33 context
34 The device context to associate the steering anchor with.
35
36 attr
37 Anchor attributes specify the priority and flow table type to which the
38 anchor will point.
39
40 struct mlx5dv_steering_anchor_attr {
41 enum mlx5dv_flow_table_type ft_type;
42 uint16_t priority;
43 uint64_t comp_mask;
44 };
45
46 ft_type
47 The flow table type to which the anchor will point.
48
49 priority
50 The priority inside ft_type to which the created anchor will
51 point.
52
53 comp_mask
54 Reserved for future extension, must be 0 now.
55
56 mlx5dv_steering_anchor
57 struct mlx5dv_steering_anchor {
58 uint32_t id;
59 };
60
61 id The flow table ID to use as the destination when creating the
62 flow table entry.
63
65 mlx5dv_create_steering_anchor() returns a pointer to a new
66 mlx5dv_steering_anchor on success. On error NULL is returned and errno
67 is set.
68
69 mlx5dv_destroy_steering_anchor() returns 0 on success and errno value
70 on error.
71
73 Mark Bloch <mbloch@nvidia.com>
74
75
76
77 mlx5dv_create_steering_anchor / mlx5dv_destroy_steering_anchor(3)