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

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,
Michael
>>  /* Add/Remove a MAC address, and update filters */
>>  static void
>>  fm10k_MAC_filter_set(struct rte_eth_dev *dev, const u8 *mac, bool add)
>> @@ -1801,6 +1822,7 @@ static const struct eth_dev_ops
>> fm10k_eth_dev_ops = {
>>  	.link_update		= fm10k_link_update,
>>  	.dev_infos_get		= fm10k_dev_infos_get,
>>  	.vlan_filter_set	= fm10k_vlan_filter_set,
>> +	.vlan_offload_set	= fm10k_vlan_offload_set,
>>  	.mac_addr_add		= fm10k_macaddr_add,
>>  	.mac_addr_remove	= fm10k_macaddr_remove,
>>  	.rx_queue_start		= fm10k_dev_rx_queue_start,
>> --
>> 1.9.3
>


  parent reply	other threads:[~2015-06-09 16:17 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 [this message]
2015-06-10  6:03       ` He, Shaopeng
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=533710CFB86FA344BFBF2D6802E60286046949A6@SHSMSX101.ccr.corp.intel.com \
    --to=michael.qiu@intel.com \
    --cc=dev@dpdk.org \
    --cc=jing.d.chen@intel.com \
    --cc=shaopeng.he@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).