DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] KNI PCIe number and VLAN Stripping
@ 2018-03-19  1:10 Yasuhiro Ohara
  2018-03-20 13:56 ` Ferruh Yigit
  0 siblings, 1 reply; 2+ messages in thread
From: Yasuhiro Ohara @ 2018-03-19  1:10 UTC (permalink / raw)
  To: dev


Hi.

It is much appreciated if someone could answer the following questions.

1. Regarding KNI, what is the reasoning of giving the PCI device
number information when setting kni I/F ? Can the data be blank or
dummy ? I would like to create a virtual I/F inside my application
and its corresponding kni, which may not have the corresponding
physical PCIe slot. 

2. the ETHER/VLAN/ARP packet looks not-supported both
in mbuf_ptype(RTE_PTYPE_XXX in m->packet_type) and
in PKT_RX_VLAN_STRIPPED situation.
  2a. How can we encode in m->packet_type to indicate there are
      arp_hdr after the (ether_hdr,vlan_hdr) pair ?
  2b. How can we get the next header value (i.e. ether_proto in
      vlan_hdr) when the vlan_hdr is stripped by the NIC ?

Thanks in advance.

Best regards,
Yasu

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

* Re: [dpdk-dev] KNI PCIe number and VLAN Stripping
  2018-03-19  1:10 [dpdk-dev] KNI PCIe number and VLAN Stripping Yasuhiro Ohara
@ 2018-03-20 13:56 ` Ferruh Yigit
  0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2018-03-20 13:56 UTC (permalink / raw)
  To: Yasuhiro Ohara, dev

On 3/19/2018 1:10 AM, Yasuhiro Ohara wrote:
> 
> Hi.
> 
> It is much appreciated if someone could answer the following questions.
> 
> 1. Regarding KNI, what is the reasoning of giving the PCI device
> number information when setting kni I/F ? Can the data be blank or
> dummy ? I would like to create a virtual I/F inside my application
> and its corresponding kni, which may not have the corresponding
> physical PCIe slot. 

For KNI pci address information is for ethtool support [1] and it can be blank,
for example KNI PMD uses it blank.

[1]
ethtool support is only for igb and ixgbe only. And this support is by default
disabled in config, need to enable CONFIG_RTE_KNI_KMOD_ETHTOOL config option for it.

> 
> 2. the ETHER/VLAN/ARP packet looks not-supported both
> in mbuf_ptype(RTE_PTYPE_XXX in m->packet_type) and
> in PKT_RX_VLAN_STRIPPED situation.
>   2a. How can we encode in m->packet_type to indicate there are
>       arp_hdr after the (ether_hdr,vlan_hdr) pair ?
>   2b. How can we get the next header value (i.e. ether_proto in
>       vlan_hdr) when the vlan_hdr is stripped by the NIC ?
> 
> Thanks in advance.
> 
> Best regards,
> Yasu
> 

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

end of thread, other threads:[~2018-03-20 13:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-19  1:10 [dpdk-dev] KNI PCIe number and VLAN Stripping Yasuhiro Ohara
2018-03-20 13:56 ` Ferruh Yigit

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