Commit a7825b9
committed
odp-util: Fix tunnel key attribute length checks.
The expected length check is using the OVS_TUNNEL_ATTR_MAX, that
limits OVS_VPORT_ATTR_OPTIONS, as a limit for OVS_TUNNEL_KEY_ATTR_*
attributes. That means that the majority of the tunnel attributes
are not checked (OVS_TUNNEL_ATTR_MAX is 2, the values above that
are skipped). This is not a big deal, as we're parsing the values
that either we did generate ourselves, or the values that kernel
provided to us. So the values can't really be wrong, unless there
is a bug somewhere else in OVS or in the kernel. But we should
still check things properly.
Use the correct OVS_TUNNEL_KEY_ATTR_MAX instead.
Fixes: 6b8da9e ("odp-util: Correctly generate wildcards when formating nested attributes.")
Acked-by: Aaron Conole <aconole@redhat.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>1 parent ee01cf8 commit a7825b9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3100 | 3100 | | |
3101 | 3101 | | |
3102 | 3102 | | |
3103 | | - | |
| 3103 | + | |
3104 | 3104 | | |
3105 | 3105 | | |
3106 | 3106 | | |
| |||
0 commit comments