Applying a logical switch to host network adapters