ehea: Merge swqe2 TSO and non TSO paths
authorAnton Blanchard <anton@samba.org>
Fri, 14 Oct 2011 05:31:06 +0000 (05:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Oct 2011 23:00:55 +0000 (19:00 -0400)
commit13946f5e4eefd5162733a75c03bb9f52c9c69614
treee285c34ed8ac9acc46a21e9cd5a2adeb85fcfb0c
parentd695c335f9165cb73f9389479cce755e8207b5f4
ehea: Merge swqe2 TSO and non TSO paths

write_swqe2_TSO and write_swqe2_nonTSO are almost identical.

For TSO we have to set the TSO and mss bits in the wqe and we only
put the header in the immediate area, no data. Collapse both
functions into write_swqe2_immediate.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ehea/ehea_main.c