Getting patches accepted
If the upstream project is maintained in Launchpad, you can create a code merge proposal based on the patch to make it easy for the Upstream project to review.
Inclusion in Ubuntu
Consult the Release Schedule
Working with patches
Applying patches - the easiest way
Authoring patches - the easiest way