]> 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)
commit652ac9b58a9fabbe145d5f0125f58ffb62265269
treee285c34ed8ac9acc46a21e9cd5a2adeb85fcfb0c
parent8ccd8f8dd8759e52feb2cfd6b68f65cf1cb1cd5b
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