X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FVppConfigGenerator.py;h=822a4fdfdbef32740f11664c825224c07a1a0356;hb=15648d7c4f98cc90a406519362b0d7f548893859;hp=e5a54422c7ca0401d99e2888c177e8f1495b6cf0;hpb=338b195c0d7274b921eb18944d27ed1b4cb3739f;p=csit.git diff --git a/resources/libraries/python/VppConfigGenerator.py b/resources/libraries/python/VppConfigGenerator.py index e5a54422c7..822a4fdfdb 100644 --- a/resources/libraries/python/VppConfigGenerator.py +++ b/resources/libraries/python/VppConfigGenerator.py @@ -352,6 +352,20 @@ class VppConfigGenerator(object): path = ['dpdk', 'socket-mem'] self.add_config_item(self._nodeconfig, value, path) + def add_dpdk_num_mbufs(self, value): + """Add DPDK number of I/O buffers. + + :param value: Number of I/O buffers. + :type value: int + """ + path = ['dpdk', 'num-mbufs'] + self.add_config_item(self._nodeconfig, value, path) + + def add_dpdk_no_pci(self): + """Add DPDK no-pci.""" + path = ['dpdk', 'no-pci'] + self.add_config_item(self._nodeconfig, '', path) + def add_dpdk_uio_driver(self, value=None): """Add DPDK uio-driver configuration.