net/mlx5: optimize flow meter handle type
authorSuanming Mou <suanmingm@mellanox.com>
Thu, 16 Apr 2020 08:34:25 +0000 (16:34 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:09 +0000 (13:57 +0200)
commit8eb5485dc00283e0f4bc211d228a3ef6ee534fe3
tree31ef37b59fb2031ec07dedff1cdcde9576b67da2
parent77749adab954d0f3f4d2217a6908c7b82fbfabb8
net/mlx5: optimize flow meter handle type

While flow attaches the meter handle, the meter id can be the unique tag
for the flow to get the meter handle. It's no need for flow to save the
pointer of the meter handle.

Save the meter id instead of pointer helps reduce the size for rte flow
structure.

As the supported maximum meter rule is 4K, uint16_t type is selected for
the meter id.

Signed-off-by: Suanming Mou <suanmingm@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c