From: Andrew Rybchenko Date: Thu, 10 May 2018 11:59:42 +0000 (+0100) Subject: net/sfc: fix inner TCP/UDP checksum offload control X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4436cf988bfd046a49666a34cf55587997ba263c;p=dpdk.git net/sfc: fix inner TCP/UDP checksum offload control If application uses Tx offload API and sets ETH_TXQ_FLAGS_IGNORE flag, it still should have inner TCP/UDP checksum offload enabled if it is supported and TCP/UDP checksum offload is requested. Fixes: c78d280e88ef ("net/sfc: convert to new Tx offload API") Cc: stable@dpdk.org Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/sfc_tx.c b/drivers/net/sfc/sfc_tx.c index 579bfab7ec..1bcc2c697d 100644 --- a/drivers/net/sfc/sfc_tx.c +++ b/drivers/net/sfc/sfc_tx.c @@ -449,8 +449,7 @@ sfc_tx_qstart(struct sfc_adapter *sa, unsigned int sw_index) (txq->offloads & DEV_TX_OFFLOAD_UDP_CKSUM)) { flags |= EFX_TXQ_CKSUM_TCPUDP; - if ((~txq->flags & ETH_TXQ_FLAGS_IGNORE) && - (offloads_supported & DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM)) + if (offloads_supported & DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) flags |= EFX_TXQ_CKSUM_INNER_TCPUDP; }