X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FDpdkUtil.py;h=bbd6987be4c0e5fc72d1de8d21f5c1d3746fc4a8;hb=a4c6a63b84f537b3ae660eab7d2a96ffb7740514;hp=887eae156e9872b21ca55f89f4d245a4fe2d52a2;hpb=c481185ca0662f4e7800af2ae6a8f3f81c753470;p=csit.git diff --git a/resources/libraries/python/DpdkUtil.py b/resources/libraries/python/DpdkUtil.py index 887eae156e..bbd6987be4 100644 --- a/resources/libraries/python/DpdkUtil.py +++ b/resources/libraries/python/DpdkUtil.py @@ -67,16 +67,15 @@ class DpdkUtil(object): # Set the number of queues in the RX to N. options.add_equals_from_dict('rxq', 'pmd_rxq', kwargs, 1) # Set the hexadecimal bitmask of offloads. - options.add_equals_if_from_dict( - 'txqflags', '0xf00', 'pmd_tx_offloads', kwargs, True) + options.add_equals_from_dict('tx-offloads', 'pmd_tx_offloads', kwargs) # Set the number of mbufs to be allocated in the mbuf pools. options.add_equals_from_dict('total-num-mbufs', 'pmd_num_mbufs', kwargs) # Disable hardware VLAN. options.add_if_from_dict( 'disable-hw-vlan', 'pmd_disable_hw_vlan', kwargs, True) # Set the MAC address XX:XX:XX:XX:XX:XX of the peer port N - options.add_equals_from_dict('eth-peer', 'pmd_eth-peer_0', kwargs) - options.add_equals_from_dict('eth-peer', 'pmd_eth-peer_1', kwargs) + options.add_equals_from_dict('eth-peer', 'pmd_eth_peer_0', kwargs) + options.add_equals_from_dict('eth-peer', 'pmd_eth_peer_1', kwargs) # Set the max packet length. options.add_equals_from_dict('max-pkt-len', 'pmd_max_pkt_len', kwargs) # Set the number of forwarding cores based on coremask.