DPDK patches and discussions
 help / color / mirror / Atom feed
From: "He, Shaopeng" <shaopeng.he@intel.com>
To: "Qiu, Michael" <michael.qiu@intel.com>,
	"Chen, Jing D" <jing.d.chen@intel.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH 3/3] fm10k: update VLAN offload features
Date: Wed, 10 Jun 2015 06:03:00 +0000	[thread overview]
Message-ID: <FB82FCC69332B84596FE0CEC3C1310949D5048@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <533710CFB86FA344BFBF2D6802E60286046949A6@SHSMSX101.ccr.corp.intel.com>

> -----Original Message-----
> From: Qiu, Michael
> Sent: Tuesday, June 09, 2015 11:41 PM
> To: Chen, Jing D; He, Shaopeng; dev@dpdk.org
> Subject: Re: [PATCH 3/3] fm10k: update VLAN offload features
> 
> On 2015/6/9 11:27, Chen, Jing D wrote:
> > Hi,
> >
> >
> >> -----Original Message-----
> >> From: He, Shaopeng
> >> Sent: Tuesday, June 02, 2015 10:59 AM
> >> To: dev@dpdk.org
> >> Cc: Chen, Jing D; Qiu, Michael; He, Shaopeng
> >> Subject: [PATCH 3/3] fm10k: update VLAN offload features
> >>
> >> Fm10k PF/VF does not support QinQ; VLAN strip and filter are always
> >> on for PF/VF ports.
> >>
> >> Signed-off-by: Shaopeng He <shaopeng.he@intel.com>
> >> ---
> >>  drivers/net/fm10k/fm10k_ethdev.c | 22 ++++++++++++++++++++++
> >>  1 file changed, 22 insertions(+)
> >>
> >> diff --git a/drivers/net/fm10k/fm10k_ethdev.c
> >> b/drivers/net/fm10k/fm10k_ethdev.c
> >> index 4f23bf1..9b198a7 100644
> >> --- a/drivers/net/fm10k/fm10k_ethdev.c
> >> +++ b/drivers/net/fm10k/fm10k_ethdev.c
> >> @@ -884,6 +884,27 @@ fm10k_vlan_filter_set(struct rte_eth_dev *dev,
> >> uint16_t vlan_id, int on)
> >>  		return (-EIO);
> >>  }
> >>
> >> +static void
> >> +fm10k_vlan_offload_set(__rte_unused struct rte_eth_dev *dev, int
> >> +mask) {
> >> +	if (mask & ETH_VLAN_STRIP_MASK) {
> >> +		if (!dev->data->dev_conf.rxmode.hw_vlan_strip)
> >> +			PMD_INIT_LOG(ERR, "VLAN stripping is "
> >> +					"always on in fm10k");
> >> +	}
> >> +
> >> +	if (mask & ETH_VLAN_EXTEND_MASK) {
> >> +		if (dev->data->dev_conf.rxmode.hw_vlan_extend)
> >> +			PMD_INIT_LOG(ERR, "VLAN QinQ is not "
> >> +					"supported in fm10k");
> >> +	}
> >> +
> >> +	if (mask & ETH_VLAN_FILTER_MASK) {
> >> +		if (!dev->data->dev_conf.rxmode.hw_vlan_filter)
> >> +			PMD_INIT_LOG(ERR, "VLAN filter is always on in
> >> fm10k");
> >> +	}
> >> +}
> >> +
> > Update fm10k_dev_infos_get() to configure above options to expected
> values?
> 
> Could it be better to add CRC strip options to expected values by convenient?
Thanks for the comments; but this patch is for the VLAN offload, may not be good
place to fix other bugs. By the way, current struct rte_eth_dev_info 
which fm10k_dev_infos_get() returns does not have 
any setting for CRC strip options (please correct me if I am wrong).

  reply	other threads:[~2015-06-10  6:07 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-02  2:58 [dpdk-dev] [PATCH 0/3] fm10k: update MAC/VLAN filter and " Shaopeng He
2015-06-02  2:58 ` [dpdk-dev] [PATCH 1/3] fm10k: update VLAN filter Shaopeng He
2015-06-09  2:54   ` Chen, Jing D
2015-06-09  7:18     ` He, Shaopeng
2015-06-09 15:51   ` Qiu, Michael
2015-06-10  5:52     ` He, Shaopeng
2015-06-02  2:58 ` [dpdk-dev] [PATCH 2/3] fm10k: add MAC filter Shaopeng He
2015-06-09  3:25   ` Chen, Jing D
2015-06-09  8:31     ` He, Shaopeng
2015-06-09 15:59   ` Qiu, Michael
2015-06-10  1:03     ` He, Shaopeng
2015-06-02  2:58 ` [dpdk-dev] [PATCH 3/3] fm10k: update VLAN offload features Shaopeng He
2015-06-09  3:27   ` Chen, Jing D
2015-06-09  8:55     ` He, Shaopeng
2015-06-09 15:40     ` Qiu, Michael
2015-06-10  6:03       ` He, Shaopeng [this message]
2015-06-15  1:23 ` [dpdk-dev] [PATCH v2 0/3] fm10k: update MAC/VLAN filter and " Shaopeng He
2015-06-15  1:23   ` [dpdk-dev] [PATCH v2 1/3] fm10k: update VLAN filter Shaopeng He
2015-06-15  1:23   ` [dpdk-dev] [PATCH v2 2/3] fm10k: add MAC filter Shaopeng He
2015-06-16 12:38     ` Qiu, Michael
2015-06-15  1:23   ` [dpdk-dev] [PATCH v2 3/3] fm10k: update VLAN offload features Shaopeng He
2015-06-18  7:21   ` [dpdk-dev] [PATCH v3 0/3] fm10k: update MAC/VLAN filter and " Shaopeng He
2015-06-18  7:21     ` [dpdk-dev] [PATCH v3 1/3] fm10k: update VLAN filter Shaopeng He
2015-06-18  7:21     ` [dpdk-dev] [PATCH v3 2/3] fm10k: add MAC filter Shaopeng He
2015-06-18  7:21     ` [dpdk-dev] [PATCH v3 3/3] fm10k: update VLAN offload features Shaopeng He
2015-06-18  8:23     ` [dpdk-dev] [PATCH v3 0/3] fm10k: update MAC/VLAN filter and " Chen, Jing D
2015-06-22 14:21       ` Thomas Monjalon

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=FB82FCC69332B84596FE0CEC3C1310949D5048@shsmsx102.ccr.corp.intel.com \
    --to=shaopeng.he@intel.com \
    --cc=dev@dpdk.org \
    --cc=jing.d.chen@intel.com \
    --cc=michael.qiu@intel.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).