From: Alejandro Lucero Date: Thu, 3 Mar 2016 11:26:07 +0000 (+0000) Subject: nfp: fix how Tx checksum is advertised to firmware X-Git-Tag: spdx-start~7295 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=323fc9baceccf55a81c03640458bf6480e02f280;p=dpdk.git nfp: fix how Tx checksum is advertised to firmware Even with tx checksum offload available, do not set the flag by default. Fixes: b812daadad0d ("nfp: add Rx and Tx") Signed-off-by: Alejandro Lucero --- diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index 815b4faab5..898c884a97 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -1532,7 +1532,8 @@ nfp_net_tx_cksum(struct nfp_net_txq *txq, struct nfp_net_tx_desc *txd, break; } - txd->flags |= PCIE_DESC_TX_CSUM; + if (ol_flags & (PKT_TX_IP_CKSUM | PKT_TX_L4_MASK)) + txd->flags |= PCIE_DESC_TX_CSUM; } /* nfp_net_rx_cksum - set mbuf checksum flags based on RX descriptor flags */