]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
xilinx_emacps: Fix handling of skb fragments (3/3)
authorThomas Betker <thomas.betker@rohde-schwarz.com>
Sat, 6 Apr 2013 09:56:41 +0000 (11:56 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 15 Apr 2013 09:50:55 +0000 (11:50 +0200)
commit99be3b1e4d154f59a8291ad53e6f46173913aad4
treeb4dbde77c492c10278106e4095872844cbc666f1
parentd792353e190975ce0cc938ed53046a392d8a2bcd
xilinx_emacps: Fix handling of skb fragments (3/3)

When a Tx packet is fragmented, the controller sets USED=1 only in the
first buffer. This means that xemacps_tx_poll() cannot "preserve" the
USED bit (which may be 0), but must set USED=1 explicitly once the
packet has been transmitted.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Tested-by: Anirudha Sarangi <anirudh@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/ethernet/xilinx/xilinx_emacps.c