From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qa0-f41.google.com (mail-qa0-f41.google.com [209.85.216.41]) by dpdk.org (Postfix) with ESMTP id DE64FDE0 for ; Mon, 25 Nov 2013 10:14:32 +0100 (CET) Received: by mail-qa0-f41.google.com with SMTP id j5so2766572qaq.7 for ; Mon, 25 Nov 2013 01:15:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=LNMWeNCyppSxAGeev/lbSvCNdGKitxXvK5pF2g8s7AA=; b=fndwJtwfgN7E9teLvqKDC+6I7vHPCupu4Ty5Ysq5zhe/LKt0FcYwj1xDFlkIt8SdmF rbW5Di/U/U5dRw2CDKkEFZaidObYiaA4JnDXvLwKl4xowA3vH9gOKnsuUh3C8FF/5MXL UrU+QKTOoWXnSOa+s0tjyJbkdOybsv5dr5St9cT3xOsu/Kf3n73TcSNota/7qrXxhelY dxhMHQ9tiu6CK62Z0Z+wWMU99R8dWNzd/g7GAG5VjYcZxmxoLvIcJcd/jOhsLb9JqR3b yKarOsIe1oTjrnQ5xGM0VqmPtXJaasr5QXcH8QOLx+W271kzB05pcrmhAQKFukU1RDzT l5FQ== X-Gm-Message-State: ALoCoQnmVMnAq5XnpsLpAJJ9iHeLOtdgjjWYULu+Q8AMYpMgLYItBd7F+oPuhdGsZ+XfdRJRGCKz MIME-Version: 1.0 X-Received: by 10.49.82.130 with SMTP id i2mr11386057qey.68.1385370932178; Mon, 25 Nov 2013 01:15:32 -0800 (PST) Received: by 10.140.37.240 with HTTP; Mon, 25 Nov 2013 01:15:31 -0800 (PST) X-Originating-IP: [109.65.139.169] In-Reply-To: <5292ECDB.6070007@neusoft.com> References: <5292ECDB.6070007@neusoft.com> Date: Mon, 25 Nov 2013 11:15:31 +0200 Message-ID: From: Daniel Kaminsky To: chen_lp Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] 82599 TX IP checksum offloading X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Nov 2013 09:14:34 -0000 chen_Ip, You shoudln't use PKT_RX_IPV4_HDR, either just PKT_TX_IP_CKSUM or some other combination of PKT_TX_* (e.g. PKT_TX_OFFLOAD_MASK) Daniel On Mon, Nov 25, 2013 at 8:23 AM, chen_lp wrote: > Hi, > I want NIC to calculate ip checksum on dpdk-1.5.0, > > I have set: > static const struct rte_eth_txconf tx_conf = { > .tx_thresh = { > .pthresh = TX_PTHRESH, > .hthresh = TX_HTHRESH, > .wthresh = TX_WTHRESH, > }, > .tx_free_thresh = 0, > .tx_rs_thresh = 0, > .txq_flags = 0, > }; > this struct is used by int rte_eth_tx_queue_setup(uint8_t port_id, > uint16_t tx_queue_id, > uint16_t nb_tx_desc, unsigned int > socket_id, > const struct rte_eth_txconf **tx_conf*); > > when constructing the pkt will been sending: > > mbuf->ol_flags|=(PKT_TX_IP_CKSUM|PKT_RX_IPV4_HDR); > |~ > mbuf->pkt.vlan_macip.f.l2_len = sizeof(struct ether_hdr); > |~ > mbuf->pkt.vlan_macip.f.l3_len = sizeof(struct ipv4_hdr); > > > but the NIC not calculate ip checksum,did anyone tell me what's wrong > whith it? > by the way,I create multi-queue for tx and rx. > > > Thanks, > chen_lp > > > --------------------------------------------------------------------------------------------------- > Confidentiality Notice: The information contained in this e-mail and any > accompanying attachment(s) > is intended only for the use of the intended recipient and may be > confidential and/or privileged of > Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader > of this communication is > not the intended recipient, unauthorized use, forwarding, printing, > storing, disclosure or copying > is strictly prohibited, and may be unlawful.If you have received this > communication in error,please > immediately notify the sender by return e-mail, and delete the original > message and all copies from > your system. Thank you. > > --------------------------------------------------------------------------------------------------- >