DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] VLAN with ixgbevf pmd
@ 2016-08-18 14:46 Dey, Souvik
  2016-08-19  0:33 ` Lu, Wenzhuo
  0 siblings, 1 reply; 3+ messages in thread
From: Dey, Souvik @ 2016-08-18 14:46 UTC (permalink / raw)
  To: dev

Hi,



I am trying to get tagged packets to work in SRIOV mode.  I am using dpdk  2.1 version with an application on KVM.

 The setup is as below: The same configuration works for untagged packets.

 Guest VM (Virtual Function/Created tagged kni interfaces)--- > KVM host (PF/no tag on the VF ) -->Client server

 When the packet is tagged (vlan tag/id) the packet is sent from kni interface to the application is it received with the tag and is also sent out to the pmd. But the packets does not go out of the host. Neither any tagged packets are coming in from out to the application. The ol_flags is set to 0 in my application.

Can someone let me know what I am missing? Do we need to do some specific configuration on the rx or tx ports for this ? Does the vlan id configured on the kni gets peculated down to the vf of the host too which is causing the issue ?



Any help would be highly appreciated!



--

Regards,

Souvik

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] VLAN with ixgbevf pmd
  2016-08-18 14:46 [dpdk-dev] VLAN with ixgbevf pmd Dey, Souvik
@ 2016-08-19  0:33 ` Lu, Wenzhuo
  2016-08-19 23:23   ` Dey, Souvik
  0 siblings, 1 reply; 3+ messages in thread
From: Lu, Wenzhuo @ 2016-08-19  0:33 UTC (permalink / raw)
  To: Dey, Souvik, dev

Hi Souvik,
Take testpmd for example, normally we should disable HW vlan filter by adding parameter " --disable-hw-vlan-filter " or CLI " port config all hw-vlan-filter off". Hope it can help :)


Best regards
Wenzhuo Lu


> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Dey, Souvik
> Sent: Thursday, August 18, 2016 10:47 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] VLAN with ixgbevf pmd
> 
> Hi,
> 
> 
> 
> I am trying to get tagged packets to work in SRIOV mode.  I am using dpdk  2.1
> version with an application on KVM.
> 
>  The setup is as below: The same configuration works for untagged packets.
> 
>  Guest VM (Virtual Function/Created tagged kni interfaces)--- > KVM host (PF/no
> tag on the VF ) -->Client server
> 
>  When the packet is tagged (vlan tag/id) the packet is sent from kni interface to
> the application is it received with the tag and is also sent out to the pmd. But the
> packets does not go out of the host. Neither any tagged packets are coming in
> from out to the application. The ol_flags is set to 0 in my application.
> 
> Can someone let me know what I am missing? Do we need to do some specific
> configuration on the rx or tx ports for this ? Does the vlan id configured on the
> kni gets peculated down to the vf of the host too which is causing the issue ?
> 
> 
> 
> Any help would be highly appreciated!
> 
> 
> 
> --
> 
> Regards,
> 
> Souvik

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] VLAN with ixgbevf pmd
  2016-08-19  0:33 ` Lu, Wenzhuo
@ 2016-08-19 23:23   ` Dey, Souvik
  0 siblings, 0 replies; 3+ messages in thread
From: Dey, Souvik @ 2016-08-19 23:23 UTC (permalink / raw)
  To: Lu, Wenzhuo, dev

Hi Lu,

              I already have the hw_vlan_filter set to 0 to disable it in the port_conf .



struct rte_eth_conf port_conf =

{

    .rxmode = {

        .split_hdr_size = 0,

        .header_split   = 0, /**< Header Split disabled */

        .hw_ip_checksum = 0, /**< IP checksum offload disabled */

        .hw_vlan_filter = 0, /**< VLAN filtering disabled */

        .jumbo_frame    = 0, /**< Jumbo Frame Support disabled */

        .hw_strip_crc   = 0, /**< CRC stripped by hardware */

    },

    .txmode = {

        .mq_mode = ETH_MQ_TX_NONE,

    },

    .intr_conf = {

        .lsc = 0, /**< lsc interrupt feature enabled */

    },

#if 0

    .rx_adv_conf = {

        .rss_conf = {

            .rss_key = NULL,

            .rss_hf = ETH_RSS_IPV4 | ETH_RSS_IPV6,

        },

    }

#endif

};



Interestingly the same setup works fine with vlan without Dpdk. Any other suggestions ?



--

Regards,

Souvik



-----Original Message-----
From: Lu, Wenzhuo [mailto:wenzhuo.lu@intel.com]
Sent: Thursday, August 18, 2016 8:33 PM
To: Dey, Souvik <sodey@sonusnet.com>; dev@dpdk.org
Subject: RE: VLAN with ixgbevf pmd



Hi Souvik,

Take testpmd for example, normally we should disable HW vlan filter by adding parameter " --disable-hw-vlan-filter " or CLI " port config all hw-vlan-filter off". Hope it can help :)





Best regards

Wenzhuo Lu





> -----Original Message-----

> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Dey, Souvik

> Sent: Thursday, August 18, 2016 10:47 PM

> To: dev@dpdk.org<mailto:dev@dpdk.org>

> Subject: [dpdk-dev] VLAN with ixgbevf pmd

>

> Hi,

>

>

>

> I am trying to get tagged packets to work in SRIOV mode.  I am using

> dpdk  2.1 version with an application on KVM.

>

>  The setup is as below: The same configuration works for untagged packets.

>

>  Guest VM (Virtual Function/Created tagged kni interfaces)--- > KVM

> host (PF/no tag on the VF ) -->Client server

>

>  When the packet is tagged (vlan tag/id) the packet is sent from kni

> interface to the application is it received with the tag and is also

> sent out to the pmd. But the packets does not go out of the host.

> Neither any tagged packets are coming in from out to the application. The ol_flags is set to 0 in my application.

>

> Can someone let me know what I am missing? Do we need to do some

> specific configuration on the rx or tx ports for this ? Does the vlan

> id configured on the kni gets peculated down to the vf of the host too which is causing the issue ?

>

>

>

> Any help would be highly appreciated!

>

>

>

> --

>

> Regards,

>

> Souvik

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-19 23:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-18 14:46 [dpdk-dev] VLAN with ixgbevf pmd Dey, Souvik
2016-08-19  0:33 ` Lu, Wenzhuo
2016-08-19 23:23   ` Dey, Souvik

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).