Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/packet_trimming/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
JUMBO_PACKET_SIZE = 5000
MIN_PACKET_SIZE = 100
DUMMY_IP = "8.8.8.8"
DUMMY_FILL_IP = "9.9.9.9"
DUMMY_IPV6 = "8000::2"
DUMMY_FILL_IPV6 = "9000::2"
DUMMY_MAC = "00:11:22:33:44:55"
PACKET_COUNT = 1000
BATCH_PACKET_COUNT = 10000
Expand Down
7 changes: 4 additions & 3 deletions tests/packet_trimming/packet_trimming_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
from tests.common.helpers.srv6_helper import dump_packet_detail, validate_srv6_in_appl_db, validate_srv6_in_asic_db
from tests.common.reboot import reboot
from tests.packet_trimming.constants import (DEFAULT_SRC_PORT, DEFAULT_DST_PORT, DEFAULT_TTL, DUMMY_MAC, DUMMY_IPV6,
DUMMY_IP, BATCH_PACKET_COUNT, PACKET_COUNT, STATIC_THRESHOLD_MULTIPLIER,
DUMMY_FILL_IPV6, DUMMY_IP, DUMMY_FILL_IP, BATCH_PACKET_COUNT,
PACKET_COUNT, STATIC_THRESHOLD_MULTIPLIER,
BLOCK_DATA_PLANE_SCHEDULER_NAME, PACKET_TYPE, SRV6_PACKETS,
TRIM_QUEUE_PROFILE, TRIMMING_CAPABILITY, ACL_TABLE_NAME,
ACL_RULE_PRIORITY, ACL_TABLE_TYPE_NAME, ACL_RULE_NAME, SRV6_MY_SID_LIST,
Expand Down Expand Up @@ -698,7 +699,7 @@ def fill_egress_buffer(duthost, ptfadapter, port_id, buffer_size, target_queue,
if is_ipv6:
# Create IPv6 UDP packet
ipv6_params = {
'ipv6_src': DUMMY_IPV6,
'ipv6_src': DUMMY_FILL_IPV6,
'ipv6_dst': dst_addr,
'ipv6_hlim': DEFAULT_TTL,
'ipv6_tc': dscp_value << 2, # Convert DSCP to Traffic Class
Expand All @@ -708,7 +709,7 @@ def fill_egress_buffer(duthost, ptfadapter, port_id, buffer_size, target_queue,
else:
# Create IPv4 UDP packet
ipv4_params = {
'ip_src': DUMMY_IP,
'ip_src': DUMMY_FILL_IP,
'ip_dst': dst_addr,
'ip_ttl': DEFAULT_TTL,
'ip_dscp': dscp_value,
Expand Down
Loading