]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Correcting and improving small packet check and padding
authorTushar Dave <tushar.n.dave@intel.com>
Fri, 14 Sep 2012 03:43:43 +0000 (03:43 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 19 Oct 2012 11:23:29 +0000 (04:23 -0700)
commit4af2ba95b65f64e930e37b50c4a49da5ca480ab8
treecfdf89e57309ca380d96d180cdd58c63aff1d955
parent32957b95aca9e751e16118c770f8d3ec827840cc
igb: Correcting and improving small packet check and padding

Current implementation mess up the tail pointer. This patch sets skb->tail
correctly.
Also, the small packet check and padding is optimized by using unlikely and
calling skb_pad directly.

Signed-off-by: Tushar Dave <tushar.n.dave@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c