<commit_before>#!/router/bin/python
from .stl_general_test import CStlGeneral_Test, CTRexScenario
from trex_stl_lib.api import *
import os, sys

ERROR_LATENCY_TOO_HIGH = 1

class STLRX_Test(CStlGeneral_Test):
    """Tests for RX feature"""

    def setUp(self):
        per_driver_params = {
                'net_vmxnet3': {
                        'rate_percent': 1,
                        'total_pkts': 50,
                        'rate_latency': 1,
                        'latency_9k_enable': False,
                        },
                'net_ixgbe': {
                        'rate_percent': 30,
                        'total_pkts': 1000,
                        'rate_latency': 1,
                        'latency_9k_enable': True,
                        'latency_9k_max_average': 300,
                        'latency_9k_max_latency': 400,
                        },
                'net_ixgbe_vf': {
                        'rate_percent': 30,
                        'total_pkts': 1000,
                        'rate_latency': 1,
                        'latency_9k_enable': False,
                        },

                'net_i40e': {
                        'rate_percent': 80,
                        'total_pkts': 1000,
                        'rate_latency': 1,
                        'latency_9k_enable': True,
                        'latency_9k_max_average': 100,
                        'latency_9k_max_latency': 250,
                        },
                'net_i40e_vf': {
                        'rate_percent': 80,
                        'total_pkts': 1000,
                        'rate_latency': 1,
                        'latency_9k_enable': False,
                        },
                'net_e1000_igb': {
                        'rate_percent': 80,
                        'total_pkts': 500,
                        'rate_latency': 1,
                        'latency_9k_enable': False,
                        },
                'net_e1000_em': {
                        'rate_percent': 1,
                        'total_pkts': 50,
                        'rate_latency': 1,
                        'latency_9k_enable': False,
                        },
                'net_virtio': {
                        'rate_percent': 1,
                        'total_pkts': 50,
                        'rate_latency': 1,
                        'latency_9k_enable': False,
                        'allow_packets_drop_num': 1, # allow 1 pkt drop
                        },

                 'net_mlx5': {
                        'rate_percent': 80,
                        'total_pkts': 1000,
                        'rate_latency': 1,
                        'latency_9k_enable': True,
                        'latency_9k_max_average': 100,
                        'latency_9k_max_latency': 250,
                        },

                 'net_enic': {
                        'rate_percent': 1,
                        'total_pkts': 50,
                        'rate_latency': 1,
                        'latency_9k_enable': False,
                        },

                  
                }
<commit_msg>mlx5 - update regression maximum latency due to trex-261 issue<commit_after>#!/router/bin/python
from .stl_general_test import CStlGeneral_Test, CTRexScenario
from trex_stl_lib.api import *
import os, sys

ERROR_LATENCY_TOO_HIGH = 1

class STLRX_Test(CStlGeneral_Test):
    """Tests for RX feature"""

    def setUp(self):
        per_driver_params = {
                'net_vmxnet3': {
                        'rate_percent': 1,
                        'total_pkts': 50,
                        'rate_latency': 1,
                        'latency_9k_enable': False,
                        },
                'net_ixgbe': {
                        'rate_percent': 30,
                        'total_pkts': 1000,
                        'rate_latency': 1,
                        'latency_9k_enable': True,
                        'latency_9k_max_average': 300,
                        'latency_9k_max_latency': 400,
                        },
                'net_ixgbe_vf': {
                        'rate_percent': 30,
                        'total_pkts': 1000,
                        'rate_latency': 1,
                        'latency_9k_enable': False,
                        },

                'net_i40e': {
                        'rate_percent': 80,
                        'total_pkts': 1000,
                        'rate_latency': 1,
                        'latency_9k_enable': True,
                        'latency_9k_max_average': 100,
                        'latency_9k_max_latency': 250,
                        },
                'net_i40e_vf': {
                        'rate_percent': 80,
                        'total_pkts': 1000,
                        'rate_latency': 1,
                        'latency_9k_enable': False,
                        },
                'net_e1000_igb': {
                        'rate_percent': 80,
                        'total_pkts': 500,
                        'rate_latency': 1,
                        'latency_9k_enable': False,
                        },
                'net_e1000_em': {
                        'rate_percent': 1,
                        'total_pkts': 50,
                        'rate_latency': 1,
                        'latency_9k_enable': False,
                        },
                'net_virtio': {
                        'rate_percent': 1,
                        'total_pkts': 50,
                        'rate_latency': 1,
                        'latency_9k_enable': False,
                        'allow_packets_drop_num': 1, # allow 1 pkt drop
                        },

                 'net_mlx5': {
                        'rate_percent': 80,
                        'total_pkts': 1000,
                        'rate_latency': 1,
                        'latency_9k_enable': True,
                        'latency_9k_max_average': 100,
                        'latency_9k_max_latency': 450,    #see latency issue trex-261 
                        },

                 'net_enic': {
                        'rate_percent': 1,
                        'total_pkts': 50,
                        'rate_latency': 1,
                        'latency_9k_enable': False,
                        },

                  
                }

{'fraction_non_alphanumeric': 0.08762322015334063, 'fraction_numerical': 0.034892818025348146, 'mean_word_length': 0.8153933541607498, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '979277', 'n_tokens_mistral': 1928, 'n_tokens_neox': 1593, 'n_words': 274}