From: Hariprasad Shenai <hariprasad@chelsio.com>
To: Yuval Mintz <Yuval.Mintz@qlogic.com>
Cc: netdev <netdev@vger.kernel.org>,
David Miller <davem@davemloft.net>,
"leedom@chelsio.com" <leedom@chelsio.com>,
"nirranjan@chelsio.com" <nirranjan@chelsio.com>
Subject: Re: [PATCH net-next 1/2] cxgb4/cxgb4vf: Add support for ndo_set_vf_vlan
Date: Wed, 24 Aug 2016 13:52:50 +0530 [thread overview]
Message-ID: <20160824082249.GB9955@hari-Latitude-E5550> (raw)
In-Reply-To: <SN2PR11MB009472734B1803F20C4A9B1497EA0@SN2PR11MB0094.namprd11.prod.outlook.com>
On Wednesday, August 08/24/16, 2016 at 07:08:14 +0000, Yuval Mintz wrote:
> > @@ -1202,6 +1202,10 @@ int t4vf_eth_xmit(struct sk_buff *skb, struct
> > net_device *dev)
> > BUG_ON(qidx >= pi->nqsets);
> > txq = &adapter->sge.ethtxq[pi->first_qset + qidx];
> >
> > + if (pi->vlan_id && !skb_vlan_tag_present(skb))
> > + __vlan_hwaccel_put_tag(skb, cpu_to_be16(ETH_P_8021Q),
> > + pi->vlan_id);
> > +
>
> So it's a purely SW implementation of the feature on the VF side?
> Does the HW enforces the configuration in any way on the VF?
Basically the PF driver passes the VLAN ID it got through ndo_set_vf_vlan
to the VF driver. And then the VF driver reads it and requests hardware to
tag it.
>
> Also, looks like an already tagged packet would be processed with
> the original vlan-id [instead of the one of PF has provided].
> Is that intentional?
No, this isn't intentional. I thought VST and VGT cannot co-exist.
What should be the behavior?
Thanks,
Hariprasad Shenai
next prev parent reply other threads:[~2016-08-24 8:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-24 6:50 [PATCH net-next 0/2] cxgb4: Adds support for VF mgmt ndo's Hariprasad Shenai
2016-08-24 6:50 ` [PATCH net-next 1/2] cxgb4/cxgb4vf: Add support for ndo_set_vf_vlan Hariprasad Shenai
2016-08-24 7:08 ` Yuval Mintz
2016-08-24 8:22 ` Hariprasad Shenai [this message]
2016-08-24 8:31 ` Yuval Mintz
2016-08-24 9:40 ` Hariprasad Shenai
2016-08-24 10:02 ` Yuval Mintz
2016-08-25 23:24 ` David Miller
2016-08-24 6:50 ` [PATCH net-next 2/2] cxgb4: Add support for ndo_get_vf_config Hariprasad Shenai
2016-08-24 7:15 ` Yuval Mintz
2016-08-24 7:58 ` Hariprasad Shenai
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=20160824082249.GB9955@hari-Latitude-E5550 \
--to=hariprasad@chelsio.com \
--cc=Yuval.Mintz@qlogic.com \
--cc=davem@davemloft.net \
--cc=leedom@chelsio.com \
--cc=netdev@vger.kernel.org \
--cc=nirranjan@chelsio.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).