Based on the equivalent code in the igb driver. Signed-off-by: Chas Williams <chas3@att.com> Reviewed-by: David Marchand <david.marchand@6wind.com> Acked-by: Wei Zhao <wei.zhao1@intel.com>