X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FConstants.py;h=437c97f187d9b901be2053ab0aaa02a8a9b3dcf6;hb=HEAD;hp=12f555ca841440d7548898ba6c2e1518731117a7;hpb=7705455505377fffaa61173c62f305c1a2107795;p=csit.git diff --git a/resources/libraries/python/Constants.py b/resources/libraries/python/Constants.py index 12f555ca84..7e6d70b6cb 100644 --- a/resources/libraries/python/Constants.py +++ b/resources/libraries/python/Constants.py @@ -206,6 +206,8 @@ class Constants: # TRex number of cores in case multiple dual interface configurations. TREX_CORE_COUNT_MULTI = get_int_from_env("TREX_CORE_COUNT_MULTI", 8) + TREX_PORT_MTU = get_int_from_env("TREX_PORT_MTU", 0) + # TRex set number of RX/TX descriptors. # Set to 0 to use default values. TREX_TX_DESCRIPTORS_COUNT = get_int_from_env( @@ -485,6 +487,25 @@ class Constants: "1ge1p82540em": "nic_pfs}= | 2", } + NIC_CODE_TO_CORESCALE = { + "10ge2p1x520": 1, + "10ge2p1x710": 1, + "40ge2p1xl710": 1, + "25ge2p1xxv710": 1, + "25ge2p1e810xxv": 1, + "25ge2p1e822cq": 1, + "25ge2p1e823c": 1, + "100ge2p1e810cq": 1, + "50ge1p1ena": 1, + "100ge1p1ena": 1, + "200ge1p1ena": 1, + "100ge2p1cx556a": 1, + "100ge2p1cx6dx": 1, + "200ge2p1cx7veat": 1, + "200ge6p3cx7veat": 3, + "1ge1p82540em": 1, + } + # Not each driver is supported by each NIC. DPDK_NIC_NAME_TO_DRIVER = { "Intel-X520-DA2": ["vfio-pci"],