summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.c
diff options
context:
space:
mode:
authorByungho An <bh74.an@samsung.com>2014-04-18 20:59:36 +0900
committerDavid S. Miller <davem@davemloft.net>2014-04-22 16:07:17 -0400
commit3ee2b7c4b6785aab45a548b161b4c42ac6522592 (patch)
tree4cf2f587e2225338dcab5612f12e943877fce95d /drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.c
parentc18e9cd623b8aa88090615602c3db7f1386a139d (diff)
downloadlinux-3ee2b7c4b6785aab45a548b161b4c42ac6522592.tar.bz2
net: sxgbe: rearrange dma descriptor
This patch moves cksum_ctl to tx_rd_des23 from cksum_pktlen for correct checksum offloading and modifies size for Tx/Rx descriptor. Signed-off-by: Byungho An <bh74.an@samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.c')
-rw-r--r--drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.c b/drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.c
index e896dbbd2e15..d71691be4136 100644
--- a/drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.c
+++ b/drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.c
@@ -45,10 +45,10 @@ static void sxgbe_prepare_tx_desc(struct sxgbe_tx_norm_desc *p, u8 is_fd,
p->tdes23.tx_rd_des23.first_desc = is_fd;
p->tdes23.tx_rd_des23.buf1_size = buf1_len;
- p->tdes23.tx_rd_des23.tx_pkt_len.cksum_pktlen.total_pkt_len = pkt_len;
+ p->tdes23.tx_rd_des23.tx_pkt_len.pkt_len.total_pkt_len = pkt_len;
if (cksum)
- p->tdes23.tx_rd_des23.tx_pkt_len.cksum_pktlen.cksum_ctl = cic_full;
+ p->tdes23.tx_rd_des23.cksum_ctl = cic_full;
}
/* Set VLAN control information */