All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vick, Matthew <matthew.vick@intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [net-next 06/10] fm10k: send traffic on default vid to vlan device if we have one
Date: Tue, 23 Jun 2015 16:11:30 +0000	[thread overview]
Message-ID: <D1AED210.7D4C4%matthew.vick@intel.com> (raw)
In-Reply-To: <5584E9FD.1000809@gmail.com>

On 6/19/15, 9:20 PM, "Alexander Duyck" <alexander.duyck@gmail.com> wrote:

>On 06/19/2015 04:37 PM, Jacob Keller wrote:

[...]

>> diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_pci.c
>>b/drivers/net/ethernet/intel/fm10k/fm10k_pci.c
>> index 6d1364393a8b..989981ea3c64 100644
>> --- a/drivers/net/ethernet/intel/fm10k/fm10k_pci.c
>> +++ b/drivers/net/ethernet/intel/fm10k/fm10k_pci.c
>> @@ -694,6 +694,10 @@ static void fm10k_configure_rx_ring(struct
>>fm10k_intfc *interface,
>>   	/* assign default VLAN to queue */
>>   	ring->vid = hw->mac.default_vid;
>>
>> +	/* if we have an active VLAN, disable default vid */
>> +	if (test_bit(hw->mac.default_vid, interface->active_vlans))
>> +		ring->vid |= FM10K_VLAN_CLEAR;
>> +
>>   	/* Map interrupt */
>>   	if (ring->q_vector) {
>>   		rxint = ring->q_vector->v_idx + NON_Q_VECTORS(hw);
>>
>
>This doesn't quite work since the rx_ring->vid is doing a full 16b
>comparison against a value that includes the QOS value.
>
>I just realized that is a bug in the fm10k_process_skb_fields function.
>  You probably need to update it so that code does something more like
>
>if (rx_desc->w.vlan) {
>	u16 vid = le16_to_cpu(rx_desc->w.vlan);
>
>	if ((vid & VLAN_VID_MASK) != rx_ring->vid)
>		__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid);
>	else if (vid & VLAN_PRIO_MASK)
>		__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q),
>				       vid & VLAN_PRIO_MASK);
>}

Agreed. Coincidentally, this bit us last week and we're working internally
to resolve it now. Your solution looks good to me.


  reply	other threads:[~2015-06-23 16:11 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-19 23:37 [Intel-wired-lan] [net-next 01/10] fm10k: remove is_slot_appropriate Jacob Keller
2015-06-19 23:37 ` [Intel-wired-lan] [net-next 02/10] fm10k: allow creation of vlan interfaces even while down Jacob Keller
2015-06-19 23:37 ` [Intel-wired-lan] [net-next 03/10] fm10k: don't store sw_vid at reset Jacob Keller
2015-06-20  4:03   ` Alexander Duyck
2015-06-23 18:23     ` Keller, Jacob E
2015-06-19 23:37 ` [Intel-wired-lan] [net-next 04/10] fm10k: TRIVIAL fix up ordering of __always_unused and style Jacob Keller
2015-06-19 23:37 ` [Intel-wired-lan] [net-next 05/10] fm10k: add support for extra debug statistics Jacob Keller
2015-06-19 23:37 ` [Intel-wired-lan] [net-next 06/10] fm10k: send traffic on default vid to vlan device if we have one Jacob Keller
2015-06-20  4:20   ` Alexander Duyck
2015-06-23 16:11     ` Vick, Matthew [this message]
2015-06-23 18:24     ` Keller, Jacob E
2015-06-23 22:18     ` Keller, Jacob E
2015-06-24 22:13       ` Alexander Duyck
2015-06-24 22:38         ` Keller, Jacob E
2015-06-19 23:37 ` [Intel-wired-lan] [net-next 07/10] fm10k: TRIVIAL fix typo in fm10k_netdev.c Jacob Keller
2015-06-19 23:37 ` [Intel-wired-lan] [net-next 08/10] fm10k: re-enable VF after a full reset on detection of a Malicious event Jacob Keller
2015-06-19 23:37 ` [Intel-wired-lan] [net-next 09/10] fm10k: Only trigger data path reset if fabric is up Jacob Keller
2015-06-19 23:37 ` [Intel-wired-lan] [net-next 10/10] fm10k: fix iov_msg_mac_vlan_pf VID checks Jacob Keller
2015-06-20  4:41   ` Alexander Duyck
2015-06-23 18:26     ` Keller, Jacob E

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=D1AED210.7D4C4%matthew.vick@intel.com \
    --to=matthew.vick@intel.com \
    --cc=intel-wired-lan@osuosl.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.