DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ferruh Yigit <ferruh.yigit@intel.com>
To: Andrew Rybchenko <arybchenko@solarflare.com>,
	Rasesh Mody <rasesh.mody@cavium.com>,
	dev@dpdk.org
Cc: Harish Patil <harish.patil@cavium.com>, Dept-EngDPDKDev@cavium.com
Subject: Re: [dpdk-dev] [PATCH 1/5] net/qede: convert to new Rx/Tx offloads API
Date: Mon, 14 May 2018 13:53:19 +0100	[thread overview]
Message-ID: <69693693-056d-556b-2520-d17824dff34a@intel.com> (raw)
In-Reply-To: <729baae1-5b98-d09b-a38b-b18d886cd976@solarflare.com>

On 5/11/2018 10:16 AM, Andrew Rybchenko wrote:
> On 03/28/2018 03:15 AM, Rasesh Mody wrote:
>> From: Harish Patil <harish.patil@cavium.com>
>>
>> Ethdev RX/TX offloads API has changed since:
>> commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API")
>> commit cba7f53b717d ("ethdev: introduce Tx queue offloads API")
>>
>> This patch makes use of new offload flags as suggested and fix
>> the default RX/TX configuration. Also indent the code properly
>> around those changes.
>>
>> Signed-off-by: Harish Patil <harish.patil@cavium.com>
>> Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>

<...>

>>  				     DEV_TX_OFFLOAD_GENEVE_TNL_TSO);
>> +	dev_info->tx_queue_offload_capa = dev_info->tx_offload_capa;
>> +
>> +	dev_info->default_txconf = (struct rte_eth_txconf) {
>> +		.txq_flags = DEV_TX_OFFLOAD_MULTI_SEGS,
> 
> It is incorrect to initialize TxQ flags using Tx offload define.

Yes it is wrong, thanks for pointing it out. I assume intentions is .offloads

Rashed, Harish,

Can you send a fix please?

> 
>> +	};
>> +
>> +	dev_info->default_rxconf = (struct rte_eth_rxconf) {
>> +		/* Packets are always dropped if no descriptors are available */
>> +		.rx_drop_en = 1,
>> +		/* The below RX offloads are always enabled */
>> +		.offloads = (DEV_RX_OFFLOAD_CRC_STRIP  |
>> +			     DEV_RX_OFFLOAD_IPV4_CKSUM |
>> +			     DEV_RX_OFFLOAD_TCP_CKSUM  |
>> +			     DEV_RX_OFFLOAD_UDP_CKSUM),
>> +	};
>>  
>>  	memset(&link, 0, sizeof(struct qed_link_output));
>>  	qdev->ops->common->get_link(edev, &link);

  reply	other threads:[~2018-05-14 12:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-28  0:15 Rasesh Mody
2018-03-28  0:15 ` [dpdk-dev] [PATCH 2/5] net/qede: enable IPGRE offload support Rasesh Mody
2018-03-28  0:15 ` [dpdk-dev] [PATCH 3/5] net/qede: add devarg to disable NPAR Tx switching Rasesh Mody
2018-03-28  0:15 ` [dpdk-dev] [PATCH 4/5] net/qede: fix device stop to remove primary MAC Rasesh Mody
2018-03-28  0:15 ` [dpdk-dev] [PATCH 5/5] net/qede: fix to prevent overwriting packet type Rasesh Mody
2018-03-30 10:39 ` [dpdk-dev] [PATCH 1/5] net/qede: convert to new Rx/Tx offloads API Ferruh Yigit
2018-05-11  9:16 ` Andrew Rybchenko
2018-05-14 12:53   ` Ferruh Yigit [this message]
2018-05-15 19:47     ` Mody, Rasesh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=69693693-056d-556b-2520-d17824dff34a@intel.com \
    --to=ferruh.yigit@intel.com \
    --cc=Dept-EngDPDKDev@cavium.com \
    --cc=arybchenko@solarflare.com \
    --cc=dev@dpdk.org \
    --cc=harish.patil@cavium.com \
    --cc=rasesh.mody@cavium.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).