From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f67.google.com (mail-pl0-f67.google.com [209.85.160.67]) by dpdk.org (Postfix) with ESMTP id 108D31B3A9 for ; Mon, 6 Aug 2018 20:22:56 +0200 (CEST) Received: by mail-pl0-f67.google.com with SMTP id d5-v6so6000311pll.4 for ; Mon, 06 Aug 2018 11:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MvT1nhrzKkiMhuxRmprxPJaas7TuL+37kzybYdTPN58=; b=QvFN+tArax5DeCyPAbGozF5wUK1XuuJM97govgKBlFGRx3KSm7l9VsGXN4BCtb++x8 ZNSogXhZUdfj8Ny/+1lmEcr5n43FYw/RwRawHfi3R7u3VEQ2OTPR2W0BFtKwvVzGCpDU vFcQzVvYXy7SjCNlZZm2uSSwYdDTKyjPSPUtHOsAjBCRLIq78qhRIE7iDcsAKix0RMFh wVR92vVCQ/zWULtplE3s4eZoNn06VLWfdVhFua6H/PsUaFjHlaHZ5qAJsBiBZnmFhfkm D5j9KSA8DY5Q84lnbZBbMZSaou2jqeG34N5g1pZ9/BrjqzVraVARS+Nt3tKIf8on6rS9 BrxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MvT1nhrzKkiMhuxRmprxPJaas7TuL+37kzybYdTPN58=; b=RxfUKj3PxAPGJwFkRpiWhbMwTVTB3VhF93dJ92EufhOqy3vvFYhpHOjXkJq3XHSHIg tKF1vCf1uFerJpeTULttHQBbL+jrot+W9NGOe6VgQSxW4KFH3WqnwvHm4EwNKmh/TKJA IRzlcbH2BIK9/Z0nEyvnLCUQGhAkOn3XXNle8JLQGTI6IQLnOmM56FPXNozhq/bUivjW YY3Uq0ekxEu/GODSYBrrfpvpVhL8OSb0eopTe985S5zdxvonNx52I2rTMpA3GjV3KkxR mCmbgXb3gFaeOKkAHIvxd3zcQPmt9PYl5YY8ueMFbMeEaJYAuZvlmjZwl+DRaVgxvX03 3VAg== X-Gm-Message-State: AOUpUlEBDygxxbDIC+I4wbcBU4SvkFObbMhbJjP+KfKDk/T4m2c3IlvS hAmGzlz5srrt53nlJsOVlvOzb+DhcZU= X-Google-Smtp-Source: AAOMgpfLBpWSqUOIjkCu1A3rkIW2kEtyAKy5K95dJ0DL4ke8DI2t/X/Pqt7lRF22ANzbzmMStk6xTA== X-Received: by 2002:a17:902:3081:: with SMTP id v1-v6mr15223147plb.58.1533579774912; Mon, 06 Aug 2018 11:22:54 -0700 (PDT) Received: from xeon-e3.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id b20-v6sm26683086pfc.178.2018.08.06.11.22.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Aug 2018 11:22:53 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Stephen Hemminger Date: Mon, 6 Aug 2018 11:22:44 -0700 Message-Id: <20180806182244.9842-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180806182244.9842-1-stephen@networkplumber.org> References: <20180806182244.9842-1-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 2/2] netvsc: report checksum failures X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2018 18:22:56 -0000 The host will notify netvsc device about failed UDP and TCP checksum. Propogate that information into the mbuf. Signed-off-by: Stephen Hemminger --- drivers/net/netvsc/hn_rxtx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/netvsc/hn_rxtx.c b/drivers/net/netvsc/hn_rxtx.c index 25c97ea43ad6..02ef27e363cc 100644 --- a/drivers/net/netvsc/hn_rxtx.c +++ b/drivers/net/netvsc/hn_rxtx.c @@ -513,6 +513,9 @@ static void hn_rxpkt(struct hn_rx_queue *rxq, struct hn_rx_bufinfo *rxb, if (info->csum_info & (NDIS_RXCSUM_INFO_UDPCS_OK | NDIS_RXCSUM_INFO_TCPCS_OK)) m->ol_flags |= PKT_RX_L4_CKSUM_GOOD; + else if (info->csum_info & (NDIS_RXCSUM_INFO_TCPCS_FAILED + | NDIS_RXCSUM_INFO_UDPCS_FAILED)) + m->ol_flags |= PKT_RX_L4_CKSUM_BAD; } if (info->hash_info != HN_NDIS_HASH_INFO_INVALID) { -- 2.18.0