ethernet: add sanity checks to p2p_ethernet_add/del
[vpp.git] / test / vpp_vhost_interface.py
index 569fe36..fd2928e 100644 (file)
@@ -6,8 +6,8 @@ class VppVhostInterface(VppInterface):
 
     def __init__(self, test, sock_filename, is_server=0, renumber=0,
                  disable_mrg_rxbuf=0, disable_indirect_desc=0, gso=0,
-                 custom_dev_instance=0, use_custom_mac=0, mac_address='',
-                 tag=''):
+                 packed_ring=0, custom_dev_instance=0, use_custom_mac=0,
+                 mac_address='', tag=''):
 
         """ Create VPP Vhost interface """
         super(VppVhostInterface, self).__init__(test)
@@ -17,6 +17,7 @@ class VppVhostInterface(VppInterface):
         self.disable_mrg_rxbuf = disable_mrg_rxbuf
         self.disable_indirect_desc = disable_indirect_desc
         self.gso = gso
+        self.packed_ring = packed_ring
         self.custom_dev_instance = custom_dev_instance
         self.use_custom_mac = use_custom_mac
         self.mac_address = mac_address
@@ -29,6 +30,7 @@ class VppVhostInterface(VppInterface):
                                                 self.disable_mrg_rxbuf,
                                                 self.disable_indirect_desc,
                                                 self.gso,
+                                                self.packed_ring,
                                                 self.custom_dev_instance,
                                                 self.use_custom_mac,
                                                 self.mac_address,