]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: copy the length of cpl_tx_pkt_core to fw_wr
authorGanesh Goudar <ganeshgr@chelsio.com>
Mon, 21 May 2018 06:56:36 +0000 (12:26 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 May 2018 16:16:23 +0000 (12:16 -0400)
commit01734cb56b54be5257e84245a6827fadb53b43e6
tree486b1bc25751d0b127758b78d91648003b352202
parentd1460abab68f1dbb5f7c482b1bc30d97afe7fb7d
cxgb4: copy the length of cpl_tx_pkt_core to fw_wr

immdlen field of FW_ETH_TX_PKT_WR is filled in a wrong way,
we must copy the length of all the cpls encapsulated in fw
work request. In the xmit path we missed adding the length
of CPL_TX_PKT_CORE but we added the length of WR_HDR and it
worked because WR_HDR and CPL_TX_PKT_CORE are of same length.
Add the length of cpl_tx_pkt_core not WR_HDR's. This also
fixes the lso cpl errors for udp tunnels

Fixes: 591b633c7f3d ("cxgb4: add support for vxlan segmentation offload")
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/sge.c