e1000e: Use marco instead of digit for defining e1000_rx_desc_packet_split
authorWei Yang <weiyang@linux.vnet.ibm.com>
Sat, 25 May 2013 06:23:45 +0000 (06:23 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 28 Jul 2013 09:50:53 +0000 (02:50 -0700)
commitc96ddb0ba2b395760275766e97b57f8136112a35
tree9439b53ea8b1eadadc1efc2bf929be8987142891
parent2592881990198f2b63eefcbc914a7d5259b25580
e1000e: Use marco instead of digit for defining e1000_rx_desc_packet_split

In structure e1000_rx_desc_packet_split, the size of wb.upper.length is
defined by a digit. This may introduce some problem when the length is
changed.

This patch use the macro PS_PAGE_BUFFERS for the definition. And move the
definition to hw.h.

Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/e1000.h
drivers/net/ethernet/intel/e1000e/hw.h