]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6703333c649acedd399eb6eb3e54f3c2017010a5
treee285c34ed8ac9acc46a21e9cd5a2adeb85fcfb0c
parent6e1d0bf94fb6749b9a137a9bc3cd46836bc6d447
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