Consolidated calcuation of last_tkeep and tkeep_last. Changed error checking to support unwrinkling tkeep/trailing changes in 100G etherent and support for testing packet dropping on backup. Original-commit: 473b0f5abe882ca316a7fe1a59234676940ef26b