net-i40e: code refactoring