DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Wu, Jingjing" <jingjing.wu@intel.com>
To: Yaacov Hazan <yaacovh@mellanox.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] Flow Director - big endian handling
Date: Thu, 31 Dec 2015 00:38:43 +0000	[thread overview]
Message-ID: <9BB6961774997848B5B42BEC655768F8D6BEFC@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <HE1PR05MB1100D66DD70BCDFCED6BCDB7CEFD0@HE1PR05MB1100.eurprd05.prod.outlook.com>

Hi, Yaacov

Thank you for pointing that.

Actually, Intel's NIC expects big endian when set flow_director_filter, and little endian when set flow_director_mask. But in rte_eth level, we need to make them consistent.  I think what you say make sense, to leave the handling bytes order to PMD or just keep consistency.

I will work on that.

Thanks a lot!
Jingjing

From: Yaacov Hazan [mailto:yaacovh@mellanox.com]
Sent: Wednesday, December 30, 2015 5:57 PM
To: Wu, Jingjing
Cc: dev@dpdk.org
Subject: Flow Director - big endian handling

Hi JingJing,

I looked at your patch for flow director - app/testpmd: update flow director commands - a56335925919d26c81dec8accf31c39d2f790c5a.

It seems there is some mismatch in the handling of big endian between the filter and mask.
In the cmd_flow_director_filter_parsed function, which add the filter values, you called to rte_cpu_to_be_16 for the vlan_tci and ports values.
But in cmd_flow_director_mask_parsed function, which set the mask, you didn't called to rte_cpu_to_be_16 for those values (valn_tci & ports).

Does Intel's NICs (or Intel's PMDs) expected form application side to handle the big endian in different way for the filter values and the mask values?
If yes, it is very confusing from the application/user point of view.
I think that it is more make sense to leave the decision and handling of the big endian to the PMD layer, or at least to keep consistency for the expected handling in the application layer.

Thanks,
Yaacov.

      reply	other threads:[~2015-12-31  0:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-30  9:57 Yaacov Hazan
2015-12-31  0:38 ` Wu, Jingjing [this message]

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=9BB6961774997848B5B42BEC655768F8D6BEFC@SHSMSX104.ccr.corp.intel.com \
    --to=jingjing.wu@intel.com \
    --cc=dev@dpdk.org \
    --cc=yaacovh@mellanox.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).