Skip to content

Commit 36cd731

Browse files
Expand the definition of VxLAN UDP SRC Port
The VxLAN UDP SRC Port attributes in the switch define the range in which the UDP SRC Port needs to be generated both for entropy and security purposes. The purpose of this change is to expand the definition to also drop incoming VxLAN packets that do not match the defined range, since it's an end to end feature. Signed-off-by: Marian Pritsak <marianp@mellanox.com>
1 parent b925fc0 commit 36cd731

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

inc/saiswitch.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,10 @@ typedef enum _sai_switch_tunnel_attr_t
504504
/**
505505
* @brief Tunnel UDP source port
506506
*
507+
* This attribute is used to set the UDP source port for VXLAN tunnels.
508+
* It is also applied to VxLAN pockets ingressing the switch. If the incoming
509+
* packet does not match the configured UDP source port, the packet is dropped.
510+
*
507511
* @type sai_uint16_t
508512
* @flags CREATE_AND_SET
509513
* @isvlan false
@@ -517,6 +521,9 @@ typedef enum _sai_switch_tunnel_attr_t
517521
*
518522
* Sport mask defining the number of least significant bits
519523
* reserved for the calculated hash value. 0 means a fixed value.
524+
* It is also applied to VxLAN pockets ingressing the switch. If the incoming
525+
* packet does not match the configured UDP source port range,
526+
* the packet is dropped.
520527
*
521528
* @type sai_uint8_t
522529
* @flags CREATE_AND_SET

0 commit comments

Comments
 (0)